MotoPi. Ausgabe Copyright by Joy-IT 1

Similar documents
Raspberry Pi Starter kit # K0063

2.13inch e-paper HAT (D) User Manual

CT-DMX-300 LED Controller

Owner s Manual. multiswitch Firmware-Version 1.06 OS- Version 1.02

21 Channel Light Show PWM LED Controller with Remote Control

SEP Bright Pi v1.0 Assembly Instructions

Mercedes-Benz Installation Guide Specification

Aurora Grid-Tie Installation Instructions (Model Number: PVI-3.0-OUTD-US-W) Revision 4.1

Gordian. Multifunctional Power Distributor / Conditioner. v1.3

SRV02-Series. Ball & Beam. User Manual

Integre4. Audiophile integrated amplifier. v1.2

EEG A1452 SCTE-104 Inserter Frame Card

R5 RIC Quickstart R5 RIC. R5 RIC Quickstart. Saab TransponderTech AB. Appendices. Project designation. Document title. Page 1 (25)

Alice EduPad Board. User s Guide Version /11/2017

Topic: Instructional David G. Thomas December 23, 2015

Transmitter Interface Program

SquareLED - Aura Bar & Matrix Beam Light 100

Operation Guide Version 1.0, December 2015

An Approach to Raspberry Pi Synchronization in a Multimedia Projection System for Applications in Presentation of Historical and Cultural Heritage

Installation and User Guide 458/CTR8 8-Channel Ballast Controller Module

DX-10 tm Digital Interface User s Guide

Model Colorado Ultra Wide Bandwidth HDTV Matrix Switch

CHAPTER 3 EXPERIMENTAL SETUP

SRV02-Series. Rotary Pendulum. User Manual

RGB CONVERTER SPECIFICATION. Car Solutions -. MODEL: RGB-LE-V3 -. PRODUCT CODE : RB www. car-solutions.com

Video Interface connection:

Operation Guide Version 2.0, December 2016

HD4112 Quad HDMI MPEG2 HD DVBT Encoder Modulator U S E R M A N U A L

BMW CIC Video Interface

PLASMA MONITOR (PT20 UVVis) USER GUIDE

RF Solution for LED Display Screen

SATELLITE TV OPERATION / TECHNICAL MANUAL. Eagle II Controller

IRIG-B PTP Clock Converter Output Module Hardware Installation Manual

Vorne Industries. 87/719 Analog Input Module User's Manual Industrial Drive Itasca, IL (630) Telefax (630)

The Haply Development Kit

Data Acquisition Using LabVIEW

SATELLITE TV OPERATION / TECHNICAL MANUAL. Eagle II Controller

Pixel LED SPI Digital Controller

More Skills 14 Watch TV in Windows Media Center

Callisto DISEqC Antenna Tracker

MASERATI. Specification & Installation. Your best partner for better driving

AUDI WITH MMI A4/A5/A6/A8/Q7. -. Product Code : A4L

Channel Controller for Light Show with Remote Control. HomLiCon RCL164R

car-solutions.com GVIF Interface v7 for Nissan & Infiniti Specification Release date : Model : QVL-GF08-V7 / Product code : GF

Foreword: The purpose of this document is to describe how to install and configure Neets 4 relay box

KingWash 7QX 7x40w,Zoom 5-60degree. User manual. Please read the instructions carefully before use TABLE OF CONTENTS

TABLE OF CONTENTS 1. OVERVIEW INSTALLATION VIDEO CONNECTIONS GENERAL PURPOSE INPUTS & OUTPUTS SPECIFICATIONS...

Telemetry Receiver Installation Guide

MICROMASTER Encoder Module

Manual Version Ver 1.0

LT-300 LED Controller

Specifications. Dual Satellite Tracking Meter. With a built in 22Khz tone generator. Overview

CNC Router Parts Plasma Software Setup and Usage Guide

4x1 HDTV Switcher. Operation Manual CHDD-41AR

KATHREIN-Werke KG ist jetzt KATHREIN SE KATHREIN-Werke KG is now KATHREIN SE

when it comes to quality! BMR GmbH 1

Model 6010 Four Channel 20-Bit Audio ADC Data Pack

Xtreme Power Systems RFU. Installation And Usage Manual. Firmware v1.1. Manual v1.1. Revision Date: June 5 th, 2014

CarNavi-Tech MASERATI. Specification & Installation

Marshall Electronics. Pro A/V Communications VMV-402-SH. 3G/HD/SD-SDI Quad-viewer/Switcher with Audio Meter Display. User Manual.

SX7. Saga 7" Super Bright HDMI/3G-SDI Field Monitor with 3D-LUTs. Quick Start Guide. What s Included CHECKED BY

INSTALLATION AND OPERATION INSTRUCTIONS EVOLUTION VIDEO DISTRIBUTION SYSTEM

(Skip to step 11 if you are already familiar with connecting to the Tribot)

ECE-320 Lab 5: Modeling and Controlling a Pendulum

VIDEO GRABBER. DisplayPort. User Manual

DataSAT ACU-2 Controller Wiring Configuration - Operation

HD Digital Set-Top Box Quick Start Guide

Evolution Digital HD Set-Top Box Important Safety Instructions

Troubleshooting CS800/LC900 Bikes

Twin Beam Scale Operation Manual. April Specialists in Industrial Weighing

Modular Expansion Cards

Using Sliders with the 4201-B Lighting Controller Application Note June 26, 2008

USER MANUAL. Travel Vision R6

Re:source. Communication Module. SAT Version. Dominating Entertainment. Revox of Switzerland. E2.00

USER S GUIDE. 1 Description PROGRAMMABLE 3-RELAY LOGIC MODULE

Noise Detector ND-1 Operating Manual

Application of Internet of Things for Equipment Maintenance in Manufacturing System

ENGR 1000, Introduction to Engineering Design

Video Server SED-2100R/S. Quick Installation Guide

Scan Converter Installation Guide

GROUNDBREAKING INNOVATIONS FOR DYNAMIC LIGHTING

Provides an activation of Relay 1 triggered by Input 1. The function also provides an option for reverse-logic on the activation of Input 1.

C Module Description

Caution. Hanging the Screen:

GWL/ Power Group Technology Solutions Stay Powered for the Future

Fiber Optic Extender User Manual. Model: CV-F01-TX

192 Channel DMX Controller

Tailgate module BEXPRO PRINS VSI

Stevens SatComm FAQs For use with SatCommSet or Terminal Setup programs

OSD. EXECUTIVE / MiniDome USERS MANUAL. USING THE MOTOSAT DISH POINTING SYSTEM EXECUTIVE / MiniDome OSD

Please follow the safety instructions in your notebook s directions for use.


Troubleshooting. 1. Symptom: Status indicator (Red LED) on SSR is constant on. 2. Symptom: Output indicator (Yellow LED) on SSR is flashing.

Quick Start Guide Operators

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT /12/14 BIT 10 TO 105 MSPS ADC

(Without MMI version)

Alice EduPad for Tiva or MSP432 TI ARM Launchpad. User s Guide Version /23/2017

Intelligent Security and Fire Ltd

Car-Solutions.com Update Date QVI-LVTX-1CH-V7.1 Firmware Date

Manual. Simrad IS80 Heading Repeater HR80. English

Transcription:

3 3 MotoPi Ausgabe 03.03.2017 Copyright by Joy-IT 1

3 MotoPi Index 1. Introduction 2. Technical specification & security information 3. Setting up the Raspberry Pi 4. Installation 5. Control of the additional connections 6. Code-Exampe for using the digital connections 7. Code-Example for using the analog connections Ausgabe 03.03.2017 Copyright by Joy-IT 2

Dear customer, thank you for purchasing our product. Please find our instructions below. 1. Introduction The MotoPi board is an extension-board for connecting and using up to 16 PWM-controlled-5V-Servomotors. The board can be powered by a voltage between 4,8V and 6V so the optimal power supply is always assured. Also larger projects are no problem with this extension board. This board is, for example, perfect for controlling the JOY-iT robot arm. ART-Nr.: Robot02 High-quality robot arm, made of aluminium With rotary plate and mounting point for motorcontrols / singfle-board computer. Powered by 6 20 Kg digital servo-motors. Image 1: Robot02 Ausgabe 03.03.2017 Copyright by Joy-IT 3

2. Technical specification & security information The MotoPi-Extensionboard is equipped with 16 channels for 5V-servomotors and with an optinal connection for an additional capacitor. The board has also 4 analog, 2 digital and one I2C connection possibility. The power supply can be established by a 5V coaxial power connector or by a power supply between 4,8V and 6V. The MotoPi-Board is also equipped with an additional crystal oscillator which makes the frequencys as precise as possible and the discrepancy as low as possible. Image 2: Board-Description Ausgabe 03.03.2017 Copyright by Joy-IT 4

The channel-numbers are written on the backside of the board. The 3 PINs of each channel are, from bottom to top, ground line, voltage line and signal line [GND V+ PWM]. Simply put the board onto the GPIO-PINs of your Raspberry Pi and the cables of your 5V-Servo-Motors on the Channel-PINs. An additional power supply, by cable or a 5V coaxial power connector, is required. To prevent sudden voltage drops, a capacitor is mounted on the board. If this capacitor is insufficient in special cases, you are able to connect another capacitor in parallel with the intended connection. Image 3: Board bac kside The used power supply has to be adequate for the performance of the motors. A weak power supply is often recognizable by stuttering motors. The motors should always perform a smooth motion. We recommend to use our 4.8A power supply RB-Netzteil2 which provides 24W continous output. After connecting the board to your Raspberry Pi, an additional power supply and the servo-motors, the board is ready to use. Security information: To protect against polarity reversal, please note the markings on the inputs of the board (+ and - symbol). Polarity reversal can damage the board, the connected Raspberry Pi and other periphery. The connected motors, and the generated movement, can pose a risk. We recommend to remain at a safe distance and take actions so that noone can encounter with moving parts. This applies in particular for children. Ausgabe 03.03.2017 Copyright by Joy-IT 5

3. Installation des Raspberry Pis If you are already using the current version if the Raspbian system, you can skip this step and continue with the next one. You can download the current Raspbian Image from the Rasperry Pi Website. With the Win32 Disk Imager -utility you can copy the downloaded image to your SD-Card. Select, as seen in the image below, the image and the device. Then you can start the writing process with Write. Image 4: Win32 Disk Imager If this step is completed, you can put the SD-Card into you Raspberry Pi and continue. Ausgabe 03.03.2017 Copyright by Joy-IT 6

4. Installation As seen in Image 2, the board also offers 4 analog, 2 digital and one I2C channels. To be able to use these channels, you need to activate the SPI-Configration at first. Therefore you need to open up the Raspberry Pis configuration menu. sudo raspi-config In the opened window, navigate to the menu Interfacing Options. Image 5: Raspi-Config Activate the SPI option. Image 6: Advanced Options Ausgabe 03.03.2017 Copyright by Joy-IT 7

Confirm the next windows with Yes or Ok. Image 7 & 8: Confirmation SPI Image 9 & 10: Confirmation load-by-default Leave the configuration-menu with Finish and restart your Raspberry Pi. Image 11: leave Raspi-Config sudo reboot Ausgabe 03.03.2017 Copyright by Joy-IT 8

Because our MotoPi-board is equipped with an additional crystal oscillator, a special library is needed.da This library is based on the Adafruit_PCA9685 Python-library but is adjusted specially for our board. We recommend to exclusively use our own, adjusted library. You can download our library here. Copy the extracted library onto your Raspberry Pi and navigate in the terminal to this folder. You can install the library with the following command: sudo python setup.py install Next, navigate, as instructed below, to the examples folder and start the example-code. cd examples This example demonstrates the basic usage of the motor-control and will move a motor, which is sudo python simpletest.py connected to the first channel. Ausgabe 03.03.2017 Copyright by Joy-IT 9

5. Control of the additional connections Execute the following terminal-commands: sudo apt-get update sudo pip install spidev Sudo pip install wiringpi Another restart is now required. sudo reboot All connections are ready to use. Please note that, at the digital connection, the first PIN is refered to GPIO Port 27 and the second PIN is refered to GPIO Port 22. Ausgabe 03.03.2017 Copyright by Joy-IT 10

6. Code-Example for using the digital connections You can find a short example for controlling the digital conenctions below. We used a LK-Button1 and a LK-Cable-20 for demonstration from our LinkerKit-Series. Image 12 & 13: LK-Button1 & LK-Cable-20 import RPi.GPIO as GPIO from time import sleep #Initialisiere Button auf Digital-PIN 22 button = 22 GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(button, GPIO.IN, pull_up_down=gpio.pud_up) while True: if GPIO.input(button) == GPIO.HIGH: #Do something print "I do something" else: #Do something else print "I do something else" Ausgabe 03.03.2017 Copyright by Joy-IT 11

7. Code-Example for using the analog connections import spidev import time import sys spi = spidev.spidev() spi.open(0,0) def readadc(adcnum): if adcnum >7 or adcnum <0: return-1 r = spi.xfer2([1,8+adcnum <<4,0]) adcout = ((r[1] &3) <<8)+r[2] return adcout while True: if len(sys.argv) >1: for i in range(len(sys.argv)): if i == 0: print " \n" else: adc_channel = int(sys.argv[i]) print "Channel " + str(adc_channel) value=readadc(adc_channel) volts=(value*3.3)/1024 print("%4d/1023 => %5.3f V" % (value, volts)) print " " print " \n" time.sleep(1.5) else: print " \n" print "Channel 0" value=readadc(0) volts=(value*3.3)/1024 print("%4d/1023 => %5.3f V" % (value, volts)) print "Channel 1" value=readadc(1) volts=(value*3.3)/1024 print("%4d/1023 => %5.3f V" % (value, volts)) print "Channel 2" value=readadc(2) volts=(value*3.3)/1024 print("%4d/1023 => %5.3f V" % (value, volts)) print "Channel 3" value=readadc(3) volts=(value*3.3)/1024 print("%4d/1023 => %5.3f V" % (value, volts)) print " \n" time.sleep(1.5) Ausgabe 03.03.2017 Copyright by Joy-IT 12