From: Dave H. <dhy...@gm...> - 2008-10-07 17:27:37
|
Hi Russ, > I have a Connex200xm, Robostix, Wifistix stack. I'm using Buildroot version > 1629 which has linux version 2.6.21. I'm pretty new to using Gumstix, but I > was able to get wireless working using the threads on this forum. Now, I > want to configure my stack so that I can use the I/O pins on the Robostix. > I've searched through the forums and not had much luck. Essentially, I'm > trying to connect a dual h-bridge motor controller (L298 Compact Motor > Driver Kit from Solarbotics) to the Robostix so I can control it from the > Gumstix. It asks for 5 I/O pins in the instructions for the motor driver. Is > it possible to use 2 of the PWM connections on the Robostix? Could anyone > please help me configure my setup? Any help will be greatly appreciated. The I/O pins on the robostix connect to the ATMega128 processor on the robostix. So you'll need some code running on the robostix to make anything work. I wrote some demonstration code that allows pins on the robostix to be manipulated from the gumstix. It's called i2c-io. You'll need to first program the i2c-Bootloader onto the robostix <http://docswiki.gumstix.com/Robostix_i2c_bootloader> You may want to use the the gumstix as the programmer: <http://docswiki.gumstix.com/Robostix_gumstix_ISP> Then you'll need to use i2c-load to load the i2c-io.hex file: <http://docswiki.gumstix.com/Robostix_i2c_load> <http://docswiki.gumstix.com/Robostix_i2c-io> Then you can use i2c-io to manipulate registers in the ATMega128. To connect the motor driver, you'll need a PWM output and a GPIO pin for each motor. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |