No video

How to create very fast square pulses with Arduino ( up to 4 MHz with Arduino NANO, UNO, & MEGA2560

  Рет қаралды 27,216

High Voltage Engineering by MG Niasar

High Voltage Engineering by MG Niasar

Күн бұрын

digitalWrite command of Arduino is very slow and with that you can only achieve 150 kHz signals (full period, ON and OFF) at best.
In this video I show you that using port manipulation and while loop you can get up to 4 MHz signals (ON period less than OFF period) and 2.66 MHz with 50% duty cycle.
Also you will learn how to produce multiple signals at exactly the same time. this is something which is useful if you want to make a pulse with a multilevel converter, I mean at sometimes you want to drive the switches independently to make sine wave or other waveform, but if you want make a lightning impulse with the multilevel converter, it is necessary to turn on all switches at the same time.
At the end I summarized the results and based on this experimental work I concluded the number of clock cycles that it takes to run each command. If you see some mistake somewhere, let me know.
The probe and scope should have sufficient bandwidth to capture the signals properly. I used the probe at 10X to increase the bandwidth. Even so steel the signal is filtered a bit.
The following pages/videos are good references to look at:
www.arduino.cc...
roboticsbacken...
• Port Register Control ...

Пікірлер: 61
Advanced Arduino Code Optimisation with Pin Registers
15:16
Mario's Ideas
Рет қаралды 15 М.
How To Create A PWM Signal Using The Arduino Uno - For Beginners
15:15
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 4,3 МЛН
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 40 МЛН
Function/Waveform Generator || DIY or Buy
11:01
GreatScott!
Рет қаралды 384 М.
How To Generate Pulse Using  Arduino
14:08
Coding With Alfred
Рет қаралды 30 М.
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 645 М.
12-bit DAC Arduino MCP4725 How To Use It - Stable Voltage Reffrence
11:21
High frequency signal for ultrasonic transducer from Arduino
22:57
Ultrasonic Advisors
Рет қаралды 20 М.
Arduino PWM Frequency Tweaked to 1kHz
17:00
Julian Ilett
Рет қаралды 15 М.
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 4,3 МЛН