Linked Questions

0 votes
3 answers
2k views

More Software PWM [duplicate]

I'm currently working on a project which requires more than one PWM signals for my LED drivers. I'm not looking for any additional hardware for this and so my focus is mainly on software PWM. Based ...
wengzhe's user avatar
  • 101
29 votes
9 answers
25k views

How can I control an RC servo?

I'd like to control a small RC servo (5 V, 500 mA) from the GPIO pins via Python. Hardware What are the required electrical connections? Can I connect multiple servos to the Raspberry Pi?...
Alex L's user avatar
  • 7,605
15 votes
2 answers
12k views

What are the different clock sources for the general-purpose clocks?

I'm trying to generate a clean 11.289 MHz clock signal from the general-purpose clock, GPCLK0 on GPIO4. The suggested route is to use the 19.2 MHz crystal as the source, which seems to work ...
Dog Ears's user avatar
  • 2,027
3 votes
3 answers
4k views

Lighting a LED slowly with GPIO

What is a good way to make an LED turn on and off slowly using a Raspberry Pi? Im trying to hook up an led to become a Tardis lamp, but since the Pi doesnt have ADC/DAC, Im kind of stuck. What are ...
calccrypto's user avatar
3 votes
2 answers
18k views

Where is the PWM pin located exactly on the board?

Can someone point me to exactly where the PWM pin is on the board and how I can hook this thing up visually as I'm totally lost as to what I would need to make this run. Also what is the snippet of ...
Patoshi パトシ's user avatar
3 votes
2 answers
12k views

Analog/Digital IO pins

Can all of the GPIO pins on the raspberry pi 3 be used as both analog and digital pins? Are there any dedicated analog or digital pins?
user52631's user avatar
3 votes
2 answers
13k views

What is the maximum frequency of a pulse width modulation signal for the raspberry pi 3?

What is the maximum frequency of a pulse width modulation signal for the raspberry pi 3? Also, how fast is the software PWM, as well as the hardware PWM? When looking at the pulse width modulation ...
deltontrosky's user avatar
4 votes
3 answers
7k views

nanosleep won't sleep short time

I trying to toggle one of my GPIO pins at a specific frequency, at the kHz range. I set up the wiringPi Library, the blinking example seems to work just fine.So I modified the code, so it will ...
Kirill Kulakov's user avatar
4 votes
1 answer
3k views

Using Pi's built-in audio as general-purpose DAC?

Any common Audio output on any electronic device is in essence a two-channel Digital-to-Analog converter, where the voltage sent to each of the channels (Left, Right) powers the electromagnet that ...
SF.'s user avatar
  • 920
2 votes
2 answers
2k views

Controlling a common RC car

I need to test my computer vision stack written in C++ on a mobile robot and I need to control the robot from a Linux ARM board (which can be a Raspberry Pi). Since the specialized wheeled robot ...
Kozuch's user avatar
  • 250
3 votes
1 answer
692 views

How is it possible to make hardware pwm more precise?

I started building a drone (quad) and i was wondering if i will have any problems with the accuracy of the signal i am going to send to the esc's. according to mr booth in Can I use the GPIO for pulse ...
Alucardidis's user avatar
0 votes
1 answer
886 views

Single PI with multiple connected devices using the same GPIO pin - need some sort of logic device?

I would like to connect a relay, a 4-digit display, and a light sensors to a single Pi Zero W. I quickly realized that the relay and 4-digit display would conflict with one another because they are ...
Nelson's user avatar
  • 3