Download User manual ()

Transcript
Gertbot
Rev 2.3-September-2014
Contents
0
I want to use it NOW! ...................................................................................................................... 5
1
Overview: ...................................................................................................................................... 13
1.1
LEDs ..................................................................................................................................... 13
2
Connecting things up ..................................................................................................................... 14
2.1
Connecting Gertbot to a Raspberry-Pi .................................................................................... 14
2.2
Connecting motors. ................................................................................................................ 14
2.3
Connecting stepper motors. .................................................................................................... 16
2.4
Connecting motor power ........................................................................................................ 16
2.5
Connecting end-stops. ............................................................................................................ 17
2.6
Connecting Open drain output ................................................................................................ 18
2.7
Connecting to other then Raspberry-Pi ................................................................................... 19
2.7.1
Connect to J12 (cascade connector) ................................................................................ 19
2.7.2
Connect to J6 (Pi connector) ........................................................................................... 20
2.7.3
Connect to J14 (Not mounted) ........................................................................................ 20
3
Commands..................................................................................................................................... 21
3.1
Identifier ................................................................................................................................ 21
3.2
Values .................................................................................................................................... 22
3.3
Making commands ................................................................................................................. 22
3.4
Command table ...................................................................................................................... 23
4
Command details ........................................................................................................................... 23
4.1
Read version .......................................................................................................................... 23
4.2
Operation mode...................................................................................................................... 24
4.3
End-stop & short/hot set up .................................................................................................... 26
4.4
DC/Brushed Pulse Width Modulation Motor Frequency ......................................................... 28
4.5
Brushed Motor Duty Cycle..................................................................................................... 28
4.6
Start/stop Brushed Motor ....................................................................................................... 29
4.7
Read error status .................................................................................................................... 30
4.8
Stepper motor take steps......................................................................................................... 31
4.9
Stepper Motor Step Frequency ............................................................................................... 32
4.10 Stop all .................................................................................................................................. 33
4.11 Switch open drain .................................................................................................................. 33
4.12 Set DAC ................................................................................................................................ 33
4.13 Read ADC ............................................................................................................................. 33
4.14 Read I/O ................................................................................................................................ 34
4.15 Write I/O ............................................................................................................................... 34
4.16 Set I/O ................................................................................................................................... 35
4.17 Set ADC/DAC ....................................................................................................................... 36
4.18 Board configure ..................................................................................................................... 36
4.18.1 Board Synchronous command mode. .............................................................................. 36
4.18.2 'Attention' signal mode. .................................................................................................. 37
4.18.3 Stop on error. ................................................................................................................. 37
4.18.4 Board configure command overview............................................................................... 37
4.19 Read board status ................................................................................................................... 37
3
Copyright © 2014 Fen Logic Ltd.
The copyright is on the manual as well as the instruction set