All Questions
68
questions
0
votes
0
answers
29
views
Problems with OCR1B on Atmega328p
Trying to control 4 servos (SG90) using 4 pots on an arduino nano and the one connected to OC1B keeps having problems, with bits of jittering and it just not moving correctly (occasionally spinning), ...
2
votes
1
answer
375
views
What does LSB mean in PWM?
I have this PWM exam preparation question in Computer Engineering where it says "What is one V_LSB?". However we've discussed nothing about LSB in the PWM section.
What does it means?
2
votes
1
answer
2k
views
AVR setting certain PWM frequency and duty cycle is not working right
I am prototyping a simple LED dimmer on an Arduino Uno (Atmega328p) and I have issues with the PWM frequency and duty cycle I am trying to adjust.
To get a frequency of 200Hz flat I am using the CTC ...
0
votes
1
answer
280
views
Perf board parasitic capacitance fries microcontroller?
Recently one of my mirocontrollers fried in a project on a perf board. Eight of the outputs are PWM, and aside from the power lines, there are no other outputs from the MCU. The PWM frequency is 40 ...
0
votes
0
answers
43
views
Can I use PWM to control the speeds of more than two motors separately in ATmega32A?
Can I use PWM to control the speeds of more than two motors separately in ATmega32A ?
The latest thing I could do is controlling The speeds of two mototrs using fast PWM mode in counter 1 with ...
0
votes
1
answer
113
views
How to use output PWM in AVR
I have this code to blink an array (8-led) of led one after one:
...
1
vote
1
answer
175
views
LED-strip PWM works with Raspberry Pi, doesn't work with Attiny45
I'm trying to control an RGBW analog LED-strip by PWM modulation.
When using an Attiny45 the LED-strip just blinks at a low frequency (approx. 2-3 hz). However, using a Raspberry Pi 3 to control PWM ...
0
votes
1
answer
310
views
Confusion on Servo and PWM (AVR) [duplicate]
For reference im using an AVR Atmega 328p, and the servo specs i'll be using says this:
Pulse Cycle: 20 ms (I assume this means the "period")
Pulse Width: 600-2400 µs
So from my understanding, ...
8
votes
3
answers
2k
views
ATtiny13A - Can't generate software PWM with CTC mode
I'm trying to make a remote control RGB LED light using an ATtiny13A.
I know the ATtiny85 is better suited for this purpose, and I know I might not eventually be able to fit the whole code, but for ...
0
votes
1
answer
2k
views
How many PWM output channels does the Atmega4809 really have?
How many PWM outputs does the Atmega4809 really have? The Microchip site claims it has 8.
The datasheet for the Atmega4809 microcontroller is split up into two pdfs. This one is for the megaAVR ...
2
votes
1
answer
2k
views
Driving inductive load from IC with MOSFET
I am designing a driver circuit to drive a hydraulic proportional valve from
an IC's PWM output. (IC is ATmega 2560). The coils on the valve draw approx 3Amps
at %100 duty cycle with a power supply of ...
0
votes
1
answer
752
views
ATTINY84 cannot get PWM to work at all
I've recently been moving from Arduino environments to AVR, and I'm programming a Tiny84 with the Sparkfun USBTiny programmer and Atmel Studio 7. For the life of me, I cannot figure out why I can't ...
1
vote
1
answer
6k
views
Controlling Servo motor with ATmega328p microcontroller
For a while, I've been working with Arduino, but about a month ago, I switched over to using solely the ATmega328-PU microcontroller. I use the Atmel Studio IDE. So far, I have successfully blinked an ...
0
votes
1
answer
207
views
PWM controlled H-Bridge
I'm trying to drive symmetrical voltmeter with not-so-symmetrical voltage divider. PWM is working as a charm, but I have problem with rest of the circuit. I can't really control voltage in a voltmeter,...
2
votes
2
answers
3k
views
Control PWM with potentiometer using atmega328p
I'm using an atmega328p and I want to control the PWM duty cycle with a potentiometer.
The frequency is 20ms and the duty cycle is between 0 ms and 2 ms.
Problem : when I simulate this in Proteus ...