176 Nextion Display tutorial waveform with min max number

แชร์
ฝัง
  • เผยแพร่เมื่อ 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.
    The base configuration is described better in this video • 174 Using the #nextio...
    This week I have a video on the waveform. I had a request from a viewer to make a video displaying readings in multiple formats. You must make multiple calls to the display to write to multiple fields. I display an analog input 0-5v on a waveform and a float object. I also interpret the minimum and maximum values in separate float objects. It was short and straightforward
    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...
    #nextion
    #arduino
    #display
    #tutorials

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

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

    great work as usual, can't wait to see the next video

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

      Thank you for your kind words

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

    Great vid as per usual. Even though I've been coding for decades (on and off) I still learn stuff from you. LOL
    One example is Ternary Operators.
    I don't know why, but I've never used them. I've always done the IF structures.
    But now seeing it in use, I can see that it is very slick.
    Mark, at one point, you were asking for ideas on projects. I'll assume that you mean projects that won't cost a lot of $$$.
    I do have an idea that you might find interesting and perhaps even a bit challenging. And the Nextion is perfect for this. In fact, there are "minor" projects for this very thing.
    That is, AD8232 Heart Rate Monitor.
    There are a few good tutorials on this, but not done in your style of completeness.
    More than that, however, and something that I plan on trying to do once I get to that project, is besides the usual and common code that is out there, is to add code that can analyze PQRST waves, tachycardia, bradycardia, etc.
    I did some research on that a year or 2 ago and I did come across a guy who shows how to code this, but for one, I can't find that info at the moment, but I do remember that the math was out of my league. Yeah, I'm not super great at math. LOL
    Anyway, just an idea I thought that I'd throw out there.

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

      That is an interesting idea. I spent a little time looking into it and watching a video on it. I am not sure how I would show it working. Let me think on it and maybe we can discuss it over on email.

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

    Great video

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

      Glad you enjoyed it

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

      @@CheapControls very much

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

    Thats what i needdd thankyouuu

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

      I am glad I was able to help

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

      @@CheapControls hey can i used this math in this code but i used it without Nextion ? And used it with Serial Monitor?

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

    Hi there what a great video it's really help alot for me! thank you so much! i am curious is it possible to change the value to display 0 instead of 2.3 while the position was in the middle?

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

      I am not sure what you are asking. Is there a timestamp in the video you can give me so I can understand better?

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

      @@CheapControls is at timestamp 10:12, can it convert it to +25000 -0- -25000 instead of 0-50000

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

      That is a very good question. I have never sent a negative number to the Nextion. I am going to make next weeks video about sending a negative number to the Nextion. Sorry I can't answer the question today. I will have an answer soon. Watch for the video and maybe another reply to this comment

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

      that's great! i have lean alot from you and it is very useful to me, thank you so much! waiting to see your next video:)

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

      @@CheapControls hi I finally got the code done! By using this code and some edit, get negatives and positive thanks a lot hope can share with you

  • @ibrahim-eo3hb
    @ibrahim-eo3hb ปีที่แล้ว

    I want to get a smooth graph. Can I print 5 data in 1 second? ( k type termokupl )

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

      what MCU are you using to send the data. I am pretty sure you can send the data very quickly.

    • @ibrahim-eo3hb
      @ibrahim-eo3hb ปีที่แล้ว

      @@CheapControls ESP32

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

      The ESP32 should have the ability to update the waveform very quickly. More data at a quicker rate will make it appear smoother.

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

    Can i use min() or max() function?

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

      You can copy the code from the video or download it at cheapcontrols.com. Then you can adjust the code in anyway you want.

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

      @@CheapControls Hey Bro i wanna ask something why i cant get string from Nextion when i use Serial2? But when i used Serial i still get the string

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

      @@CheapControls also i wanna ask something why i get 1553,6 value of minVolt? Why i cant get a zero?

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

      @@kuro4102 Do you have the Nextion connected to Rx/TX of the Arduino board or do you have it connected to 2 other pins, that you have the software serial set to those 2 pins?
      I should ask which Arduino are you using?
      Uno?
      Nano?
      Nano Every?
      Mega 2560?

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

      @@BlondieSL i used UNO and now i can used the Serial2 with Nextion but with different arduino code , now the problem is minVolt Array is contains 1553,6 but when i Serial.println voltIn it still 0 do you have solution?