DWIN Display Tutorials #3 - Simple weather station project
HTML-код
- Опубликовано: 16 окт 2024
- In this video, I show you how to set up DWIN displays as a simple weather station. I used some sensors to gather temperature, humidity, pressure, CO2 concentration and dust density and wrote a simple Arduino code to send these parameters to the display.
Check my website for more details:
curiousscienti...
Please consider supporting me on Patreon:
/ dwin-display-3-78084606
Get the display used in this demo using my affiliate link:
s.click.aliexp...
Excellent!!!...could you use a colored pointer to be able to follow it better in the videos?
Thank you for the suggestion! I will make sure that I use something different in future videos to make things easier to follow.
Hey I watched your video it was really helpful and cool 😎.
But just I wanted to know whether have you worked with microcontroller (esp32, Arduino etc ..) and can directly burn the code in dwin module by using its tx, rx pins . Like some how what I just wanted to interface esp32 with DWIN module using its tx, rx pins without using pgt05 (uart converter) pin burner.
Hi! No, you always need an SD card to upload the code. The serial port is only for communication. You can read more details in the manual.
@@CuriousScientist thanks for the info ....
@@CuriousScientist just wanted to confirm you that , I want to update the icl file using esp32 on rx, tx pin is it possible to do that? Can we send files over rx,tx pins and update it accordingly?
I just told above that the files should be updated via an SD card.
@@CuriousScientistplease i need some help with the dwin hmi project 🙏 😢...i already have a project water level indicator and controller displays parameters on 0.96' oled using esp32..i want to display the same parameters on dwin hmi i can make UI and everything else now how can i display this data on dwin...will this code work
#include
// Define the RX and TX pins for the Serial2 connection
#define RXD2 16
#define TXD2 17
// Initialize Serial2 for DWIN display
HardwareSerial mySerial(2);
void setup() {
// Initialize the default Serial monitor for debugging
Serial.begin(115200);
// Initialize Serial2 for DWIN display communication
mySerial.begin(115200, SERIAL_8N1, RXD2, TXD2);
}
void loop() {
// Simulate reading the water level; replace with actual sensor code
int waterLevel = getWaterLevel();
// Send the water level to the DWIN display
sendWaterLevelToDWIN(waterLevel);
// Delay for 1 second before sending the next value
delay(1000);
}
// Function to simulate reading the water level sensor
int getWaterLevel() {
// Replace with actual code to read the sensor value
return analogRead(34); // Example analog pin for water level sensor
}
// Function to send water level data to the DWIN display
void sendWaterLevelToDWIN(int level) {
// Format the command according to DWIN's protocol
byte command[] = {0x5A, 0xA5, 0x05, 0x82, 0x00, 0x10, (byte)(level >> 8), (byte)(level & 0xFF)};
// Send the command to the DWIN display
mySerial.write(command, sizeof(command));
}
Sir, Can you give me your code please
It's on my Patreon! Feel free to join the supporters to get the code.
hi can you share the full of code
Hi! Sure, it is on my Patreon available for my supporters.
@@CuriousScientist :D (patreon error) your card can't be verified right now. please try again later.
I am not Patreon so I cannot tell why your card is rejected. As they suggest, try again later. :)
use chat gpt 4 give it the url and it will write a code for you and ur requirements..i was begging the mf coders to make videos or will pay to let me have a home controller panel with water level indicator and other parameters like co2 humidity temp AQI and many more on same dwin display and control relays ..i worked around and finally chatgpt 4 wrote an exact code for me i am a civil engineer student Fu*** these coders mf