Vous êtes sur la page 1sur 4

Handy Cricket Interface

Servo Motor Connection Quick Review


Cricket 8 -Servo Controller

Handy Cricket Interface

Standard R/C Servo


+5 Vdc

Bus Ports positions B


A
C
Purple
White
Red R/C Servo
Black Connection

Power
Jumper
(JP1)
Bus Channel 7
Port
- Black
- Yellow / White
- Red

Power
LED
(Red)
7
6
5
4
Logic 3
LED 2
(Green) 1
0
Servo
Channels

Copyright © 2002, Robert Van Deest


Cricket 8 -Servo Controller
Version 1.0
Handy Cricket Interface
Servo Motor Power Connection
Cricket 8 -Servo Controller

Cricket 8- Servo Controller


Board on Battery Case
Connect to Handy ( 2-1/2" x 2-1/4" )
Cricket Interface 4 - AA
Bus Port Batteries

Power Front Side Back Side


LED (Red)

Optional Power Connection Optional Power Connection

- Gnd

+5 Vdc

Cricket 8 -Servo Controller


+5 Vdc Power Jumper
- Gnd (JP1)

Copyright © 2002, Robert Van Deest Version 1.0


Handy Cricket Interface
Servo Motor Optional Power Connection
Cricket 8 -Servo Controller

Battery Cells
6 - 12 Vdc
+3500 mA
Battery Clip
Connectors

Black (-)

Red (+)

Heatsink
Voltage 1
Regulator 7805

7805
3
Voltage
Regulator
2

10 uF
Capacitor
78

Optional Power Connection


05

- Gnd
1
3
2

1 = Input (12 Vdc)


3 = Gnd +5 Vdc
2 = Output (+5 Vdc @ 1 Amp) Cricket 8 -Servo Controller

OR Optional Power Connection


- Gnd +5 Vdc

+5 Vdc Power Jumper


- Gnd (JP1)

Copyright © 2002, Robert Van Deest Version 1.0


Handy Cricket Interface
Cricket 8 - Servo Controller

global [x]
;********* Servo Controller Macros **********
; also turns on servo
; neutral is lost when servo is turned off
to servoon :id :neutral
bsend $115
bsend :id * 2
bsend (:neutral % 64) + 128
end

to servooff :id
bsend $115
bsend :id * 2
bsend 0
end

; this command should be used once at the


; beginning of a program to set up the servo
; this function will turn on servo, and the
; servo will return to normal mode if it is
; turned off
to servorev :id :neutral
bsend $115
bsend :id * 2
bsend (:neutral % 64) + 192
end

; to gain resolution, change last argument to


; one that uses the full 0 to 255 range
to turn-servo :id :angle
bsend $115
bsend :id * 2 + 1
bsend :angle * 255 / 90
end

to servopos :id :angle


bsend $115
bsend :id * 2 + 1
bsend :angle
end

Robert Van Deest Version 1.0

Vous aimerez peut-être aussi