Using the Propeller Chip for general purpose I/O controller with a PC?
bmb!
Posts: 26
I've lurked on here for a while, and have been trying to get more into the Propeller and away from the Basic Stamp. I'm looking at doing a hobby robot project with my son. This would be my most complicated to date.
The robot would have a mini-ITX "brain" and some kind of interface "device" for the digital sensors, motor controller, and analog signals. That device I was thinking could be a Propeller connected to the PC via USB/serial. The Prop would basically accept simple commands (changing pin states) and report back signals to the PC. There would be minimal circuitry on the Propeller board perhaps just an ADC and a bunch of terminals for connecting control lines.
Here is an example device: http://www.xdimax.com/sub20/sub20.html
My question... Instead of reinventing the wheel does anyone know of a similar project with available source code? Has anyone used a Prop in this manner? Would seem likely to me...
Thanks!
The robot would have a mini-ITX "brain" and some kind of interface "device" for the digital sensors, motor controller, and analog signals. That device I was thinking could be a Propeller connected to the PC via USB/serial. The Prop would basically accept simple commands (changing pin states) and report back signals to the PC. There would be minimal circuitry on the Propeller board perhaps just an ADC and a bunch of terminals for connecting control lines.
Here is an example device: http://www.xdimax.com/sub20/sub20.html
My question... Instead of reinventing the wheel does anyone know of a similar project with available source code? Has anyone used a Prop in this manner? Would seem likely to me...
Thanks!
Comments
the PROPplug shows as a serial port so does a quick-start board and you can write a prop code to send the sensor data to the ITX mobo and read data from sent from the ITX mobo to run motors.
i did a similar thing with a 486 and the basic stamp.
PS QB64 allows for complete windows API support.
Going from USB to i2c or spi for GPIO, they make small IC for that.
I used a Prop for a project but ending going for Windows C# to i2c ICs direct route and eliminated the Prop (sorry)
silabs CP2112: hid-usb-to-i2c (only in tiny qfn)
http://www.silabs.com/pages/DownloadDoc.aspx?FILEURL=Support Documents/TechnicalDocs/CP2112_Short.pdf
I have used this chip myself and if you want C# example code pm me.
You can buy their eval board ($29) and use it as a module.
http://www.mouser.com/ProductDetail/Silicon-Laboratories/CP2112EK/?qs=j12q4iUN962CHFB%2fkkvFGw%3d%3d
Here is a usb-spi IC.
http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en556614
and their eval board may offer everything you need?
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en556988
I ended up using a 8pin i2c LED driver that can pwm up to 152hz as a motor speed controller.
But if your demands are more complex than what off the shelfs i2c/spi chips can offer, go with the Prop.
Ideally, you can work through the book with the PPDB(Parallax Professional Developer board) or even the PDB (Propeller demo board).
It is called a USB-IO board.
It has screw terminals and a DB25 for connections.
It is powered by USB.
I have driver code that allows you to send commands to do I2C and such to make the PC program simple.
It is in expresspcb size so it is cheap to get made.
I use the FTDI dll to use the board from excel and access. But should work with just about any PC language.
If anyone is interested I can post the files when I get back to work.
Bean