Hey guys, got a quick question. Now, i want to do the following: my Arduino collects sensor measurements (float Temperature, float Pressure, float Humidity), and i want to send them over UART to ESP8266 and receive them so that i can send them on dweet. Now, you might ask yourself “Why don’t you just connect the sensor to the ESP?”. Well, i’m planning on hooking an 16x2 LCD on the Arduino so i can relay the data there as well. Now, i’ve tried several codes for both the Arduino and the ESP, and all i keep getting on the ESP is junk ( 8 digit temperature in Celsius for example).
I tried:
-
Serial.print(temperature) on Arduino with Serial.read() on ESP = junk
-
Serial.write(temperature) on Arduino with Serial. read() on ESP = junk
-
Serial.write(lowbyte) +Serial.write(highbyte) with Serial.Read = junk
I assume there’s something i’m doing wrong or missing, so i would need some help. I hope someone can provide some quick and easy code samples for me to try since i noticed ESP8266 (i have ESP-01 with the 8 pin in 4x2 layout version) are very common and a lot of people use them. Thanks in advance guys.