Arduino I2c slave to Raspberry pi Master

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

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!

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. :confused:

I would suggest getting your master slave communication working between two raspberry Pis.

Far easier to troubleshoot a problem on a single platform.

Still not seen the code.

thanks will try that, sorry code is on another machine not accessable from here