Manual
www.nexusrobot.com Robot Kits manual
I
¾ Arduino ...................................................................................................................1
¾ Introduction......................................................................................................1
¾ Hardware ...............................................................................................................1
¾ Specification ....................................................................................................1
¾ Arduino Board Pinout......................................................................................2
¾ Arduino 328 Features.......................................................................................2
¾ Memory function ......................................................................................3
¾ Input and Output PinMode........................................................................3
¾ Communication.........................................................................................3
¾ Configuration...................................................................................................3
¾ Servo Power Select Jumper ......................................................................3
¾ Motor Control Pin Jumper ........................................................................4
¾ Wireless Select Jumper.............................................................................4
¾ Arduino IO Expansion Board ..........................................................................4
¾ Features.....................................................................................................4
¾ Software.................................................................................................................5
¾ Before you start................................................................................................5
¾ Applying Power ........................................................................................5
¾ Getting Started ..........................................................................................5
¾ Language Reference.........................................................................................9
¾ Programming structure.....................................................................................9
¾ Re-write Arduino bootloader.............................................................................10
¾ FT232RL BitBang Mode AVR-Writer..........................................................10
¾ Modify the Diecimila..............................................................................10
¾ Downloading...........................................................................................11
¾ Installing .................................................................................................11
¾ Setting .....................................................................................................12
¾ Testing and confirming...........................................................................13
¾ Adjust PWM frequencies...................................................................................13
¾ Simple Examples in Arduino 328.....................................................................15
¾ LED control ...................................................................................................15
¾ Button module................................................................................................16
¾ Interrrupt control............................................................................................17
¾ Digital Read Serial.........................................................................................18
¾ Analog Read Serial ........................................................................................19
¾ Servo Motor Theory.......................................................................................19
¾ Motor Control ................................................................................................21
¾ Serial Port.......................................................................................................22
¾ External device modules...................................................................................23
¾ Dual Ultrasonic Sensor (DUS).......................................................................23
¾ Introduction.............................................................................................23
¾ Specification ...........................................................................................24
¾ Dimension and Pin definition .................................................................24
¾ RS485 Bus ..............................................................................................25