Is there an easy way to do this?
The integers can go from -800 to +800.
I expect to send an integer every 100 ms. The integer is how many steps the motor must take for the next 100 ms period. I could break up the integer into a LSB and MSB and send only a byte per step (reassembling the bytes into an integer on the third step), but I am hoping there is a comm protocol fast enough to do it in one shot.
QuoteThe integers can go from -800 to +800.This kind of integers does perfectly fit into two bytes. With a 400kHz I2C you need about 50us to transmit 2 bytes. How do you get to 130us?
Quote from: pylon on Aug 18, 2012, 02:45 pmQuoteThe integers can go from -800 to +800.This kind of integers does perfectly fit into two bytes. With a 400kHz I2C you need about 50us to transmit 2 bytes. How do you get to 130us?Recall that this project has to communicate between two Arduinos, then from the second Arduino to the stepper motors. With two transimissions of ~50 µs, plus the processing time on the second Arduino, I can see how the total time could exceed 130 µs.Edit: Typo
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16