I am still getting up to speed on Arduinos as I am coming from the PIC world. I have some Nanos that I have been using for small projects, but now I want to try to push it some.
The first thing I want to do is Livestream it servo values for a 3-axis skull setup. So in real-time I would like to be passing over pitch/yaw/roll.
I am currently collecting the data in a Python script that will reduce the 250Hz of data to something closer to 20Hz. I then want to stream that across to the Nano to adjust the servos. The values will be 3 signed into, so that will add up fast when trying to stream real-time. Any suggestions on how to do this fast enough?
Secondly, once I am happy with my setup, I plan to record motions and then play them back later. You guys think an external SDcard module would be the way to go there?
At 16MHz, the Arduino should handle it fine, it is just the comma I worry about.
I do want to use a fixed data rate since the head motions will be tied to audio, so that will actually be aomewhat critical to keep that tight.
I am not concerned with the recording of the data (since I can do that on my PC in Python), but the best way to store and read it out quick enough so I can replay it in sync with an audio source (probably an mp3 add on).
I regularly communicate between my Arduinos at 500,000 baud using the 3rd example in Serial Input Basics. If your individual messages are shorter than 64 bytes then a complete message can be received in the background and attended to at your convenience.
Robin2:
I regularly communicate between my Arduinos at 500,000 baud using the 3rd example in Serial Input Basics. If your individual messages are shorter than 64 bytes then a complete message can be received in the background and attended to at your convenience.
...R
We're you using the serial interface through the USB connection?