#26 DWIN HMI - How to display Float Values

  Рет қаралды 3,010

Saravanan AL

Saravanan AL

Күн бұрын

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.

Пікірлер: 14
@dr.xx1
@dr.xx1 Ай бұрын
amazing channel, thank you, i make now a injection molding machine with this display :D
@Mohamed_fawzy_hanter
@Mohamed_fawzy_hanter 22 күн бұрын
شكرايا اخي
@PHS-123
@PHS-123 10 ай бұрын
Nice sir❤
@jeevanandham2528
@jeevanandham2528 10 ай бұрын
சார்.. சூப்பர்..
@prasanthchigurupatii
@prasanthchigurupatii 10 ай бұрын
@vaishnaviGunjal-dy4en
@vaishnaviGunjal-dy4en 3 ай бұрын
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.
@ATAS
@ATAS 5 ай бұрын
thank yotu
@CeballosAvigail
@CeballosAvigail 9 ай бұрын
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 9 ай бұрын
Artistic Variables can be used by creating image icons. please check video #11 @ 8:15 kzbin.info/www/bejne/aWmUanmKjK94gq8&pp=gAQBiAQB. But this method is effective for numeric numbers and for pre stored characters as image icons. Not effective for Strings.
@SaravananAL
@SaravananAL 9 ай бұрын
you can also try with font generator with bigger size selection for 0.HZK file
@CeballosAvigail
@CeballosAvigail 9 ай бұрын
@@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 9 ай бұрын
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 9 ай бұрын
Format SD card as FAT 32 allocation units 4096 bytes as seen in video #4 kzbin.info/www/bejne/iZWuhYaCjpimjZo&pp=gAQBiAQB @ 7:15. also ensure that you copy only DWIN_SET folder to sd card.Also an external power source for display.
@stephanustweedale8598
@stephanustweedale8598 9 ай бұрын
P R O M O S M
#1 DWIN HMI TOUCH SCREEN DISPLAY - DEMO PROJECT
31:11
Saravanan AL
Рет қаралды 29 М.
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 36 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 64 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 24 МЛН
Using Serial.parseInt() with Arduino
15:39
Programming Electronics Academy
Рет қаралды 46 М.
Arduino Pushbutton Menu System with I2C LCD Display Tutorial
5:07
Arduino Intro
Рет қаралды 1,2 М.
#9 DWIN Display -Variable ICONs Linked to DATA Value
16:33
Saravanan AL
Рет қаралды 5 М.
STM32 Guide #2: Registers + HAL (Blink example)
30:02
Mitch Davis
Рет қаралды 189 М.
Relay Control with Arduino & DWIN HMI Display
12:16
IoT Projects Ideas
Рет қаралды 21 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 15 МЛН
Лучший браузер!
0:27
Honey Montana
Рет қаралды 803 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 476 М.