W
W
webinside2018-08-27 18:14:27
Arduino
webinside, 2018-08-27 18:14:27

PWM on atmega8 via Arduino IDE?

For a simple project, you need to smoothly blink the light tape. Smooth ignition and extinction.
As the cheapest option, I chose atmega8 (dip 28). It was stated that there are 3 pwm (shim) channels available.
Arduino UNO acted as a programmer.
In test cases via Arduino as ISP, everything works only as digitalWrite() logical 0 or 1.
analogWrite() did not work on any of the examples.
The generator took an internal one at 1 MHz.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Skorzhinsky, 2018-08-28
@AndyKorg

read about timers in avr, for example, on easyelectronics.ru and play it yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question