Implementing the DC-16 to 2p40
danilo
Posts: 7
I need to control 4 stepper motors individually using a BS2p40-IC Module.
The number of I/O pins are very limited for my design and i have considered using the DC-16 Ouput Expansion Board (#31216) in order to expand the number of I/O pins.
However, The intructions on the DC-16: CONNECTIONS-SERIAL CONTROL
" ... the DC-16 is to be connected to a host like the ... Basic Stamp 2 series microcontroller in a Board-of-Education (BOE). To make the connection between the host controller and the DC-16 use a 3-wire servo extender cable."
I am not using a BOE and i want to know·if i can use the I/O pins (p0-p15 or x0-x15) on the BS2p40 to make this type of connection and implement the DC-16?
The number of I/O pins are very limited for my design and i have considered using the DC-16 Ouput Expansion Board (#31216) in order to expand the number of I/O pins.
However, The intructions on the DC-16: CONNECTIONS-SERIAL CONTROL
" ... the DC-16 is to be connected to a host like the ... Basic Stamp 2 series microcontroller in a Board-of-Education (BOE). To make the connection between the host controller and the DC-16 use a 3-wire servo extender cable."
I am not using a BOE and i want to know·if i can use the I/O pins (p0-p15 or x0-x15) on the BS2p40 to make this type of connection and implement the DC-16?
Comments
The DC-16 has a "servo" style header in that it uses three pins. One for Ground (labeled "G") one for Power (labeled "R") and one for signal (labeled "W"). You would make sure the BS2P40 and the DC-16 had the same source for power and ground, then connect one of the pins from the BS2P40 to the "W" pin on the DC-16. Pretty straight forward.
Vern
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
I am aware about sharing the same power source and the [url=mailto:BS@p40]BS2p40[/url] has its own power and power regulation source.
As for the stepper motors I will be using a ULN2803 Driver to connect between the DC-16 and the stepper motor.
Does anyone see any "red flags" about this configuration?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Good point! I had assumed that the DC-16 power switch would be placed in the "1" position so it would obtain microcontroller power from the same source as the BS2P40, and the steppers (via the ULN2803) from an alternate power source to keep noise etc. from the digital control circuit.
Vern
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·· There is, of course, more than one way to do this.· I was just making sure there was a separate supply in the mix.· But what you said could work as well.· Depending on the load with the servos a common supply with the Stamp Module may not be a good idea.· Although, that really depends on the supply.· In this case it seems that only one unit will operate at a time so it may not be an issue.· OTOH, keeping the coils on the other Stepper Motor energized still draws current, and without that they don't hold position, so I don't know if that was taken into consideration.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
DC-16 as simple stepper driver
Heed cautions by Jon W. with regards to power requirements.
Note the bit shifting of the coil patterns to get to the second stepper attached (the rotate 4s).
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com