I have not done a video on that. I am about 3 hours from leaving the country for a week. If you go to www.cheapcontrols.com and submit a comment I will help you when I get back.
I am not sure. the Nextion can sends HEX codes at all baud rates. If the PLC can interpret codes and send specific strings then it should work. You can get a cheap low end model and try it out. I have access to some MicroLogic PLCs but I think I need proprietary software to code them.
@@CheapControls i have many plc ,,,allen bradley ,micrologix ,,,controllogix , siemens s7 1500 , panasonic sigma , i have a converter too to convert rs232 to ethernet ,,,,i think communication with hmi nextion willl be as sending message .(like awa instruction in allen bradley ,,,
I still don't know how to connect sensors and import their values? It says on the ITEAD homepage that it is to be used for this. What I don't know yet: how does the piezzo work?
I have not found the Nextion to work for collecting data. It is better to use an Arduino to collect sensor data and then transmit it over serial. For control the Nextion can turn things on and off and do some PWM but the current level is very low. I think it is best to use nextion for display and Arduino to input and output. I have started to use ESP32 in place of Arduino but it functions very similar. The ESP32 has Wifi. Sorry if this is confusing.
@@CheapControls my board is also ESP32 (with Nano 33 I have a little struggle) and in HA ESPHome, not in IDE (IDE is not very good for ESP32). I wanted to recreate an "NSPanel where the relays (240V, instead of 5V) are already built in, but it can be recreated using "Expand Board". For me it would be easier if Nextion not only "beeped", but also that Device turns on what can be connected (small pump 5V, for pouring) If I connect it to VCC and Ground with no definition, it starts working immediately.But the pump doesn't have 4 wires like a motor, so I have no idea , how I can switch it on (without ESP32 board) It is therefore important to me that the Nextion can also work independently, because unfortunately there is often an Internet failure, and an ESP32 then no longer works, but a Nextion does not need Internet/WLAN, to switch its own GPIO (that's why I prefer battery+time setting instead of "Internet time") In EasyESP (I also like coding) I don't know at all how to specify the GPIO and Piezzo beep, and also alarm afterwards say if something is wrong. That's what the GPIOs are for. Or not? Unfortunately, there is hardly anything to be found... I found this, but without a sketch of what should be connected and where: Could you please show that too, or "frize" where to connect the GPIO and PIN of devices to? Unfortunately, the video doesn't show it very well. Where is VCC and where is the yellow wire? nextion.tech/2022/01/24/the-sunday-blog-nextion-gpio-part3-digital-input-unbound-and-bound/
I can not speak to the buzzer. I have not used it too much but the Nextion displays should drive a relay and I have found the RTC to be fairly accurate. You should probably have an admin page were you can adjust it from time to time. As long as you don't need to control or read analog signals you should be good. I have a larger board for testing the GPIO pins that works well. I have limited experience with the smaller board. Do you think there would be a market for a relay board that connects directly to the Nextion? I might start building one. I am not sure your location. Feel free to submit a comment on www.cheapcontrols.com and I will reply through Email.
@@CheapControls I just added a chirp to keys on a small keyboard app. The expansion board beeper was configured with cfgpio 7,2,0 I use a disabled hotspot to create a beep subroutine (in the press event) pio7=1 delay=15 pio7=0 I call it with click beep,1 You've probably sorted this by now, but I thought I'd share for new people. You do a great job on the videos. I use the Nextion with the Propeller processors with my own library. At the moment it's deployed in two commercial products (camera pan/tilt controller and a laser-tag game piece).
@@JonMcPhalen That is very interesting. I originally started this channel as a basic electronics channel, which was not a good idea. I stumbled onto the Nextion and decided to make it a control channel with those displays. But then I got sidetracked and spent the last year making 90% Nextion tutorial videos. I want to get back into the control videos. I have a video coming out next week with an add-on relay board for the Nextion that connects directly to the GPIO port. I want to adjust it slightly and then make one with PWM and some other options. I am unsure if there is a market, but it is fun to build things. If you'd like to play with one of my boards, let me know over at the cheap controls main website. I have a contact form on the help page. I hope to have the video out on Thursday.
Can the display be set to start with pins on low instead of high without connecting to an arduino? I have mine set up to 8 relays and works perfectly but want it to start with pins on low.
Nice demonstration always. I am one of you subscriber, Could you please make a tutorial on pwm on the basis of temperature with the combination of nextion+Arduino+ds18b20+traic
Thanks for this video, very useful because there isn't a good guide about all the Nextion commands. I' have try to follow your instructions but there's a problem. I have the Intelligente series display and when I try to execute the "cfgpio" instruction appear a message which say " configure GPIO - Enhanced Model Only". I have Nextion Editor V1.63.3
@@muratkokturk4922 What model board are you using? I sometimes get this backward but enhanced PWM is IO 4,5,6,7 and intelligent is only 6 and 7. Either way, you should be good. What part of the video do you not understand?
Is it possible to get multiple float values from one or several sensors through GPIO? For example, t,h,p from BME290 or/and +coordinates from GPS/compass?
I do not think this is possible. I do not have an intelligent model but I do know the Nextion can not interpret Float values. You have to do some tricks if you want to work with Floats.
I am working on a speed control video but it is not stand alone. I am in the middle of a job change so it has been difficult to make videos. I will get more out as soon as I settle in.
do you know if the IO output, when i press a button on the screen, is constantly outputting or is it kind of like PWM where its on 50% of the time? im asking because i have an arduino with a TMC2208 and a physical button as well as one output from the Nextion connected to the input of my arduino. If i press the physical button the motor turns in one direction but if i press the button on the Nextion the motor turns slower. ... if ((digitalRead(ENDSTOP_MIN) == LOW) || ((digitalRead(fwd) == HIGH))) ... ENDSTOP_MIN is the physical button and fwd is the software button from the nextion. (its just LOW and HIGH because the physical button outputs 3.3v when its depressed)
You can configure the I/O on the Nextion to operate in different ways. It has never acted in a way that I did not expect. I would love to see your code. If you want you can Email me with your code and I will check it out.
@@CheapControls okay i have used my little oscilloscope and the signal from the Nextion is definitely a clean steady sginal so the error must be in the code i will look through the code again to see if i can find anything.
@@CheapControls i solved it, had too much "()" in the if statements before: if ((digitalRead(ENDSTOP_MIN) == LOW) || ((digitalRead(fwd) == HIGH))) now: if (digitalRead(ENDSTOP_MIN) == LOW || digitalRead(fwd) == HIGH)
Hello, I would like to ask some questions. I use the 2.4-inch expansion IO to output two channels of PWM to my expansion hardware, which causes the slider function of the touch screen to freeze. I have never found the reason. Have you encountered it? Can you give me some pointers? Thanks
The only way I could help with, is to see your code. You would need to go to www.cheapcontrols.com and submit a help request. Then we would interact over emaill.
So useful. Thanks
Glad it was helpful! Thanks for watching.
Great tutorial 👌 Thank you
Your welcome. Thanks for watching.
Perfect timing. I just received my extension board. Only $5 on eBay. 🙂
I got one with a display and since I worked with the DPS I wanted to start with some basic I/O before I go into depth. I am glad it helped.
Great work, I have 10 values i want controlled in one button when click button all 10 values star how can do that
If you want to control a larger load you will need to attach a relay or opto isolator so you don't damage the Nextion Display. Thank you for watching.
Simple servos take a command pulse from 1000us to 2000us. At 50Hz, 1% = 200us, so 1000us would be 5% and 2000us would be 10%.
That is interesting. I am building a circuit board that will make this information very useful
Do you have a video on using the buzzer on the extended board please? I have looked but cant find one. Many thanks.
I have not done a video on that. I am about 3 hours from leaving the country for a week. If you go to www.cheapcontrols.com and submit a comment I will help you when I get back.
thanks a lot ,,,can the nextiom hmi work with plc like allen bradley or siemens ,serial communication ?thank you
I am not sure. the Nextion can sends HEX codes at all baud rates. If the PLC can interpret codes and send specific strings then it should work. You can get a cheap low end model and try it out. I have access to some MicroLogic PLCs but I think I need proprietary software to code them.
@@CheapControls thank you ill try it and then tell you :)
I look forward to hearing back. What brand of PLC are you using?
@@CheapControls i have many plc ,,,allen bradley ,micrologix ,,,controllogix , siemens s7 1500 , panasonic sigma , i have a converter too to convert rs232 to ethernet ,,,,i think communication with hmi nextion willl be as sending message .(like awa instruction in allen bradley ,,,
I have not programmed an Allen Bradly in 20 years. Good luck and let me know how it goes.
I still don't know how to connect sensors and import their values? It says on the ITEAD homepage that it is to be used for this. What I don't know yet: how does the piezzo work?
I have not found the Nextion to work for collecting data. It is better to use an Arduino to collect sensor data and then transmit it over serial. For control the Nextion can turn things on and off and do some PWM but the current level is very low. I think it is best to use nextion for display and Arduino to input and output. I have started to use ESP32 in place of Arduino but it functions very similar. The ESP32 has Wifi. Sorry if this is confusing.
@@CheapControls my board is also ESP32 (with Nano 33 I have a little struggle) and in HA ESPHome, not in IDE (IDE is not very good for ESP32). I wanted to recreate an "NSPanel where the relays (240V, instead of 5V) are already built in, but it can be recreated using "Expand Board". For me it would be easier if Nextion not only "beeped", but also that Device turns on what can be connected (small pump 5V, for pouring) If I connect it to VCC and Ground with no definition, it starts working immediately.But the pump doesn't have 4 wires like a motor, so I have no idea , how I can switch it on (without ESP32 board) It is therefore important to me that the Nextion can also work independently, because unfortunately there is often an Internet failure, and an ESP32 then no longer works, but a Nextion does not need Internet/WLAN, to switch its own GPIO (that's why I prefer battery+time setting instead of "Internet time") In EasyESP (I also like coding) I don't know at all how to specify the GPIO and Piezzo beep, and also alarm afterwards say if something is wrong. That's what the GPIOs are for. Or not? Unfortunately, there is hardly anything to be found... I found this, but without a sketch of what should be connected and where:
Could you please show that too, or "frize" where to connect the GPIO and PIN of devices to? Unfortunately, the video doesn't show it very well. Where is VCC and where is the yellow wire?
nextion.tech/2022/01/24/the-sunday-blog-nextion-gpio-part3-digital-input-unbound-and-bound/
I can not speak to the buzzer. I have not used it too much but the Nextion displays should drive a relay and I have found the RTC to be fairly accurate. You should probably have an admin page were you can adjust it from time to time.
As long as you don't need to control or read analog signals you should be good. I have a larger board for testing the GPIO pins that works well. I have limited experience with the smaller board. Do you think there would be a market for a relay board that connects directly to the Nextion? I might start building one. I am not sure your location. Feel free to submit a comment on www.cheapcontrols.com and I will reply through Email.
@@CheapControls I just added a chirp to keys on a small keyboard app. The expansion board beeper was configured with
cfgpio 7,2,0
I use a disabled hotspot to create a beep subroutine (in the press event)
pio7=1
delay=15
pio7=0
I call it with
click beep,1
You've probably sorted this by now, but I thought I'd share for new people. You do a great job on the videos. I use the Nextion with the Propeller processors with my own library. At the moment it's deployed in two commercial products (camera pan/tilt controller and a laser-tag game piece).
@@JonMcPhalen That is very interesting. I originally started this channel as a basic electronics channel, which was not a good idea. I stumbled onto the Nextion and decided to make it a control channel with those displays. But then I got sidetracked and spent the last year making 90% Nextion tutorial videos. I want to get back into the control videos. I have a video coming out next week with an add-on relay board for the Nextion that connects directly to the GPIO port. I want to adjust it slightly and then make one with PWM and some other options. I am unsure if there is a market, but it is fun to build things. If you'd like to play with one of my boards, let me know over at the cheap controls main website. I have a contact form on the help page. I hope to have the video out on Thursday.
Can the display be set to start with pins on low instead of high without connecting to an arduino?
I have mine set up to 8 relays and works perfectly but want it to start with pins on low.
I do not believe you can change polarity in the Nextion for the I/O pins
Nice demonstration always.
I am one of you subscriber,
Could you please make a tutorial on pwm on the basis of temperature with the combination of nextion+Arduino+ds18b20+traic
I try to do viewer requests. I have a list but I can't guarantee when I will get to it.
Thanks for this video, very useful because there isn't a good guide about all the Nextion commands. I' have try to follow your instructions but there's a problem. I have the Intelligente series display and when I try to execute the "cfgpio" instruction appear a message which say " configure GPIO - Enhanced Model Only".
I have Nextion Editor V1.63.3
what pin are you trying to configure? The enhanced and intelligent have different pin configuration.
@@CheapControls I am trying to control PWM output at IO-6. How can I control it?
@@muratkokturk4922 What model board are you using? I sometimes get this backward but enhanced PWM is IO 4,5,6,7 and intelligent is only 6 and 7. Either way, you should be good. What part of the video do you not understand?
Is it possible to get multiple float values from one or several sensors through GPIO?
For example, t,h,p from BME290
or/and +coordinates from GPS/compass?
I do not think this is possible. I do not have an intelligent model but I do know the Nextion can not interpret Float values. You have to do some tricks if you want to work with Floats.
@@conceptobject I don't think so but do you have the model of GPS sensor you are using?
could you please make tutorial for 3 mode fan speed control? Low Speed, Medium Speed and High Speed.
I am working on a speed control video but it is not stand alone. I am in the middle of a job change so it has been difficult to make videos. I will get more out as soon as I settle in.
@@CheapControls Thank you, with your tutorial videos i made which i want, thank you so much
do you know if the IO output, when i press a button on the screen, is constantly outputting or is it kind of like PWM where its on 50% of the time? im asking because i have an arduino with a TMC2208 and a physical button as well as one output from the Nextion connected to the input of my arduino. If i press the physical button the motor turns in one direction but if i press the button on the Nextion the motor turns slower.
...
if ((digitalRead(ENDSTOP_MIN) == LOW) || ((digitalRead(fwd) == HIGH)))
...
ENDSTOP_MIN is the physical button and fwd is the software button from the nextion. (its just LOW and HIGH because the physical button outputs 3.3v when its depressed)
You can configure the I/O on the Nextion to operate in different ways. It has never acted in a way that I did not expect. I would love to see your code. If you want you can Email me with your code and I will check it out.
@@CheapControls okay i have used my little oscilloscope and the signal from the Nextion is definitely a clean steady sginal so the error must be in the code i will look through the code again to see if i can find anything.
@@CheapControls i solved it, had too much "()" in the if statements
before: if ((digitalRead(ENDSTOP_MIN) == LOW) || ((digitalRead(fwd) == HIGH)))
now: if (digitalRead(ENDSTOP_MIN) == LOW || digitalRead(fwd) == HIGH)
That's great. It always feels good when you find the problem
it is only works on enhance ver. :(
This is a true statement. I wish the basic models had a couple PWM Pins.
Hello, I would like to ask some questions. I use the 2.4-inch expansion IO to output two channels of PWM to my expansion hardware, which causes the slider function of the touch screen to freeze. I have never found the reason. Have you encountered it? Can you give me some pointers? Thanks
The only way I could help with, is to see your code. You would need to go to www.cheapcontrols.com and submit a help request. Then we would interact over emaill.
Can you please leave your email address? Thanks@@CheapControls