Questions tagged [pwm]

PWM (Pulse-width modulation) is a technique for controlling power to electrical devices, made practical by modern electronic power switches.

468 questions
-2
votes
2 answers

RE: How Can I Get Flask to Use GPIO Pins to Change the LED Brightness on Linux with a BeagleBone Black?

I am using Python, Adafruit_BBIO for GPIO and PWM, Flask, and a BeagleBone Black. With all these tools and info, I have been following along in a book, "Getting Started with BeagleBone" (Richardson 2014). With this in mind, here is my software from…
De Funct
  • 452
  • 2
  • 10
-3
votes
2 answers

Playing a chord on buzzer, ESP32 Arduino

I would like to play two frequencies (522 and 660) at the same time on a buzzer using an esp32. I have tried these different methods: void loop() { unsigned long t = micros(); if(t % 261 <= 10) //for approximation { firstWave =…
user11520267
-3
votes
1 answer

On Raspberry Pi, How to control PWM on GPIO18 using C++?

Can anybody tell me how to use Raspberry Pi GPIO18 to produce PWM by using C++?
mohasalah
  • 43
  • 2
1 2 3
31
32