#26 DWIN HMI - How to display Float Values

Sdílet
Vložit
  • čas přidán 5. 10. 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.
  • Věda a technologie

Komentáře • 14

  • @dr.xx1
    @dr.xx1 Před měsícem

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

  • @Mohamed_fawzy_hanter
    @Mohamed_fawzy_hanter Před 11 dny

    شكرايا اخي

  • @vaishnaviGunjal-dy4en
    @vaishnaviGunjal-dy4en Před 3 měsíci

    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.

  • @prasanthchigurupatii
    @prasanthchigurupatii Před 9 měsíci +2

  • @PHS-123
    @PHS-123 Před 9 měsíci +1

    Nice sir❤

  • @jeevanandham2528
    @jeevanandham2528 Před 9 měsíci

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

  • @CeballosAvigail
    @CeballosAvigail Před 9 měsíci

    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  Před 9 měsíci

      Artistic Variables can be used by creating image icons. please check video #11 @ 8:15
      czcams.com/video/3819FTWJELM/video.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  Před 9 měsíci

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

    • @CeballosAvigail
      @CeballosAvigail Před 9 měsíci

      @@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 Před 9 měsíci

    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  Před 9 měsíci

      Format SD card as FAT 32 allocation units 4096 bytes as seen in video #4
      czcams.com/video/SdKTSLY3sW8/video.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 Před 5 měsíci

    thank yotu

  • @stephanustweedale8598
    @stephanustweedale8598 Před 8 měsíci

    P R O M O S M