Download Print this page
Joy-it MOTOPI Manual

Joy-it MOTOPI Manual

Motor control for the raspberry pi

Advertisement

Quick Links

MOTOPI
Motor control for the Raspberry Pi
1. GENERAL INFORMATION
Dear customer,
Thank you for purchasing our product. In the following, we will show you
which things should be noted during the use.
Should you encounter any unexpected problems, do not hesitate to contact
us
www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn

Advertisement

loading
Need help?

Need help?

Do you have a question about the MOTOPI and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Joy-it MOTOPI

  • Page 1 MOTOPI Motor control for the Raspberry Pi 1. GENERAL INFORMATION Dear customer, Thank you for purchasing our product. In the following, we will show you which things should be noted during the use. Should you encounter any unexpected problems, do not hesitate to contact www.joy-it.net...
  • Page 2 2. GENERAL The MotoPi board is an expansion board for the control and use of up to 16 PWM controlled servomotors. The board can be supplied additionally by 4.8 - 6 V so that the ideal supply of the motors is always ensured and even greater projects can be supplied by enough power.
  • Page 3 The motors you connect and the movement they generate can be dange- rous. Therefore, we recommend sufficient safety distance or rather to take measurements so that no one can get in touch with the moving parts. www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
  • Page 4: Installation Of The Module

    To use the board properly, you should activate the two functions on your Raspberry Pi: I2C and SPI Therefore, open the configuration menu of the Raspberry Pi with the following command: sudo raspi-config Interfacing Options In the just opened window, navigate to the menu point www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
  • Page 5 Enable the function SPI. Confirm the next windows all with Yes or rather Ok. Afterwards, you must enable the function I2C. www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
  • Page 6 Leave the configuration menu with and restart your Raspberry Pi. sudo reboot Since the MotoPi is equipped with an additional crystal oscillator, a special program library is required. This is based on the Adafruit_PCA9685 Python library but it is specially adjusted for our board.
  • Page 7 #Initialisiere Button auf Digital-PIN 22 button = GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(button, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: GPIO.input(button) == GPIO.HIGH: #Mache etwas print "Ich tue etwas" else: #Mache etwas anderes print "Ich tue etwas anderes" www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
  • Page 8 = spidev.SpiDev() spi.open(0,0) spi.max_speed_hz = 2000000 readadc(adcnum): 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: len(sys.argv) >1: i in range(len(sys.argv)): i == 0: print "_______________________________________\n" www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
  • Page 9 => %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) www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
  • Page 10: Other Information

    We will send you a parcel stamp with which you can send us your old appliance free of charge. For this possibility, please contact us via e-mail at service@joy-it.net or via telephone. Information about Package: Please package your old appliance safe for transport. Should you not...

This manual is also suitable for:

Rb-moto3