Hi,
I want to transfer the speed, which is calcucated on master, to the slave and display on LCD.
I've tried but the data type of the speed is float so i can't transmit it through rs485
Do anyone have idea for it?
Here is my code for calculate speed on master
here's a suggestion:
get your program working such that you can send the float to the serial monitor as text, then
see if you can ALSO send it out to the slave as text and make it appear on the slave'sdisplay and/or the serial monitor of the slave.
hints: sprintf(), serial.println(), serial1.println() for your master
serial1.read(), serial1.available() for your slave
( or use SoftwareSerial in lieu of Serial1 if you must)
I've tried with Serial.println() but it doesn't still work
When you uploaded the code, did the Arduino stick up a picket sign, and refuse to work under these conditions? Or, did the Arduino actually run the code, but not match your expectations in terms of its behavior?
If the first is the case, get a union buster to hire lower paid workers.
If the second is the case, adjust your expectations. Or change the code so that it does match your expectations. Don't expect us to help, though, when all you do is whine "It doesn't work".
You are still sticking your head in the sand for a significant amount of time.