With some recent posts about talking to the SSC-32 from an Arduino, I thought I would share some of the stuff I did about a month or so ago… Note: I am using Arduino version 18
As some of you can probably tell from some of my previous posts, on the Running the Phoenix on C that after I had it part way working I started to make the my libraries closer to that of an Arduino, I have still a ways to go, but in the more recent versions I am probably 80+% there. How do I know? Well as part of this, I ported my code over to the Arduino environment. In Particular I have a Seeeduino Mega board which is based on an Atmega1280 chip, it has 4 USARTS, tons of IO lines, etc.
I had the code working such that I can control the robot by PS2 and/or XBee. The code uses a newer standard PS2 library which I included. Also while I was doing it I noticed that the default hardware implementation for the USARTS did not do any hardware buffering of output and during my research found it had some performance issues which were easy to address. I also included my updated versions of these. If you wish to try these out, they go into the directory:
\hardware\Arduino\cores\Arduino
The Hex_cfg file shows which IO pins I used for this, including a sound pin. Again I used a cheap radio shack speaker so I would have some sound.
Kurt
Arduino Phoenix.zip (49.4 KB)