Linked Questions

2
votes
1answer
912 views

What is the relationship between angle and servo motor duty cycle? How do I implement this?

I am unsure of the relationship between duty cycle and angle. I see lots of tutorials online with many different equations to calculate duty cycle for a given angle. I have a 50Hz servo motor that ...
-1
votes
1answer
1k views

Serial Communication of <raspberry pi zero w> with <arduino nano>

Background I'm trying to control some motors by raspberry pi zero w. I did, but the PWM produced by Software was unstable. So I decided to use arduino uno with zero. (Zero is required because I ...
2
votes
2answers
734 views

AC mains dimmer dimming 7W LED lamp problem (RpiZero + MPDM V4.1)

I'm trying to dim a 7W LED with a Raspberry Pi Zero for home automation. However it doesn't work as expected. I followed this tutorial : https://www.youtube.com/watch?v=wqY4-gHqvZI . I have the exact ...
3
votes
2answers
401 views

Run the program in the laptop and use the raspberry gpios, PWM to control servos

I'm working with face tracking and I want to activate some servomotors depending the motion of my face. For facetracking I'm using, an usb cam, opencv and dlib. Now results the raspberry can't run my ...
0
votes
2answers
523 views

How to use Rpi python to read/write/convert, to/from Arduino PPM and PWM servo control signals?

I want to create a python equivalent of the RCPulseIn library for arduino that does all the same functions of the library. I have written up a code that has lots of errors, but has sort of a framework ...
2
votes
2answers
97 views

set specific angle in pigpio set_PWM_dutycycle

I just updated my code to use pigpio instead of RPi.GPIO, the later is working but my robot is trembling like a chihuahua, so I gave pigpio a try. In this piece of code I'm moving my servo, so to ...
0
votes
0answers
130 views

Unable to stop motor through GPIO in Python

I'm using an rPi to send a GPIO signal to a servo motor. When I run the program, the motor starts turning, and then continues without stopping, even if the program has terminated through the use of a ...
0
votes
1answer
91 views

How can Rpi python 3 uses PCA9685 PWM controller to change direction and position of a servo?

I need help understanding the code in the turn.py file, which is a part of the this project, please look #!/usr/bin/python3 # File name : car_dir.py # Description : By controlling Servo,the camera ...
0
votes
1answer
35 views

MG 996R Micro servo Using Raspberry

I have a MG 996R micro servo which I am using with a Raspberry Pi and Python. It seems that this servo is not working with Python. I have tried experimenting the values, increasing and decreasing of ...
1
vote
0answers
19 views

Controlling PWM by wiringpi through python programming [closed]

Can anyone give me the program for controlling PWM by wiringpi through python programming? I have already searched on the net but could only find program through C programming.