175 Nextion display controlling and Arduino controlling a relay

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024
  • The code is available at this link - cheepcontrols.... It contains the individual files in the unzipped format and a single zipped file with all the files.
    In this video, I show how to control two relays. Setting two separate timers and having the relays act as single shot and constant on/off cycle with a 50% duty cycle.
    If you enjoy the content consider donating a cup of coffee at ko-fi.com/chea...
    I have started a group on Facebook to make it easier to interact with user-requested videos. Consider looking it up. www.facebook.c...

ความคิดเห็น • 30

  • @greg4367
    @greg4367 2 ปีที่แล้ว +1

    Thanks, great tip on zeroing the keyboard for input.

  • @fp8604
    @fp8604 2 ปีที่แล้ว

    Just want to drop you a line....great coverage of this display with Arduino....your insight, effort and descriptive processes...of course married to original and other code processes I reviewed....I have a loaded UNO with a display from streaming raw ADC values from an FSR to real time numerical distance display with a range sensor, and other various controls etc Thank you and keep up the great work.

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว +1

      thanks for the kind words and also for taking the time to comment.

    • @fp8604
      @fp8604 2 ปีที่แล้ว

      @@CheapControls is there a way to send you code? I approached one of your examples in a slightly different way and you may find it useful! Pertains to ultrasonic range sensor.

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      There is an Email listed on the about me page on the main channel or you can submit a comment on the www.cheapcontrols.com webpage and I will reply with an Email address. I enjoy looking at alternate solutions.

  • @litakely4703
    @litakely4703 2 ปีที่แล้ว +1

    Very good

  • @farshadfeyzbar2093
    @farshadfeyzbar2093 10 หลายเดือนก่อน +1

    Would you please put a new link to the code? The one in the bio does not work.

    • @CheapControls
      @CheapControls  10 หลายเดือนก่อน

      You need to go to www.cheapcontrols.com. On the need help page, you can request the code.

  • @apollorobb
    @apollorobb ปีที่แล้ว +1

    I had the idea to do something like this to have a touch display on my microwave id like to see some examples on how you could setup buttons with pre programmed count down times on this IE. The popcorn button

    • @CheapControls
      @CheapControls  ปีที่แล้ว +1

      Sounds like a good use for the Nextion. Thanks for watching and taking the time to comment.

    • @apollorobb
      @apollorobb ปีที่แล้ว +1

      @@CheapControls You got it . This is the single best channel to learn the Nextion Displays . Thanks for the hard work

    • @CheapControls
      @CheapControls  ปีที่แล้ว +2

      you are very welcome.

  • @franckbloch90
    @franckbloch90 2 ปีที่แล้ว

    Very good 👍🏻

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว +1

      Thanks for taking the time to comment. It is appreciated

    • @franckbloch90
      @franckbloch90 2 ปีที่แล้ว +2

      @@CheapControls all your videos on nextion are excellent, I learned a lot, keep it up

    • @BlondieSL
      @BlondieSL 2 ปีที่แล้ว +1

      @@franckbloch90 Same here, Frank.
      I found CC's channel when I was searching and searching for stripped down, "tiny" libraries for the Nextion. At that time, I had no idea that I could do everything without their HORRIBLE, MESSY, LAGGY, OVERLY COMPLICATED libraries.
      When I first saw the titles, I though, no way I could do EVERYTHING I need to do. I mean, how's that even possible.
      Well, CC sure cleared that up for me.
      When I was doing my searching, it was because a very important project was failing because Arduino's memory was filled up to just over 75%. And we all know what happens to Arduino when memory is 3/4 full. It becomes unstable and things just stop working.
      But when I watched some of CC's videos, I quickly realized that I do not "need" the libraries.
      I removed all the libraries and calls and replaced them with the serial calls and such.
      Memory went from 75% to something like 30% ish.
      I also then noticed too that things just ran faster. I guess because those libraries are so laggy.
      I can't even express how appreciative I am for CC's knowledge and willingness to share.
      It also became clear that the Nextion displays could be used on any device that supports standard serial. It just might be how you send the info, but it's doable.

  • @mahefaranja9031
    @mahefaranja9031 ปีที่แล้ว

    HI CC, is it possible to merge the content of this course with the previous video (174)?

    • @CheapControls
      @CheapControls  ปีที่แล้ว +1

      I start most of my videos with the content of video #174. Yes it is possible.

  • @kuro4102
    @kuro4102 2 ปีที่แล้ว

    Hey, i wanna ask something can i create array in Nextion ? Or can i Store the data from arduino in Nextion?

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว +1

      I have not used arrays in the Nextion. I do not believe they have the ability but I could be wrong. I know they have a few built into the operating system, you can use them to identify objects on a page. There is also one for the serial data. I have not used the serial array but I have used the object array. If you had a hidden page you could have a series of number or text objects and treat them as an array. Then you could write to them and store information but they would be cleared on a reset. Some models have EEprom but they are limited to 10K writes so be careful with how often you update. I have always wanted to test the EEprom by writing over and over for 100k to a million writes to see what happens but I have not gotten around to it yet.

    • @kuro4102
      @kuro4102 2 ปีที่แล้ว

      @@CheapControls oke thank you for your information so Eeprom is more better than array right?

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว

      It is not better or worse. It is just an alternative way to store data. But you have to be careful with eeprom. You don't want to write to eeprom to often or you will break it.

    • @kuro4102
      @kuro4102 2 ปีที่แล้ว

      @@CheapControls oke thank you. I wanna ask something too , can i Store data sensor into arduino and subtract it with the old one data sensor? Why i always have it as 0 in the Output, can you help me? Here the code:
      int dataadc;
      int dataold;
      float diff;
      float volt;
      void setup(){
      Serial.begin(9600);
      }
      void loop(){
      dataadc=analogRead(A0);
      dataold=dataadc;
      diff = Abs(dataadc-dataold);
      volt = diff*5.0/1023;
      Serial.println (volt);
      }
      PS: and i see in the arduino forum that i should set dataadc and dataold as 0 is that helping ?

    • @CheapControls
      @CheapControls  2 ปีที่แล้ว +1

      You need to move the dataol=dataadc lower
      int dataadc;
      int dataold;
      float diff;
      float volt;
      void setup(){
      Serial.begin(9600);
      }
      void loop(){
      dataadc=analogRead(A0);
      diff = Abs(dataadc-dataold);
      volt = diff*5.0/1023;
      Serial.println(volt);
      dataold=dataadc;
      }