How to Guide. Hardware Set Up For setting up the hardware, we ll be constructing the following schematic. Steps:

Similar documents
Arduino Lesson 13. DC Motors. Created by Simon Monk

Arduino Lesson 14. Servo Motors

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Eric Mitchell April 2, 2012 Application Note: Control of a 180 Servo Motor with Arduino UNO Development Board

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

Arduino Lesson 0. Getting Started

Arduino Lesson 16. Stepper Motors

Capacitive Touch Sensor Project:

Switch board datasheet EB

Arduino Lesson 9. Sensing Light

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

Arduino Lesson 1. Blink

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

cs281: Introduction to Computer Systems Lab08 Interrupt Handling and Stepper Motor Controller

MCP4725 Digital to Analog Converter Hookup Guide

Introduction to Arduino

Robot Board Sub-System Testing. Abstract. Introduction and Theory. Equipment. Procedures. EE 101 Spring 2006 Date: Lab Section # Lab #6

ABB Drives. User s Manual HTL Encoder Interface FEN-31

INTRODUCTION TO SERIAL ARM

How to connect to a Class II router using a mobile-phone data cable specifically for Solwise & Safecom routers

Arduino Lab 1 - The Voltage Divider

The basic set up for your K2 to run PSK31 By Glenn Maclean WA7SPY

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

Electronics 5: Arduino, PWM, Mosfetts and Motors

Model 201 Wiegand Touchpad Reader Installation Guide

Wireless Security Camera

Lab 3 - DC Circuits and Ohm s Law

Hardware Connections between Arduino and IMU Nori Wilkins Apr. 5, 2013

TEECES DOME LIGHTING SYSTEMS

RN-52 Bluetooth Hookup Guide

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

SSH to BeagleBone Black over USB

8 Channel Status Input Panel model SIP-8

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

CAN-Bus Shield Hookup Guide

Six-servo Robot Arm. DAGU Hi-Tech Electronic Co., LTD Six-servo Robot Arm

By: John W. Raffensperger, Jr. Revision: 0.1 Date: March 14, 2008

How To Use An Ams 5812 Pressure Sensor With A Usb Starter Kit

Work with Arduino Hardware

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

Building a Basic Communication Network using XBee DigiMesh. Keywords: XBee, Networking, Zigbee, Digimesh, Mesh, Python, Smart Home

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

Allen-Bradley/Rockwell

Three Arduino Challenges to Connect the Logical World with the Physical One. ISTE Philadelphia

Adafruit SHT31-D Temperature & Humidity Sensor Breakout

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

Quick Start Guide. Installing. Setting up the equipment

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

Flight Controller. Mini Fun Fly

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

MIDECO 64-outputs MIDI note decoder USER MANUAL. Roman Sowa 2012

Building A Computer: A Beginners Guide

Board also Supports MicroBridge

How To Program A Microcontroller Board (Eb064) With A Psp Microcontroller (B064-74) With An Ios 2.5V (Power) And A Ppt (Power Control) (Power Supply) (

2.2" TFT Display. Created by Ladyada. Last updated on :15:09 PM EDT

DEPARTMENT OF ELECTRONICS ENGINEERING

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

LocoNet, the Digitrax Difference

Arduino Lesson 4. Eight LEDs and a Shift Register

Connecting instruments serially to your computer

Intro to Intel Galileo - IoT Apps GERARDO CARMONA

Analog control unit for mobile robots

Test Driven Development of Embedded Systems Using Existing Software Test Infrastructure

BrightSign Expander Hardware Guide

Tiny Arduino Music Visualizer

Servo Info and Centering

Green House Monitoring and Controlling Using Android Mobile Application

EXPRESS PCB TUTORIAL Author: Lee Morey Revised: JE Feb 2015

Copyright 2012 by Fen Logic Ltd. All rights reserved.

RC2200DK Demonstration Kit User Manual

Surveillance System Using Wireless Sensor Networks

LMU Hardware and Installation Guide

MANUAL FOR RX700 LR and NR

Sabrent USB DSC5 USB 2.0 to SATA/IDE Hard Drive Adapter. 2.5 Notebook IDE Hard Drive

Pmod peripheral modules are powered by the host via the interface s power and ground pins.

The self-starting solar-powered Stirling engine

PolyBot Board. User's Guide V1.11 9/20/08

Theory and Practice of Tangible User Interfaces. Thursday Week 2: Digital Input and Output. week. Digital Input and Output. RGB LEDs fade with PWM

DK40 Datasheet & Hardware manual Version 2

UIM2901-5A MACH3 breakout board

IR Communication a learn.sparkfun.com tutorial

SYSTEM 4C. C R H Electronics Design

#include <Gamer.h> Gamer gamer; void setup() { gamer.begin(); } void loop() {

Compressor Supreme Force Feedback User Manual

Points Position Indicator (PPI1) for Points Motors with Common Ground

ESP8266 WiFi Module Quick Start Guide

Using Arduino Microcontrollers to Sense DC Motor Speed and Position

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Accessing I2C devices with Digi Embedded Linux 5.2 example on Digi Connect ME 9210

Character LCDs. Created by Ladyada. Last updated on :45:29 PM EDT

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

Lab 3 Microcontroller programming Interfacing to Sensors and Actuators with irobot

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Ocean Controls RC Servo Motor Controller

ECR Shelf System Installation Guide Centralized Rack Mount Call Recording

STUDY OF CELLPHONE CHARGERS

Transcription:

How to Guide This is a guide of how to set up the BeagleBone Black to control servo motors using its GPIO pins. We use an Arduino microcontroller as an intermediate layer between the two. There will be 2 parts to this guide, one for setting up the hardware and one for setting up the software. Hardware Set Up For setting up the hardware, we ll be constructing the following schematic Steps: 1. First wire the 5V and GND from the Arduino board onto the bread beard board bus strips (the red and blue stripe on the side).

2. Next connect the servo motors to the breadboard (5V to the middle sockets, GND to the dark brown sockets, Digital Pins 6 and 7 to each of the two remaining sockets) 3. Connect the BeagleBone GPIO pins to the Arduino digital pins. Use a pull down resistor to remove noise. To build a pull down resistor, do the following a. Place a transistor onto the breadboard so each pins is on it own terminal b. Place a jumper wire from the Arduino digital pins to the emitter pin of the transistor c. Place a 10k ohms resistor connecting the emitter of the transistor to GND d. Use a jumper wire to connect the transistor s collector to 5V e. Finally connect the base of the transistor to the BeagleBone GPIO pin

f. Do steps a to e for each pairs of BeagleBone GPIO and Arduino pins combination. They are as follows BeagleBone GPIO pins Arduino Digital Pins GPIO_30 11 GPIO_20 10 GPIO_15 9 GPIO_14 8 4. Optionally attach a webcam or other device to the pan tilt and plug it into the BeagleBone usb port 5. Next attach the Arduino to a computer via USB port 6. The final set up would look like the following

Software Setup 1. For setting up the Arduino, first open up the Arduino IDE 2. Load the gpio sketch into the IDE and press the Upload button to upload the code to the Arduino microcontroller a. When the code is loaded, the Arduino will set both motors to an initial position of 90 degree. If it doesn t do this then it s not hooked up correctly

3. Next start up the BeagleBone Black 4. On start up the BeagleBone Black will automatically run a gpio.sh script a. If the script isn t set up to run automatically, add the script to the user.profile file b. The script can also be run manually or the user could manually run the commands in the script one by one 5. The GPIO pins are now ready to control the motors. Write a 1 to their value file to get the motors moving

a. The movement are as follows GPIO Pins GPIO_30 GPIO_20 GPIO_15 GPIO_14 Movement Rotate Left Rotate Right Tilt Up Tilt Down 6. Beside manually writing the GPIO controls, there is a gpio executable file written in C that control them. a. Run the gpio executable and give it a pin to set to it to high follow for a time for how long for it to remain high (seconds follow by nanoseconds)

Troubleshooting The following is a troubleshooting guide for problem someone might encounter Problem Write 1 to GPIO output but nothing happens Solution Check that the motors are attach probably. Make sure that when the Arduino is loaded it moves the motors to 90 degrees For the Arduino IDE, open up the Serial Monitors under Tools. Set a GPIO pin to be 1, then connect it directly to a the input pins of the Arduino processor. See if the serial monitor shows that the Arduino is reading a 1. If it doesn t read a 1, than the wire from the BeagleBone GPIO pin is in the wrong slot. Depending on the version of the BeagleBone Black and what layout diagram is used it is possible to have the wire in the wrong GPIO pin. Also try connecting the 3.3 V on the Arduino to itself to make sure it inputs is working. Feature more try checking the GPIO pins with a voltmeter or even the Arduino analog input pins Also try running a program that doesn t nothing but move the motors. The official Arduino site has an example called sweep. One possible problem is that the motor do not have enough torque to move or they are stuck. Everything is hooked up correctly but it doesn t work Make sure the BeagleBone Black is connected with the 5V adapter and not just using USB. The GPIO pins output 0 3.3 V, and if it connected only using USB it might not provide enough voltage to the transistor to reach it threshold voltage Check that all transistor are working, it is possible for them to be broken and not let voltage through even if it getting power to it base. Also make sure that they are facing the right direction.