zedfx
November 16, 2017, 12:35pm
1
Hi, Has anyone successfully transmitted more that 1 byte from an arduino slave to a raspberry pi master??
i am trying to send 4 floats as 16 bytes when requested, to a raspberry pi where they are reconstructed back to the four floats.
i have managed to do this from an arduino to another arduino over i2c but not to a raspberry pi.
i know this is strictly not just an arduino problem, but like me many of you use them in tandem.
i need to use standard libaries on the raspberry pi as it also has an i2c realtime clock.
thanks in advance for any help
pylon
November 16, 2017, 2:41pm
2
Do you have problems transmitting more than one byte or re-combining the bytes to a correct float type on the Pi?
Post your current code!
zedfx
November 17, 2017, 8:24am
3
Hi, im using unions to split and recombine the floats and using two arduinos it works fine, as far as i can see the raspberry pi is requesting data and it receives the first byte and then it fails.
srnet
November 17, 2017, 8:57am
4
I would suggest getting your master slave communication working between two raspberry Pis.
Far easier to troubleshoot a problem on a single platform.
zedfx
November 20, 2017, 8:27am
6
thanks will try that, sorry code is on another machine not accessable from here