#26 DWIN HMI - How to display Float Values

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2023
  • This video explains how to display FLOAT values on DWIN display.
    The float values are multiplied by 100 and converted to Integer value in code.
    In DWIN display DATA VARIABLE is used of variable type INTEGER and decimal places set to 2.
    With this simple trick , we can display the actual float values.
    Code & Project download :
    www.alselectro.in/product-pag...
    The code uses three arrays of bytes to store the protocol for each variable: Temperature, TemperatureF, and Humidity. Each array has 8 elements, as follows:
    The first two elements are 0x5A and 0xA5, which are fixed header bytes that indicate the start of a data packet.
    The third element is 0x05, which is the length of the data packet (excluding the header bytes).
    The fourth element is write 0x82, which is a command byte that indicates that data is being sent to a vp address on the display.
    The fifth element is a hex value that corresponds to the address of the vp of the display. For example, 0x52 is the address of temp, 0x51 is the address of tempF, and 0x50 is the address of humidity.
    The 7th and 8th element (index 6 & 7) are replaced with High byte and Low byte of actual data.
    Finally Serial.Write() function is used to write data on to display.
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @dr.xx1
    @dr.xx1 7 วันที่ผ่านมา

    amazing channel, thank you, i make now a injection molding machine with this display :D

  • @vaishnaviGunjal-dy4en
    @vaishnaviGunjal-dy4en หลายเดือนก่อน

    hii , i am using same code displaying two values celcius and in fahreinheit it is only display celcius value not displayig fahereinheit value and if i comment celcius display code then fahereinheit value is display it means at a time only one value is display. in your case three values are display at a time how? i am doing exact same as given in your video.

  • @PHS-123
    @PHS-123 8 หลายเดือนก่อน +1

    Nice sir❤

  • @jeevanandham2528
    @jeevanandham2528 8 หลายเดือนก่อน

    சார்.. சூப்பர்..

  • @prasanthchigurupatii
    @prasanthchigurupatii 8 หลายเดือนก่อน +2

  • @CeballosAvigail
    @CeballosAvigail 8 หลายเดือนก่อน

    Hello, I am a new user of the DWIN display, I would like to know how to generate alphanumeric characters that occupy at least 60% of the height of the display, since the normal way of using '0' index fonts does not help me. It has been possible. In my project the Strings will reach the display through the serial port, sent from an Arduino. Thank you very much and excellent dissemination channel.

    • @SaravananAL
      @SaravananAL  8 หลายเดือนก่อน

      Artistic Variables can be used by creating image icons. please check video #11 @ 8:15
      th-cam.com/video/3819FTWJELM/w-d-xo.html&pp=gAQBiAQB.
      But this method is effective for numeric numbers and for pre stored characters as image icons. Not effective for Strings.

    • @SaravananAL
      @SaravananAL  8 หลายเดือนก่อน

      you can also try with font generator with bigger size selection for 0.HZK file

    • @CeballosAvigail
      @CeballosAvigail 8 หลายเดือนก่อน

      @@SaravananAL I have already tried it, but it is not big enough, that is why I was asking, I have tried with DEGUS txt, but when creating the sources with the gray word library generator and the sources are not shown when sending the strings through the serial port .

  • @ADMIN-xc2en
    @ADMIN-xc2en 8 หลายเดือนก่อน

    hi sir . i am new to dwin display . i have bought 4.3inch capacitive touch display . but i am facing issue while changing application using sd card (screen goes blank not loading new application from sd card . if i remove sd cardd it booting old application ). i am using sandisk 8gb class 4 sd card . please help me resolve issue

    • @SaravananAL
      @SaravananAL  8 หลายเดือนก่อน

      Format SD card as FAT 32 allocation units 4096 bytes as seen in video #4
      th-cam.com/video/SdKTSLY3sW8/w-d-xo.html&pp=gAQBiAQB
      @ 7:15.
      also ensure that you copy only DWIN_SET folder to sd card.Also an external power source for display.

  • @ATAS
    @ATAS 4 หลายเดือนก่อน

    thank yotu

  • @stephanustweedale8598
    @stephanustweedale8598 7 หลายเดือนก่อน

    P R O M O S M