ramonh
September 3, 2022, 12:47pm
1
Hi all,
I got two different Geekservo motors which I want to contol by a raspberry pi.
360 degrees (robotshop /en/geekservo-2kg-360-degrees-compatible-w-lego.html)
continuous (robotshop /en/geekservo-motor-2kg-compatible-w-lego.html)
I managed to get the 360 degrees version working with help of:
Want to interface your Raspberry Pi with a Servo Motor? In this tutorial, learn how to wire and control a servo motor using Python for Raspberry Pi.
Est. reading time: 9 minutes
The continuous version however has only 2 wires (black and red) and I can’t find documentation how to connect them to my raspberry pi and controll them.
Is there someone who has done this before or can give me some insights?
Thanks in advance!
Ramon
Hello @ramonh and welcome to the RobotShop forum,
Are you sure you don’t have this one instead?
If it only has two wires it means is not a servo but a regular DC motor, so it should be controlled like this:
I hope that helps!
ramonh
September 3, 2022, 5:09pm
3
Hi @geraldinebc15 ,
Thank you for your response!
That’s indeed motor I can’t get going. Thanks for sending me the link.
Since I’m not using a board (but directly connect it to the raspberry). Is it correct, I should connect the red line to pin 4 and the black line to pin 17?
(Using this script: Software | Adafruit's Raspberry Pi Lesson 9. Controlling a DC Motor | Adafruit Learning System )
Thanks again for your reaction!
Kind regards,
Ramon
Since I’m not using a board (but directly connect it to the raspberry).
You can’t power a motor with the current that the RPi GPIO can withstand, you need a driver to be able to control the motor.
Welcome to the RobotShop Grand Tutorial: How to Make a Robot, a series of 10 lessons that will teach you the principles behind making your own custom robot. Now that the general shape, the actuators and the brain for the robot have been covered, it...