Hello,
I recently aquired an old robotic arm that uses a Next Step V2.0 with a basic micro atom chip on it, and a 12 channel mini SSC III to control an arm with 6 degrees of freedom.
The mini SSC III seems to be working properly as on power up the “sync” led lights up and the servos move to their “home” position.
Also when i load a really simple program in the Next Step 2.0 it can control two led’s on its board with 2 pushbuttons.
But I cant get proper communication between the 2 boards. I loaded the sample program (see below) provided with the manual for the mini SSC III, and nothing happens, looking in debug mode, the code loops, but the servos dont move.
Heres the program being used:
’ Listing 1. BASIC Stamp II Program Demonstrating the SSC-12
’ Program SCAN.BS2 (BS2 Servo control demo)
’ This program demonstrates servo control using the SSC-12.
’ It commands servo 0 slowly and smoothly through its full
’ range of travel, then moves it quickly through 90° of travel.
’ Connect:
’ BS2 SSC-12 Purpose
’ — ------ -------------
’ P8 S pin Serial signal
’ GND G pin Ground
’ Plug a servo into SSC-12 output 0 and connect power as
’ described in the manual. Run this program. The servo will
’ slowly scan back and forth, then move quickly through 90° of
’ travel.
svo con 0 ’ Use servo 0.
sync1 con 255 ’ Sync byte. had to change to sync1 because sync is 'predefined in the memory map
pos1 con 63 ’ Holds -45° position value.
pos2 con 191 ’ Holds +45° position value.
speed con 32 ’ Holds the speed value.
n96n con $4054 ’ Baudmode: 9600 baud (BS2-SX, change to $40F0).
again:
serout 8,n96n, [sync1, svo + speed, pos1]
pause 3000 ’ Wait 3 seconds.
serout 8,n96n, [sync,1 svo + speed, pos2]
pause 3000
serout 8,n96n, [sync1, svo, pos1]
pause 500
serout 8,n96n, [sync1, svo, pos2]
pause 500
goto again
Yes, the 2 wire com line is in the appropriate output point specified in the program (and i have changed it many times to see if i had a faulty output)
Am I doing anything wrong?