Hello, I'm currently trying to build a self-balancing robot with the arduimu as the brains of the operation driving a vex motor. To make pid tuning easier, I've been trying to get the ArduIMU to read data over serial. However, it appears Serial.read() is always returning -1 and Serial.available() never goes above 0. Any ideas why?
Tags: self-balancing, serial
Permalink Reply by Adam H on July 24, 2012 at 9:29am ArduIMU uses a custom FastSerial library. I thought that was causing the problem, but I've since removed all calls for FastSerial (which is basically everything having to do with the GPS) and I still cannot read any serial input on the ArduIMU. Any luck on your end with this problem? (I know I'm about a year too late.)
Permalink Reply by yihualou92 on July 25, 2012 at 3:22pm Sorry, I abandoned my efforts to try and communicate with the ArduIMU over serial. I'd crack it open again to see if I could get it working a year later, but it's still stuck at school along with the rest of my stuff.
Permalink Reply by Adam H on July 25, 2012 at 5:35pm I figured it out! The ArduIMU V3 already receives serial data from the GPS connection. For some reason, the GPS uses the TX line of the AVR, then another random pin that is used for the RX line. The Serial port that the code is referring to is the GPS RX pin. There's a setting in the code that changes a Serial_Mux pin to select between the normal hardware RX pin and another pin on the board. There are two options:
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.203 members
24 members
720 members
1355 members
207 members
© 2013 Created by Chris Anderson.
Powered by
