Hi Fadli, - I have just posted three ways for communicating data (temperature from a Dallas DS18B20) from one Arduino via standard serial, or Soft serial, or I2C serial communication to a secons Arduino. Display is on a 128x32 OLED, but that is secondary matter. Please visit
Wiring diagrams and sketches in the article!
Succes, Floris
Hi Fadli, the examples on theSolaruniverse.wordpress.com site deal with sending one float variable from Arduino 1 to Arduino 2.
What you want is to send two float variables, i.e. suhu and kelembapan, from Arduino 1 to Arduino 2
As serial communication only sends ASCII characters you must 'code' the floats into a string of ASCIi characters, transmit the string and in the receiving Arduino split the string, decode the two substrings into floats and voila - you got what you want.
Now reality. I am a newbie myself, but with help from posts on this fantastic forum I managed to write two sketches that work with Arduino 1 with a DHT11 sensor on pin 10, and with Arduino 2 with a 16x2 LCD display - note the wiring: lcd(12, 11, 5, 4, 3, 2)
connect TX of Arduino 1 with RX of Arduino 2 via an interruptor switch
connect RX of Arduino 1 with TX of Arduino 2 via an interruptor switch
(set switch in 'disconnected' position during uploads of sketches - or else you will get gibberish on the LCD display)
Do not forget to connect GND of both Arduinos