background image

© 1997-2013 Designer Systems 

 

 

Page 5 of 8 

INTERFACE 13.04.13  Revision 1.00 

Calculating binary bit values: 

 
The registers used above use the binary notation to allow the control of servo operation, reversal, soft-start & speed selection. Each regis-
ter is made up of eight (8) bits, which can be set or cleared to produce the desired operation, the individual bits having a value associated 
with them as follows: 
 

128

64

32

16

8

4

2

1

 

 
If we take for example one of the servo control registers we can see it is made up of four (4) separate bits A, B, C & D plus a four bit 
value SSSS: 
 

Servo 1 control 

R1 

 

A = Operate (0 – Servo disabled 1 – Servo enabled) 
B = Reverse (0 – Servo normal 1 – Servo reversed) 
C = Soft-start control (0 – Disabled 1 – Enabled) 
D = Speed control (0 – Disabled 1 – Enabled) 
S..S = Servo speed value 0 to 15 (0 = slowest) 

 
Each bit is defined to control a particular function for the servo it controls, so if for example we wanted to enable servo 1 we would need 
to set bit ‘A’ which controls the servo operation. We know from the bit values defined above that the value associated with the ‘A’ bit is 
128, so by writing this value to register 1 we can enable servo 1. If we need to enable additional functions such as the speed control - ‘D’ 
- as well as the servo enable, the value of this bit is added to the value written to the register i.e. 128 + 16 = 144. In addition we could 
also add a speed value of 5 that would make the total value 128 + 16 + 5 = 149. 
 

 
Figure 1.0 (I

2

C write protocol) 

ST

AR

T

AC

K

AC

K

SCX18 ADDRESS

REGISTER

ADDRESS

0

1 1 1

A1 A0

1

R

 /

 W

=

0

AC

K

DATA
BYTE 

ST

O

P

 

Multiple bytes may be written before the ‘STOP’ condition. Data is written into registers starting at ‘REGISTER ADDRESS’, then ‘REGISTER AD-
DRESS’ +1, then ‘REGISTER ADDRESS’ +2 etc.  
Each byte transfer is acknowledged ‘ACK’ by the SCX18 until the ‘STOP’ condition. 

 

Figure 1.1 (I

2

C read protocol) 

S

T

A

R

T

A

C

K

A

C

K

SCX18 ADDRESS

REGISTER

ADDRESS

A

C

K

DATA

BYTE 1

S

T

O

P

S

T

A

R

T

A

C

K

GPM ADDRESS

N

A

C

K

DATA

BYTE 2

0

1 1 1

A1 A0

1

R

 /

 W

=

0

0

1

1 1

A1 A0

1

R

 /

 W

=

1

 

‘DATA BYTE 1 & 2’ are register values returned from the SCX18. Each byte written is acknowledged ‘ACK’ by the SCX18 , every byte read is 
acknowledged ‘ACK’ by the I

2

C Master. A Not-acknowledge ‘NACK’ condition is generated by the I

2

C Master when it has finished reading. 

 

Summary of Contents for DS-SCX18.S

Page 1: ...fea tures high speed I2 C communica tion for easy project integration and smooth speed control Once connected each servo can be positioned with speed control enabled reversed and soft started by simply writing a value to an internal register over the connect ed I2 C interface The SCX18 S caters for the major ity of servos by providing a wide pulse width range of 0 50mS to 2 50mS with 8uS per step ...

Page 2: ...plete device address i e if both jumpers are left connected default then the device address would be 1110100Dbinary The D bit determines if a read or a write to the SCX18 is to be per formed If the D bit is set 1 then a register read is performed or if clear 0 a register write To access individual registers a de vice write must be undertaken by the I2 C Master which consists of a Start condition d...

Page 3: ...lue 0 to 15 0 slowest Servo 18 position R35 P P P P P P P P P P Servo position 0 to 255 0 5mS to 2 50mS Servo 18 control R36 A B C D S S S S A Operate 0 Servo disabled 1 Servo enabled B Reverse 0 Servo normal 1 Servo reversed C Soft start control 0 Disabled 1 Enabled D Speed control 0 Disabled 1 Enabled S S Servo speed value 0 to 15 0 slowest Servo global enable register R37 X X X X X X X X X X An...

Page 4: ...abled B Reverse 0 Servo normal 1 Servo reversed C Soft start 0 Complete 1 In progress D Movement 0 Complete 1 In progress Firmware version R18 M M M M V V V V M M Firmware major revision number 1 15 V V Firmware minor revision number 1 15 Bit A 128decimal is the operate bit which when set indicates that the servo is operational Bit B 64decimal is the reverse bit which when set indicates that posi ...

Page 5: ...it values defined above that the value associated with the A bit is 128 so by writing this value to register 1 we can enable servo 1 If we need to enable additional functions such as the speed control D as well as the servo enable the value of this bit is added to the value written to the register i e 128 16 144 In addition we could also add a speed value of 5 that would make the total value 128 1...

Page 6: ... SDA SCL www arduino cc RESET 3V3 5V Gnd Vin 0 1 2 3 4 5 ANALOG IN POWER P1 Raspberry Pi with speed control 18 Channel Servo Driver DS SCX18 Shield Designer Systems SV V GND 6A Max OFF ON D V 0 7 0 _ V 1 0 0 0 1 3 8 5VDC U3 U2 R3 R7 R6 CN1 D1 C2 C1 L1 C5 U1 U4 R4 R5 C7 C6 R1 R2 C4 C3 OFF ON 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 V 3 A M a x 5 V 3 A M a x BLACK RED YELLOW GREEN ...

Page 7: ...l 18 Channel Servo Driver DS SCX18 Shield Designer Systems SV V GND 6A Max OFF ON D V 0 7 0 _ V 1 0 0 0 1 3 8 5VDC U3 U2 R3 R7 R6 CN1 D1 C2 C1 L1 C5 U1 U4 R4 R5 C7 C6 R1 R2 C4 C3 OFF ON 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 V 3 A M a x 5 V 3 A M a x Revision History 1 00 Release version Mechanical Specifications Units millimetres ...

Page 8: ...Conformity Copyright 2013 by Designer Systems Ltd Apparatus name model number DS SCX18 S Manufacturer Designer Systems 11 Castle Street Truro Cornwall Conformity via Generic Standard EN61000 1 TR1 3AF United Kingdom Generic Standard EN61000 3 Description of apparatus Robotic interface peripheral Conformity criteria For use only within commercial residential and light industrial applications We cer...

Reviews: