I was wondering if any of you could help me on my way.
I am pretty new to this, though I was managing to accomplish my goal. Until now…
I am using the BotBoard 2 to control a selfmade robot. Al the servo’s are running fine and responding very well to the BB2.
The last thing I want to do is to use 2 PicoSwitches to control some extra hardware on the robot. The picoswitches are pre-wired with a 3-wire connector and as it is mentioned on the website of lynxmotion that it is compatible directly with the SSC-32 I assumed it would also be compatible with the pinout of the BB2.
First thing, is it possible to connect a PicoSwitch directly to the BB2 and switch it on /off?
If so, what command (code?) and connections do I have to make. As I connect the 3-wire connector to the botboard the indicator LED on the switch starts to pulse which indicates ‘no radio control’.
Can anyone help me to set up these PicoSwitches on my BB2?
Hi, It has been awhile since I played with one of these, but they handle normal servo type signals. Fish(James of Lynxmotion), I believe used on on his original MechBrat. You can download the code from Lynxmotions main sited (look under Brat in the Assembly guides).
Yes you can use it with a BB2. If you are using a Basic Atom Pro28 and you are using HSERVO commands to control your other servos, you can use it to control the picoswitch.
Example if switch is on P0, in your init code you might try adding:
HSERVO [p0\0\0]
To turn the switch on you might try:
HSERVO [p0\7000\0]
To turn it back off:
HSERVO [p0\-7000\0]
If you are not using HSERVO, but instead generating your own servo pulses, the 0, 7000, -7000 roughly translate to: 1500us, 2000us, 1000us.
I was trying to use the pulsout command with the 1000,1500,2000 value which I could not get to work. Replaced everything with HSERVO command and the relays are clicking like music to my ears.
Again, thx!
PS: Its one huge tank/bot (1m,80cm,70cm ), I’ll post some pics later on.