From 034399b3146537af11557afc4bef7df81ae4918b Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Sun, 26 Mar 2023 09:44:27 -0600 Subject: [PATCH] GPIO libs, misc notes --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3c68a82..060638c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,24 @@ No proprietary applications, SDKs, or similar are used. ![Photo of Bescor MP101 motorized pan head.](img/bescor-mp101.jpg) +# Introduction +The Bescor MP101 is a very low cost motorized pan/tilt head. +It ships with a wired remote. +The software in this repo, with a custom built cable, enables +software control of the MP101 with a Raspberry Pi or Arduino. + + +# WARNING +Doing any of the below can fry your device. + + # Development Setup +Two different boards have been tested so far. +One for Arduino-like setup. +One on a Raspberry Pi. + + +## Arduino The development setup is using a LattePanda 3. It is an Intel based board with an Arduino Leonardo built on board. @@ -16,6 +33,31 @@ This should be similar to using other Arduino devices plugged into USB ports. +GPIOs on the Arduino can be controlled thusly: + +* Natively. + +* Various libraries. + + +## Raspberry Pi +Testing on a Raspberry Pi is using a Pi 4 running +Raspbian (Debian stable/bullseye 11). + + +GPIOs on the Pi can be controlled thusly: + +* Natively. + +* pigpiod. +https://abyz.me.uk/rpi/pigpio/ + +* RPiGPIO. +https://pypi.org/project/RPi.GPIO/ + +* Various libraries. + + # Pins Not all cables have the same color pin out. In fact, most have different pinouts, so each cable should be tested. @@ -217,9 +259,10 @@ Pinout info: # Status -Early alpha. It moves in four directions, but doesn't stop or -have regular controls yet. Just mapped out the pins to -Arduino software. +Minimally works with both an Arduino and a Raspberry Pi. +Moves in four directions on both. +Speed control under the Pi. +No interface or API or anything like that yet. # Disclaimer