I'm new to serial communication and I am just scratching the surface, therefore please bare with me.
What I need to accomplish is the transfer of the gyroscope data I gather on my Arduino to Processing on my Macbook. I already have the code ready that reads my gyro/accel data, applies a complementary filter and outputs this to the serial monitor as a string.
I'd like to learn how to send this data directly from the Arduino to Processing.
- What would be the most effective way of sending data that can be positive and negative over serial?
- I've searched around and came across using strings over serial and read/split them in Processing. I'm not a fan of this method. HighByte& lowByte and float/char byte array seems as an alternative but gets too complicated for my current knowledge and understanding.
It would be great if someone could push me in the right direction or just help me altogether with learning serial communication and sending/reading data from a Arduino to Macbook/Processing app. I know in theory whats going on inside but code-wise i'm kinda lost.
Thanks in advance,