Pulse-Width Modulation (PWM) is a technique used for controlling the power given to electrical devices. The average power supplied is controlled by rapidly turning the supply on and off. Questions here concern driving PWM outputs from the Raspberry Pi.

learn more… | top users | synonyms

0
votes
1answer
21 views

GPIO HW PWM @ 143Hz and 20-80% duty cycle, with WiringPi's gpio utility

I've tried to find the solution from other threads but they all seem to miss the point to a certain degree, usually going into kHz and MHz, or into the SW GPIO territory that I don't need. I have a ...
0
votes
0answers
25 views

5v fan control with pwm

I tried to connect an old 5v fan from a heat skin i have. This fan has 4pins like this http://www.pavouk.org/hw/fan/en_fan4wire.html . Although i managed to power it up by connecting it to pi's 5v and ...
1
vote
1answer
33 views

RPIO.GPIO on RPie vers 1 B versus RPi.GPIO on Rpie vers 2B

With the "old" Pi v1 B, Python 2.7 (or Python 3.x.) I run a smal program for testing a servo motor. The motor opens/closes a lid on a smal fan. It worked fine, the servo not jittering. I was happy. ...
1
vote
1answer
36 views

Strongly typed language for the Raspberry Pi? [closed]

I would like to know if there is a matrix somewhere that list the languages that could be used on a Raspberry Pi. I've a broad experience in C# and a not to bad knowledge of Java. For my first weeks ...
1
vote
0answers
28 views

Controlling Stepper Motor Responding Strangely

I'm attempting to simply move a small stepper motor over GPIO using a Sparkfun Easy Driver. This Stepper motor is the one I'm attempting to use. I'm using similar code and configuration to that shown ...
0
votes
2answers
59 views

Is Raspberry Pi 2 better than Raspberry Pi B+ for controlling RGB LEDs via software PWM

Is the Raspberry Pi 2 better at controlling RGB LEDs then then Raspberry Pi B+ due to it being faster? Reason why I think this is because when I control my RGB LEDs I notice they change colour (both ...
2
votes
1answer
361 views

Using PWM in a Windows 10 App with the Raspberry Pi 2

I am a newbie an I have succesfully use a RBG Led, and I emulated PWM by code but it is too slow (and in somehow the timer autostops), Then I watched that the standard libraries support GPIO.PWM but ...
1
vote
1answer
131 views

ESC control by RPi B to manage brushless motors via python

This post may be similar to other ones, but they didn't solve my problem: I've gor four Hobbywing Skywalker 40Amp ESCs, to control four brushless motors (these ones) to make a quadcopter. I plugged a ...
0
votes
1answer
208 views

How to initialize an ESC with python code [duplicate]

Hello everyone I am a newbie to this,but i have a really important issue.I cant make my brushless motor move,it kepps on beeping. I have connected it to an ESC and is trying to signal the ESC from the ...
0
votes
1answer
386 views

How to use pigpio to control a servo motor with a keyboard?

My aim is to be able to control a servo motor with my keyboard in a real time fashion using the python module of pigpio. That is, when I press say the 'w' key it rotates clockwise and when I press the ...
0
votes
1answer
62 views

how pifm pwm modulation works?

thanks in advance , i want to know how the pwm modulation of pifm works more precisely why the size of the buffer of data to be read in each iteration is 1024 bytes and how this buffer pcm data could ...
0
votes
1answer
127 views

Can I control this Pololu VNH5019 Motor Driver Carrier with a Raspberry Pi?

Do you see any reason why I should not be able to control this Pololu VNH5019 Motor Driver Carrier from a Raspberry Pi 2? So far I own neither an Arduino nor a Raspberry Pi, but I would like to build ...
1
vote
0answers
179 views

Multiple servo control RPi

I have written the following script to set positions for a single servo. import RPi.GPIO as GPIO import time #set up pin 11 as an output GPIO.setmode (GPIO.BOARD) GPIO.setup (11, GPIO.OUT) ...
0
votes
1answer
101 views

brushless motor speed control

I have successfully been able to turn the motors through the code pasted (found online). I am trying to adapt the code for a speed control, but it seems that the speed only goes to 100%, I have tried ...
0
votes
0answers
120 views

Raspberry pi with PS3 Controller

Hi I have used the following code for a specific movement for the servos. In my project I have 3 servos per nacelle (2 nacelles) to control the motions for the bicopter. I want to control the inputs ...
2
votes
1answer
129 views

RPi use in inverter

I am building a pure sine wave dc/ac inverter and looking at the possibility of using the Rpi to control the h-bridge. I need a sinusoidal encoded pwm signal at around 20kHz. So the pulses would ...
1
vote
0answers
116 views

Raspberry Pi with ESC and PS3 Controller

I am new to coding and I am trying to control ESCs through a PS3 controller which will be coded on the Raspberry Pi B+. I think this can be done, but i have read in a lot of places that I need to use ...
0
votes
1answer
270 views

Special PWM files are not found on Raspberry Pi 2

I just got my Raspberry Pi 2 B (V1.1) and wanted to fool around with the Sunfounder starter kit a bit. The "sunfounder kit" is a learning kit with a couple of electronic elements (bread-board, ...
3
votes
1answer
214 views

Raspberry Python Libraries

I am currently working with a Raspberry Pi (Model B+) and have some experience with Arduino (and it's derivates). Now, there are three Libs for GPIO access with Python for the Pi: WiringPi ...
1
vote
1answer
711 views

Creating a 0-10V voltage range for ballasts using Raspberry PI and amplifiers [closed]

I have been working on automating my house and i was looking to dim and brighten the lights (not only led) using ballasts which require input voltage of range 0 to 10v DC depending on which the light ...
1
vote
1answer
361 views

Control DC Motor with Servo Controller

My goal is to control 2 DC motors independently with my Raspberry Pi. I already have the motors along with 2 ESCs (from old RC cars). As far as I know you can control the motor speed with a PWM signal ...
1
vote
2answers
294 views

Simple DC Solenoid Valve Circuit, How to size components?

I'm trying to build a circuit controlled by a 3.3V GPIO pin on a raspberry pi to open / close a 12VDC Solenoid Valve. Part of me feels I'm in over my head and I should back away slowly, but hopefully ...
1
vote
2answers
99 views

I'm looking for a serial input type “polychromatic” LED as an output for my raspberry pi. Does such a device exist?

Forgive any potential neologisms, but I would like to acquire a light that can, say, display 64-256 different shades of color based off of a digital numerical input signal? It can be a usb light, but ...
1
vote
1answer
73 views

How is it possible to make hardware pwm more precise?

Hello 1st of all this is my 1st question here :P 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. ...
2
votes
2answers
211 views

Is it possible to expand the PWM signal?

I'm looking at the WS2812B LEDs and I've noticed that it is possible to control the LEDs by an external library (https://learn.adafruit.com/neopixels-on-raspberry-pi/software). But, this only drives a ...
2
votes
3answers
234 views

Default duty cycle of hardware PWM using wiring-pi

I spent quite some time, but I wasn't able to find the answer (and found other interesting sources like changing pwm frequency 1 and changing the frequency 2), and I lack the equipment to find out by ...
0
votes
0answers
107 views

RGB LEDs control over Web

I want to control my RGB Leds via Browser and pi-blaster. But I am helpless as a programmer. So I installed node.js and pi-blaster and the pi-blaster.js extension in node.js I made an HTML page with a ...
0
votes
1answer
630 views

Controlling Brushed Motor ESC from the raspberry Pi

I've tried solutions from similar problems, but none of them gave me any usable results. I'm trying to control those http://www.ebay.com/itm/311177661450 ESCs with Raspberry Pi. I have tried ...
1
vote
2answers
149 views

Can pins 18 and 21 be used to power two DC motors with one L293D

I see that adafruit has a tutorial running one dc motor on pin 18 with L293D and I have done this sucessfully. My goal is to run two DC motors without adding additional hardware, I see pin 21 is ...
0
votes
2answers
305 views

What register do I use to control the PWM clock on the BCM2835 used in the Raspberry Pi?

What is the register used for setting a divisor on the PWM clock on the BCM2835? I looked at the data sheet (Raspberry-Pi-BCM2835-ARM-Peripherals) - but couldn't find this information. But this ...
2
votes
0answers
216 views

PWM-based controlling an LED-strip using transistors, circuitry problems [closed]

I know there are some similar questions out there, but I'm really new to electronics and unfortunately they didn't provide me help. I want to control a tricolor LED strip (being able to dim each of ...
1
vote
1answer
162 views

How to get RPi to generate a triangle wave, then outputting a PWM signal

I want my Raspberry Pi B+ Model to generate a triangle wave and output a PWM signal from one of the GPIO pins, but I'm not sure how to go about doing this. All I want it to do is add some small length ...
0
votes
0answers
63 views

PWM to control brightness on i2c LED backpack?

I have something similar to this, it works, but it's too bright! I am aware that LED brightness can be controlled by pulse width modulation, but I don't know if I can safely do that with an LED ...
0
votes
1answer
2k views

Control dc motor using GPIO.PWM problem

I'm trying to make a small remote controlled car with the raspberry pi and attached two small dc motors to it, using the L239D chip. When testing without the remote control (which is a simple android ...
1
vote
1answer
529 views

How to write to /dev/servoblaster from Python script?

I'm working on a RPI controlled quadcopter. The PWM is generated by ServoBlaster. I've written a Python script to control the motors' speed. Assume that I'm using GPIO4 to control the motor. If I want ...
0
votes
0answers
739 views

RPIO does not work on Python 3, only in Python 2.7

I've installed RPIO library to my RPI following these instructions: $ sudo apt-get install python-setuptools $ sudo easy_install -U RPIO I'm trying to run this code (test.py): from RPIO import PWM ...
0
votes
0answers
92 views

Is it possible to use GPIO's simultaneously?

I'm interested in using raspberry to control a number of brushless motors. PWM should be executed parallely to work in needed rate. As far as I've heard, RPi provides only consequent requests to ...
0
votes
0answers
78 views

Beginning with servos and PWM

As a way into getting myself back into learning more about electronics I'm trying to figure out how not to screw up configuring an Adafruit 16-Channel 12-bit PWM/Servo Driver with my pi. It's been ...
5
votes
1answer
449 views

PWM Control on Raspberry PI

Alright so I understand this question is fairly saturated, but my use in pwm is for two differing pieces of hardware. (Sourced from: https://www.modmypi.com/blog/raspberry-pi-gpio-en-franais) From ...
1
vote
1answer
166 views

Quadrocopter Motor Movement

A friend and I are trying to build a raspberry pi-powered quadrocopter. We've ordered four ESCs, four motors, and the Pi, but we're having trouble getting a motor to actually move. The motor makes a ...
1
vote
1answer
756 views

Can't PWM LED on pin 18

Using this code, I can't use PWM on the pi. It's modified off of a Linux user article. import time import RPi.GPIO as GPIO led = 18 GPIO.setmode(GPIO.BCM) GPIO.setup(led, GPIO.OUT) ...
2
votes
1answer
530 views

I2Cs for temperature senors and multiple PWM outs

EDIT: Rewrite, this is why you don't write questions after not sleeping for two days (wait what day is it?) I have a whole bunch of 12V 4 pin (pwr, grnd, tach, pwm) fans I'd like to manually control, ...
0
votes
1answer
3k views

Can I control this ESC/Brushless Motor with a Raspberry Pi and/or Arduino

My friend and I have been reading up on articles talking about controlling ESC/Brushless Motors from a Arduino or Raspberry Pi. Articles i've read give caution on the idea that controlling such ...
1
vote
4answers
501 views

Controlling a servo and playing sounds

I've got a serious problem about Pi. It is - I can play sound just fine with a python script either with: import pygame pygame.mixer.init() pygame.mixer.Sound("...").play() or: import os ...
0
votes
3answers
346 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 ...
0
votes
0answers
140 views

Raspbian crashing after servo.stop_servo()

I have a servo connected to my RPi and I try PWM.Servo's capabilities. The program below does what it should - but after execution it crashes system (it doesn't respond to any input, no animations, ...
1
vote
1answer
348 views

How can I control the PWM via the sysfs

I want to set the PWM for some tests with a tricolored LED. I want to be able to set it up via the sysfs interfaces but I'm having a very hard time finding any information on how to do this. What is ...
1
vote
1answer
2k views

Problem with PWM, running DC motor using L298 H bridge(using RPi.GPIO python module)

This picture shows the code i am using to run back and forth a dc motor for specified time and it works well, no problem with this.! Problem is here, as soon as i switch on my Pi and try to run the ...
1
vote
1answer
3k views

Controlling Multiple analog RGB 12V led strips

I need to control several (5 to 10) analog RGB strips which have a separate power supply at 12V or 24V. Just like this one for example. I need to control the intensity of each colour channel for each ...
1
vote
2answers
819 views

How to generate a PWM signal with Visual Basic? [closed]

Please help me to get PWM signal (three LEDs) from raspberry pi by using Visual Basic. I have a problem to generate pulse signal from raspberry pi wirelessly. What I want to do is using a program to ...