Byte Word Troubles

Hi,

I am trying to transfer accelerometer and gyro data from arduino to another software via can bus. My issue is that i cannot get correct numbers over 255. I tried to split the float data from sensor using the first 2 examples above but I get errors. Is it possible for a floating number to be split and transferred via can like that?

Any idea would be helpful!

Thanks

Hi, Did you google dac8760 arduino

GitHub has a library for Arduino to communicate with that DAC.

Tom... :)

TomGeorge: Hi, Did you google dac8760 arduino

GitHub has a library for Arduino to communicate with that DAC.

Tom... :)

Hi,

thanks for the prompt reply.

It looks that this is something different than what I would like to do.

Basically, I can get correct data until 255 either acceleration (G) or dps (degrees per second). Sensor can read up to 2000 dps but I get no more than 255. This is an 8bit problem. When I change to 16 bit on the software which accepts the can messages the only that changes is the scale. Then I can see up to 16 bit (65535) but is actually scaled to 255.

Although on arduino serial monitor I can see the correct numbers when I send them via can there is that problem. I tried to follow the above example code but I get errors with float numbers.

Thanks

I just asked a moderator to split this new question from the 3 year old one. (So Tom’s response might not make much sense.)

Show your code. The problem is definitely in the code you didn’t show.

@glt, do not hijack. Thread split.