Maestro Servo Controller (Raspberry Pi)

  Рет қаралды 12,623

PiddlerInTheRoot

PiddlerInTheRoot

Күн бұрын

Пікірлер: 17
@Steven-jf4cs
@Steven-jf4cs 9 ай бұрын
5 years later....an old guy in the back yells....thank you...just what I was looking for :-)
@Analyse_US
@Analyse_US 6 жыл бұрын
OK simple fix to the issues described below. The default serial port is "dev/ttyACM0y". But the correct serial port is '/dev/ttyAMA0'. In the python script we need to specifically define the correct port. For example import maestro import time servo = maestro.Controller('/dev/ttyAMA0') servo.runScriptSub(0) print("sub0") time.sleep(3) servo.close
@captainllama5586
@captainllama5586 2 жыл бұрын
Thank you for this!!!
@markejenks
@markejenks 6 жыл бұрын
hey thanks for this. i'm very new to this and trying to follow your vid step by step, but i'v to run into an error. if you can point me in the right direction i would really appreciate it. this is the error: File "test1.py", line 3, in servo = maestro.Controller() File "/home/pi/Maestro/maestro.py", line 33, in __init__ self.usb = serial.Serial(ttyStr) File "/home/pi/.local/lib/python2.7/site-packages/serial/serialutil.py", line 240, in __init__ self.open() File "/home/pi/.local/lib/python2.7/site-packages/serial/serialposix.py", line 268, in open raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)) serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
@PiddlerInTheRoot
@PiddlerInTheRoot 6 жыл бұрын
Hey Mark, what output do you get when you type "dmesg | grep tty"? Also check to see in the Maestro Control Center application, serial settings tab that you have "UART, fixed baud rate 9600" selected. Also I noticed that I uploaded the wrong test scripts on my website so I just updated them, go and give those a shot. Anyways, from that dump it looks like the error is stemming from the script trying to use the USB serial interface, and we want to make sure it's using the TTL serial interface.
@evaying7540
@evaying7540 6 жыл бұрын
Hey, I have the same issue as Mark. I have download the Maestro from Github directly on my pi but the Maestro Control Center application I installed on my windows. My tty1 is enabled, also, I have ttySO and ttyAMAO appeared for dmesg | grep tty command. I used something like you did in test.py but turns out the error above.
@MyDarkneo
@MyDarkneo 3 жыл бұрын
Hi, and thanks for this video! I was just wondering on thing: how can you execute subs in the last part of the vidéo? When I give a try, it just displays sub0 or sub1, but the motors does not move (from what I understood, the frames are not saved on the controller, so I don't get how the RPI is able to get the subs/frame to execute them). Thanks for your help!
@MyDarkneo
@MyDarkneo 3 жыл бұрын
Answering to myself. In fact I had an issue because I already saved frames to my pololu (long time ago, when performing tests on Windows). I deleted everything, applied setting once frames where defined and it is now OK (if it might help others)
@brianmoore5454
@brianmoore5454 3 жыл бұрын
Pity that you didn't demonstrate the Servo's actually moving under the program control
@ViennaMike
@ViennaMike 6 жыл бұрын
Is there a risk in not using a level controller for the serial connection, as the Pi uses 3.3V while the Maestro uses 5V logic?
@PiddlerInTheRoot
@PiddlerInTheRoot 6 жыл бұрын
Seems like I overlooked this detail. I believe you are right, the pins may be damaged in the long run.
@grantwatson5665
@grantwatson5665 5 жыл бұрын
Hi I was just wondering how you could use this as a script not just in the terminal. I am making a launchpad that automatically runs a script when turned on and I just wanted to know if you can just copy the script in 25:45.
@PiddlerInTheRoot
@PiddlerInTheRoot 5 жыл бұрын
There are several methods. www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/
@andreitomut5824
@andreitomut5824 6 жыл бұрын
Your work is very useful for one of my physics project , thanks . I followed your steps but I have some problem . Please help me with these error : Traceback (most recent call last): File "sub.py", line 3, in servo = maestro.Controller() File "/home/pi/Maestro/maestro.py", line 33, in __init__ self.usb = serial.Serial(ttyStr) File "/home/pi/.local/lib/python2.7/site-packages/serial/serialutil.py", line 240, in __init__ self.open() File "/home/pi/.local/lib/python2.7/site-packages/serial/serialposix.py", line 268, in open raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)) serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
@PiddlerInTheRoot
@PiddlerInTheRoot 6 жыл бұрын
Have you tried running the script in sudo, also have you enabled the serial interface?
@periplanetaamericanus2301
@periplanetaamericanus2301 5 жыл бұрын
maestro is pronounced my-stroe
Raspberry Pi LESSON 19: Simple Control of Servo From Raspberry Pi
27:14
Raspberry Pi Servo Motor Control
17:36
ExplainingComputers
Рет қаралды 392 М.
Человек паук уже не тот
00:32
Miracle
Рет қаралды 4,1 МЛН
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
Droid servo animation and control with Padawan and Maestro
21:22
Imperial Light and Magic
Рет қаралды 3,9 М.
Raspberry Pi Pico Servo Motors via PWM
12:49
Tinker Tech Trove
Рет қаралды 30 М.
How to Control an RC Servo with a Raspberry Pi PICO
18:17
Making Stuff with Chris DeHut
Рет қаралды 3,4 М.
Getting Started with the Pololu Maestro Servo Controller
6:19
Pololu Robotics and Electronics
Рет қаралды 262 М.
16 Channel Servo Controller (Raspberry Pi)
19:05
PiddlerInTheRoot
Рет қаралды 50 М.
(SERVO CONTROLLER REVIEW!)  pololu-18 channel meastro
5:00
Denzyl Preston
Рет қаралды 3,4 М.
Servo Motor With Raspberry Pi and Maestro board
6:16
RimstarOrg
Рет қаралды 16 М.
How To Control A Standard Servo With Raspberry Pi
7:40
Core Electronics
Рет қаралды 87 М.
Человек паук уже не тот
00:32
Miracle
Рет қаралды 4,1 МЛН