Read Servo Input?
5artist5
Posts: 4
Ok here is my situation. I have a mini ssc II which is a servo controller that runs from my pc with a piece of software that sycnronizes sound with the servo movement.
(I realize i can just use the stamp to run the servos but lets ignore that for now.)
What I want to do is have the stamp run a complicated lighting routine with LEDs and have it based input from the servo controler to the stamp.
The stamp is a BS2 byt the way.
So I had the controller start sending signals to the stamp so i could look at what was being sent to it on the debug screen.
For instance I want the 130ms pulse to be read by the pulsin command
on the stamp as 130 and so that i can have the stamp execute
instructions based on that information. I have spent hours trying
to get this to work now and I cant see why it wont work.
The numbers that are coming off of the mini ssc look like they are all
over the place.
I have the control pin from the mini ssc wired direct to the stamp
input. Is that how i would want to do it?
this is what i have for code.
position VAR Byte
Check:
PULSIN 10, 1, position
DEBUG DEC position, HOME
PAUSE 300
Anyone have any fresh ideas or new approaches?
(I realize i can just use the stamp to run the servos but lets ignore that for now.)
What I want to do is have the stamp run a complicated lighting routine with LEDs and have it based input from the servo controler to the stamp.
The stamp is a BS2 byt the way.
So I had the controller start sending signals to the stamp so i could look at what was being sent to it on the debug screen.
For instance I want the 130ms pulse to be read by the pulsin command
on the stamp as 130 and so that i can have the stamp execute
instructions based on that information. I have spent hours trying
to get this to work now and I cant see why it wont work.
The numbers that are coming off of the mini ssc look like they are all
over the place.
I have the control pin from the mini ssc wired direct to the stamp
input. Is that how i would want to do it?
this is what i have for code.
position VAR Byte
Check:
PULSIN 10, 1, position
DEBUG DEC position, HOME
PAUSE 300
Anyone have any fresh ideas or new approaches?
Comments
In addition to connecting the control pin, you also need to share the ground connection between the "mini ssc II" and your BS2.
You might also want to current limit the signal going into the BS2 just for protection with a 1K resistor or so.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Do you mean share the ground of the power supplies? after the voltage regulators?
I tried a 100 ohm resistor and it actually changed the numbers that I was getting on the debug screen, does that make sense?
Yes
"...after the voltage regulators?"
The voltage regulators should have a common ground and should not affect the Ground connection.
"I tried a 100 ohm resistor and it actually changed the numbers that I was getting on the debug screen, does that make sense?"
No, the resistor should not have any noticeable difference in your readings. It only serves to protect the IO pin on the BS2. I would go with a higher value though.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Thanks!
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.