Arduino Nano | 1 kHz interrupt based software PWM
For a project/video I need 8 PWM outputs, because of the amount I have to do it in software. I will do this without using any delay function, but with timer interrupts. The produced PWM will be a fast 1 kHz PWM with a resolution of 100. To get a resolution of 100, the interrupt routine has to run at 1 ms/100 = 10 μs, so no time messing around in the interrupt routine ;). Because of the speed it took some effort to made it done. Hope you enjoy and learn from it.
Links sketches:
https://www.dropbox.com/s/dpxs2ieny5l86ez/Sketches.zip?dl=0
Link TimerOne Library:
https://playground.arduino.cc/Code/Timer1/
Content:
0:00 Explanation goal
0:45 Explantion test code
1:38 Connect Arduino to the scope
2:02 Upload and check the signal
3:17 Try again with TimerOne library
3:50 Check signal on scope
4:26 Old school coding
5:06 Check signal on scope
5:42 Finally PWMing the LED
6:25 Check signal on scope
Music:
Escape - Atch https://soundcloud.com/atch-music
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/-_escape
Music promoted by Audio Library https://youtu.be/6WeknItDM24
Видео Arduino Nano | 1 kHz interrupt based software PWM канала Gatze Tech
Links sketches:
https://www.dropbox.com/s/dpxs2ieny5l86ez/Sketches.zip?dl=0
Link TimerOne Library:
https://playground.arduino.cc/Code/Timer1/
Content:
0:00 Explanation goal
0:45 Explantion test code
1:38 Connect Arduino to the scope
2:02 Upload and check the signal
3:17 Try again with TimerOne library
3:50 Check signal on scope
4:26 Old school coding
5:06 Check signal on scope
5:42 Finally PWMing the LED
6:25 Check signal on scope
Music:
Escape - Atch https://soundcloud.com/atch-music
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: https://bit.ly/-_escape
Music promoted by Audio Library https://youtu.be/6WeknItDM24
Видео Arduino Nano | 1 kHz interrupt based software PWM канала Gatze Tech
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Test Husqvarna 235 Chainsaw](https://i.ytimg.com/vi/r-_gT5RVY8Y/default.jpg)
![Husqvarna 235 chainsaw Breather Solution](https://i.ytimg.com/vi/ZHaVggOhlAk/default.jpg)
![Demo Laser engraving with configuration in LaserGRBL | Neje N30820 | CNC3040](https://i.ytimg.com/vi/KwS77bCmRIc/default.jpg)
![Make a Windows bootable USB with Ventoy | Linux | From download ISO to testing](https://i.ytimg.com/vi/F7qvXPk5hvw/default.jpg)
![Compiling VESC Firmware in Windows | IDE and Terminal | STM32Cube IDE | From scratch](https://i.ytimg.com/vi/0pzr2HbdVYc/default.jpg)
![Parametric Cablechain in Fusion 360](https://i.ytimg.com/vi/tgKHdgiZ1hg/default.jpg)
![Programming a (bricked) VESC through SWD/STLink V2 | New STM32CubeProgrammer](https://i.ytimg.com/vi/Qvu0XfnnmYI/default.jpg)
![Compiling VESC ESC Software from scratch | Custom Application Cruise Control](https://i.ytimg.com/vi/lclRbZko9Us/default.jpg)
![Installing Linux | From Scratch | Dualboot](https://i.ytimg.com/vi/GzcdoF62Tn4/default.jpg)
![Clean Windows install from scratch | Download ISO | Bootable USB | Bios config](https://i.ytimg.com/vi/_Wnt029Zqv0/default.jpg)
![Modifying ESP32 Development Board for external 5 Volt supply](https://i.ytimg.com/vi/NPUk_OmQnRw/default.jpg)
![Assembling a clutch of a Stihl Brushcutter FS Serie](https://i.ytimg.com/vi/iuvYuj3DHXc/default.jpg)
![Diagnose and 'repair' a Lithium-Ion Battery | Low cell voltage](https://i.ytimg.com/vi/PYoGQZiGUrM/default.jpg)
![How much amps/current is required to start a Petrol Car](https://i.ytimg.com/vi/fPihyF-Z3nE/default.jpg)
![How much amps/current is required to start a tractor ?](https://i.ytimg.com/vi/HVGegLpU4RY/default.jpg)
![How much amps/current is required to start a diesel car ?](https://i.ytimg.com/vi/p-9nnkSNdMc/default.jpg)
![Testing the Akaso Brave 7 LE](https://i.ytimg.com/vi/gnWlNQXY-Fg/default.jpg)
![Davinci Resolve | Zoom | Freeze Frame | Change Speed easily from a fellow beginner](https://i.ytimg.com/vi/zaqbHjBPyL8/default.jpg)
![Arduino from Scratch | 2021 | From download to blinking led | Linux](https://i.ytimg.com/vi/4s6tNcQrV1w/default.jpg)
![Modeling a PhoneCase in Fusion 360 with Pictures](https://i.ytimg.com/vi/u8Zu2Uct_YM/default.jpg)