odroid_go:arduino:34_servo_motor

Arduino for ODROID-GO - Servo Motor

You can control a Servo motor on ODROID-GO with Arduino.

Make sure that you have these products:

  • ODROID-GO
  • A Servo motor
  • M-M jumper cables (3 EA)
  • A MicroUSB cable

Set up the development environment for Arduino on your system.

Please refer to the picture below when you set up your hardware.
We use the parts below:

  • Servo motor

Connect each other directly using the jumper cables.
The pins from the 10 pin header(P2),

  • P2-1: GND
  • P2-4: GP15 (I/O)
  • P2-5: GP4 (I/O)
  • P2-6: 3.3V

Select one between P2-4 and 5 port for transferring a data.

Click the Files → Examples → ODROID-GO → Applications → Servo_Motor menu to import and press CTRL-U to compile/upload.

Uploading is complete when the message “Hard resetting via RTS pin…” is seen.

After the upload completes, ODROID-GO reboots automatically.

You can adjust a frequency and a duty value(pulse, microsecond) with the buttons.

  • B: Runs only while pressing this button.
  • A: Turns on/off.
  • D-Pad Up/Down: Change frequency to the one of 50, 100, 200, 500 Hz. 50 Hz is standard.
  • D-Pad Left/Right: Increase/Decrease duty value by 50 microsecond (0.05 millisecond)
    • It ranges from 1000 uSec to 2000 uSec.
    • 1500 uSec (1.5 mSec) is neutral.
  • odroid_go/arduino/34_servo_motor.txt
  • Last modified: 2018/09/04 14:08
  • by joshua