Questions tagged [pwm]
Pulse-width modulation, is varying the duty cycle of a rectangle wave, usually with a constant frequency.
530
questions with no upvoted or accepted answers
2
votes
0
answers
3k
views
STM32 HAL PWM output with DMA misbehavior
I use the Blue pill STM32F103C8T6 to generate variable duty cycle PWM with DMA and using HAL library. And stuck with undesired results. First, I generated code with STM32CubeMX v5.0.1, HAL v1.7.0, ...
2
votes
0
answers
67
views
Can I generate following voltage waveform with single PWM FET?
I am designing power supply which must output following voltages at a maximum of 1.5 A stepped down from a 24 V DC supply.
24 V
13-15 V
0-5 V
Waveform for one of the inputs requires following ...
2
votes
0
answers
1k
views
Constant Current LED Driver Output Control using PWM
I want to control the brightness of a led which is powered by a constant current driver.
On utilizing a MOSFET and pwm signal from an arduino uno the led starts to fade in as the duty cycle ...
2
votes
2
answers
322
views
Circuit for high-voltage pulses using Raspberry Pi PWM to drive a piezoelectric actuator
I am trying to engineer a device to separate red blood cells from blood plasma in 100mm x 1mm capillary tubes using the Raspberry Pi GPIO pin PWM feature and a piezoelectric actuator.
The pulses ...
2
votes
0
answers
340
views
STM32F429 PWM GLITCH
I have set up Timer 1 Channel 1 for pwm mode 1. I used the STM32CUBE to generate code for MDK-ARM. Parameters as below-
...
2
votes
0
answers
290
views
STM32L1 Discovery Kit 5MHz PWM Generation
I have been using the STM32L1 Discovery Kit with the STM32L152RCT6 MCU.
A project that I am working on requires me to output two PWM signals. One of these is a 100KHz square wave and the other is ...
2
votes
0
answers
624
views
L298 distorts signal
I connected STM32 F334R8 microcontroller to L298 H-bridge. I made some measurements. The problem is output signal on L298 has quite slow slopes and is not as sharp as input signal. I do not understand ...
2
votes
0
answers
268
views
DC motor speed control
I am trying to control the speed of motor using ADC value received using ATMega16, the system works well with 12V. But when I go for 24V the motor runs continuously, even when ADC value is 0.
I have ...
2
votes
0
answers
1k
views
PWM DC motor speed control outputs same input voltage regardless of the potentiometer
Hi, I just bought one of these PWM DC motor speed controllers, powered it using a 24(V) 10(A) power supply and attached a high rpm DC motor to it for a few seconds, increased and decreased the speed ...
2
votes
1
answer
3k
views
What does TIM_OCMode do on STM32F4?
I'm making locked antiphase drive for motor control on STM32F4 board. Im configuring Timer4's 4 channels to be in pairs, ch2 inverse of ch1 and ch4 inverse of ch3. Each pair will control its own motor....
2
votes
0
answers
6k
views
STM32F4 HAL - PWM Phase shifting channels on the same timer
I've configured my STM32F407VG (STM32F4Discovery) TIM4 timer using the following code:
...
2
votes
0
answers
308
views
Strange behaviour using PWM on CortexM3
I have a board with the ATSAM3S2BA-AU, which is a Cortex M3 uC. I need to use 2 PWM channel , here how I've done it :
...
1
vote
0
answers
69
views
PWMs from microcontroller are resetting
I have been designing an SMPS where the STM32F334R8t6 microcontroller provides the full bridge control signals. The microcontroller board uses a 5 V and 3 V regulator to supply the MCU and the CAN ...
1
vote
0
answers
26
views
Speaker pop / crackle when SBC connects to WiFi
I'm using a Raspberry Pico to detect movement and play a sound via an amp & speaker. At certain intervals the Pico attempts to connect via WiFi to send and receive data.
However, when attempting ...
1
vote
0
answers
56
views
Arduino Nano 33 IoT: PWM read jitter
I am trying to read two 2 kHz (500 μs period) PWM waves (from two Hall-effect sensors) at two digital pins of an Arduino Nano 33 IoT simultaneously with on-duty ranging from roughly 30 to 70%.
One ...
1
vote
0
answers
207
views
How to stop LEDs flickering when ESP32 is connected?
I'm working on a circuit that consists of an ESP32 and a series of LEDs connected to the same power supply. My problem is that when the ESP32 is using Wi-Fi, the LEDs start to flicker:
https://imgur....
1
vote
1
answer
91
views
EMC: PWM signal: Signal return vs ungrounded return
When there will be many (48) long (200 mm) overlapping PWM-signal traces driving separate LEDs, which merge together in a pad post-LEDs to then share a long (200 mm) trace back to a MOSFET switch ...
1
vote
0
answers
37
views
Generating trigger spikes around a reference
I'm experimenting with a circuit to use a IR2151 (self-oscillating half-bridge driver) as an el-cheapo MOSFET driver. Basically take away the "self-oscillating" part and trigger the high and ...
1
vote
0
answers
55
views
Driving bidirectional LED Christmas lights
So I bought a set of 500 lights from Temu and noted that they work at 24 V, with half of them lighting up at one direction of current and the other half when the direction is different. There’s only 2 ...
1
vote
1
answer
97
views
How to linearize a reciprocating motion using a motor control circuit
I have a reciprocating machine that uses a variant of the Scotch yoke mechanism. This produces a sinusoidal motion at a 15 mm stroke.
For my application, I need this motion to have approximately ...
1
vote
2
answers
87
views
Driving 12V hand wound solenoid using PWM
I'm trying to drive a hand wound solenoid (140 turns of 0.8mm enamel copper wire, 4cm long) with a 12V/2A power supply. I need to control the intensity of the force generated by the solenoid, so I'm ...
1
vote
2
answers
75
views
How to Drive a 50uA Panel Meter with a PLC Running 24v Inverted PWM Signal
Full disclosure, I am not an engineer of any kind. Just an electronics enthusiast.
I have a Barth 850 micro PLC that needs to operate at 24v, and has one PWM output. I also have a 50uA panel meter ...
1
vote
1
answer
98
views
Controlling PWM Fan/Read Sensor from PIC16F18877
I am working on a controller based around the PIC16F18877 which will need to control a 4-wire 12V DC Fan, as well as read the signal from the sensor wire. The PWM signal needs to be somewhere between ...
1
vote
0
answers
87
views
Reducing EMI from PWM controlled Led segments
I am currently designing a product that has a ring of LEDs with 7 individually dimmable segments.(all together about 40 standard (blue/white)LEDs max 15mA each) the only supply voltage is 3.3v but I ...
1
vote
0
answers
68
views
Flyback Average Model
I wanted to try the PWM switch model to make a bode plot from the transfer function of the flyback with fixed duty cycle in LTspice.
I had already a working transient model which give me the correct ...
1
vote
2
answers
185
views
LED indicator for PWM signal
I want to make a PCB that has an ESP32 on it, and the ESP sends a PWM signal to the motor driver. I want to indicate if the PWM signal is being sent or not by LED, without interfering with the PWM ...
1
vote
0
answers
134
views
How should you pair conductors for I2C with PWM for a DC motor over CAT6 to minimize crosstalk?
We would like to send I2C and 12v PWM for a DC motor over the same CAT6a S/UTP cable. I know this is not ideal, and "differential I2C" would be better, but for now standard I2C is what we ...
1
vote
0
answers
145
views
Soft starter for AC motors
I want to build an AC motor soft start. The way I found is to regulate the voltage from 0 to 220 V (within 2 seconds) to eliminate the inrush current. I did it using Arduino to generate PWM to drive a ...
1
vote
0
answers
45
views
Noisy signal output from BD2320 MOSFET driver
I need help or technical solutions relating to this issue I encountered with BD2320.
I intend to use two BD2320 drivers for an interleaved buck converter. One of the channels works well, but after ...
1
vote
1
answer
69
views
50 W solar panel and a simple PWM solar charge controller at 14.1 V to keep a 12 V 50 Ah LiFePO4 battery charged?
I have a solid-state PWM charge controller with a regulation voltage of 14.1 V. Can I safely use this to keep a 12 V 50 Ah LiFePO4 battery charged? I understand that the PWM controller is less ...