Motion Driver 6.0 Python code through Mini Arduino Pro

By andreasperzl , 11 July 2014

First, let me start off with explaining my current set up. The MPU-9150 breakaway board from Sparkfun is wired to a Mini Arduino Pro w/ATmega 328 (GND -> GND, VCC -> VCC, SDA -> A4, SCL -> A5). The Mini Arduino Pro is connected to a Sparkfun FTDI Basic, which is connected to my Windows 7 computer via USB. I am currently attempting to get the Python code running, but I have been struggling with errors.

So far, I have changed the serial.Serial code to serial.Win32Serial. The error seems to be originating from the interaction between the Arduino code, which was initially used to read the raw outputs, and the Python self.s.read() code. With further analysis, it appears that the self.s.read() code is reading the print statements from the Arduino code. Does anyone know what Arduino code I need to send the correct data to the Python code?


UPDATE: I figured out how to output the values from a pin, but I don't know if I am using the correct pin. Is A0 the correct one, or is there a way to look it up?

phpbb Topic ID
16365