- Mensajes: 20
- Gracias recibidas: 0
Aviso
El foro está en modo de sólo lectura.
Arduino UNO and Nextion
- gvardal
- Autor del tema
- Fuera de línea
- Navegador Junior
Menos
Más
7 años 4 días antes #783
por gvardal
Arduino UNO and Nextion Publicado por gvardal
Firstly, Sorry abot my english, because i from Turkey
I download Nextion library that i attached and wrote some codes get Nextion buttuon ID
but I cant read anyting on Serial Monitor
I download Nextion library that i attached and wrote some codes get Nextion buttuon ID
but I cant read anyting on Serial Monitor
- gvardal
- Autor del tema
- Fuera de línea
- Navegador Junior
Menos
Más
- Mensajes: 20
- Gracias recibidas: 0
7 años 4 días antes #784
por gvardal
Respuesta de gvardal sobre el tema Arduino UNO and Nextion
In ino files I change the SoftwareSerial pins setup to SoftwareSerial nextion(2,3) then I saw the serial monitor like this, this is not meaningful
- Jose Luis
- Fuera de línea
- Navegador Platino
Menos
Más
- Mensajes: 620
- Karma: 6
- Gracias recibidas: 68
7 años 4 días antes #785
por Jose Luis
Respuesta de Jose Luis sobre el tema Arduino UNO and Nextion
We are going to use an example that we have put here in the forum.
1 .- Load the file in the Nextion.
2.- Load the file in arduino uno.
3 .- The rx and tx pins are pin 10 and 11.
4.- When pressing the motor, it is necessary to turn on the led of the arduino one plate. If you press again it should go off.
5.- If it does not work, exchange the cables you have on pins 10 and 11.
6 .- If it still does not work, take a picture of the connection between nextion and screen.
For the test connect the 4 wires of the nextion in the arduino one, (GND, +5, pin 10 and pin 11).
1 .- Load the file in the Nextion.
2.- Load the file in arduino uno.
3 .- The rx and tx pins are pin 10 and 11.
4.- When pressing the motor, it is necessary to turn on the led of the arduino one plate. If you press again it should go off.
5.- If it does not work, exchange the cables you have on pins 10 and 11.
6 .- If it still does not work, take a picture of the connection between nextion and screen.
For the test connect the 4 wires of the nextion in the arduino one, (GND, +5, pin 10 and pin 11).
- gvardal
- Autor del tema
- Fuera de línea
- Navegador Junior
Menos
Más
- Mensajes: 20
- Gracias recibidas: 0
7 años 4 días antes #786
por gvardal
Respuesta de gvardal sobre el tema Arduino UNO and Nextion
I have a this error codes
Arduino:1.8.5 (Windows 8.1), Kart:"Arduino/Genuino Uno"
PRUEBA1:6: error: no matching function for call to 'Nextion::Nextion(HardwareSerial&, int)'
Nextion myNextion(nextion, 9600);
^
C:\Users\User\Downloads\gvardal\gvardal\PRUEBA1\PRUEBA1.ino:6:32: note: candidates are:
In file included from C:\Users\User\Downloads\gvardal\gvardal\PRUEBA1\PRUEBA1.ino:2:0:
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:65:3: note: Nextion::Nextion(SoftwareSerial&, uint32_t)
Nextion(SoftwareSerial &next, uint32_t baud);//Constructor
^
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:65:3: note: no known conversion for argument 1 from 'HardwareSerial' to 'SoftwareSerial&'
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:63:5: note: Nextion::Nextion()
Nextion(){};//Empty contructor
^
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:63:5: note: candidate expects 0 arguments, 2 provided
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:54:7: note: constexpr Nextion::Nextion(const Nextion&)
class Nextion{
^
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:54:7: note: candidate expects 1 argument, 2 provided
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:54:7: note: constexpr Nextion::Nextion(Nextion&&)
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:54:7: note: candidate expects 1 argument, 2 provided
exit status 1
no matching function for call to 'Nextion::Nextion(HardwareSerial&, int)'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Arduino:1.8.5 (Windows 8.1), Kart:"Arduino/Genuino Uno"
PRUEBA1:6: error: no matching function for call to 'Nextion::Nextion(HardwareSerial&, int)'
Nextion myNextion(nextion, 9600);
^
C:\Users\User\Downloads\gvardal\gvardal\PRUEBA1\PRUEBA1.ino:6:32: note: candidates are:
In file included from C:\Users\User\Downloads\gvardal\gvardal\PRUEBA1\PRUEBA1.ino:2:0:
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:65:3: note: Nextion::Nextion(SoftwareSerial&, uint32_t)
Nextion(SoftwareSerial &next, uint32_t baud);//Constructor
^
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:65:3: note: no known conversion for argument 1 from 'HardwareSerial' to 'SoftwareSerial&'
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:63:5: note: Nextion::Nextion()
Nextion(){};//Empty contructor
^
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:63:5: note: candidate expects 0 arguments, 2 provided
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:54:7: note: constexpr Nextion::Nextion(const Nextion&)
class Nextion{
^
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:54:7: note: candidate expects 1 argument, 2 provided
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:54:7: note: constexpr Nextion::Nextion(Nextion&&)
C:\Program Files (x86)\Arduino\libraries\nextion-master/Nextion.h:54:7: note: candidate expects 1 argument, 2 provided
exit status 1
no matching function for call to 'Nextion::Nextion(HardwareSerial&, int)'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
- gvardal
- Autor del tema
- Fuera de línea
- Navegador Junior
Menos
Más
- Mensajes: 20
- Gracias recibidas: 0
7 años 4 días antes #787
por gvardal
Respuesta de gvardal sobre el tema Arduino UNO and Nextion
I changed the pins and i have this
Arduino:1.8.5 (Windows 8.1), Kart:"Arduino/Genuino Uno"
C:\Users\User\Downloads\gvardal\gvardal\PRUEBA1\PRUEBA1.ino:2:21: fatal error: Nextion.h: No such file or directory
#include <Nextion.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Arduino:1.8.5 (Windows 8.1), Kart:"Arduino/Genuino Uno"
C:\Users\User\Downloads\gvardal\gvardal\PRUEBA1\PRUEBA1.ino:2:21: fatal error: Nextion.h: No such file or directory
#include <Nextion.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
- gvardal
- Autor del tema
- Fuera de línea
- Navegador Junior
Menos
Más
- Mensajes: 20
- Gracias recibidas: 0
7 años 4 días antes #788
por gvardal
Respuesta de gvardal sobre el tema Arduino UNO and Nextion
I comment out line 47 in Nextion.h
and It compiled but led is always on
and It compiled but led is always on
Tiempo de carga de la página: 0.154 segundos