Tx Rx Code questions and concerns (class Final Project)
Huey
Posts: 23
Some of the questions that i have are:
· How much data can be transmitted?
· Different baud rates..???
· Sync'ing up?
·
· The reason for all these questions is the project is a Remote control(one basic stamp2) is gonna control a "car"(the other basic stamp2)·by sending data to control one unipolar stepper(the drive wheels) and one servo motor(directional wheels).
· I know i gotta send direction, step speed, and other parameters for the stepper and just a pulse value for the servo. Other than that alot of misc questions arise. My stepper motor is from jameco pt# 237745 and the driver is also from jameco pt# 141532. The reason i choose that driver is because it has more functions like free spinning, half or full stepping, two ways of driving the stepper, and is bi-directional.
· I know i am asking alot from the forum but any help would be most appreciated.
· How much data can be transmitted?
· Different baud rates..???
· Sync'ing up?
·
· The reason for all these questions is the project is a Remote control(one basic stamp2) is gonna control a "car"(the other basic stamp2)·by sending data to control one unipolar stepper(the drive wheels) and one servo motor(directional wheels).
· I know i gotta send direction, step speed, and other parameters for the stepper and just a pulse value for the servo. Other than that alot of misc questions arise. My stepper motor is from jameco pt# 237745 and the driver is also from jameco pt# 141532. The reason i choose that driver is because it has more functions like free spinning, half or full stepping, two ways of driving the stepper, and is bi-directional.
· I know i am asking alot from the forum but any help would be most appreciated.
Comments
Is the 'remote control' going to be implemented using a hard-wired connection, an RF remote, or an IR remote? Each has different speeds.
You CAN run two servos at the same time, since the servo control signal is a 1 mSec to 2 mSec 'pulse', repeated every 20 msec. So you can pulse servo 1, then pulse servo 2, then wait 18 mSec and repeat. However, one of your motors is a 'stepper' motor -- I don't think there's any 'dead time' in a stepper motor's control signals for you to send the Servo control signal. Using the 'driver' may free up the BS2, though.
'Tx Part
what i see wrong is that if the Rx part misses the transmission both codes are waiting for something that will never come.
Rx would be waiting for "!"
Tx would be waiting for "?"
any solutions??