Aviso

El foro está en modo de sólo lectura.

Arduino UNO and Nextion

Más
6 años 5 meses antes #783 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
Más
6 años 5 meses 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
Adjuntos:
Más
6 años 5 meses 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).
Adjuntos:
Más
6 años 5 meses 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.
Más
6 años 5 meses 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.
Más
6 años 5 meses 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
Adjuntos:
Tiempo de carga de la página: 0.484 segundos
Gracias a Foro Kunena