Arduino square wave generator up to 1Mhz

  Рет қаралды 13,665

Mirko Pavleski

Mirko Pavleski

Күн бұрын

This is a simple square-wave generator that basically uses the TimerOne library allow you to generate a PWM signal at pin 9 in the range from about 5Hz to 1 Mhz, and you can adjust the duty cycle from 0 to 100%. Device is very simple to build and consist only a few components:
- Arduino nano microcontroller
- LCD Display
- Three pull Up resistors
- and three push buttons
The pulse generator has the ability to adjust the pulse repetition period using the buttons connected to digital inputs 6 and 7 of the Arduino. 13 input pin allows you to adjust the duty cycle. The duration and duty cycle readings are displayed on the first row of the LCD 16 × 2 indicator, and the frequency readings are displayed in the second row. The minimum step for adjusting the pulse repetition period is 1 μs, so the frequency will change discretely, for example, 1 μs is 1 MHz, 2 μs is 500 kHz, 3 μs is 333.333 Hz, and so on, and as the frequency decreases, the smoothness of its adjustment increases. This is quite impractical at higher frequencies but that is the price of simplicity. In one of my previous videos I have described the construction of a similar device but with the help of a specialized DDS chip that does not have these shortcomings and has a much larger range, but is more complex to build
To visualize the output signal I use small single- channel oscilloscope. Finally, the device is mounted in a suitable box, and it is another useful tool in the electronics laboratory.
Instructions, schematic diagram and Arduino Code at: www.hackster.i...
Visit my KZbin Channel for more Projects , DIY and How To Make videos:
/ mirkopavleskimk
by mircemk
SUBSCRIBE LIKE AND SHARE !!!!
Thanks for your Support !
Song: Jarico - Landscape (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Video Link: • Video
#NoCopyrightMusic #VlogMusic #VlogNoCopyrightMusic

Пікірлер: 29
@grigoreman7198
@grigoreman7198 Жыл бұрын
Hi, nice project! Where can we find the code? The project no longer exists on the arduino page. Thank you!
@MirkoPavleskiMK
@MirkoPavleskiMK Жыл бұрын
www.hackster.io/mircemk/diy-simple-square-wave-generator-up-to-1mhz-231375
@grigoreman7198
@grigoreman7198 Жыл бұрын
Thank you, you are a great man.
@electronic7979
@electronic7979 3 жыл бұрын
Nice project
@RAVI171175
@RAVI171175 3 жыл бұрын
Very well made & nice project my friend. Keep it up with the DIY stuffs.
@botak333
@botak333 3 жыл бұрын
Hi sir it can measure freq on 20-220volt sir??
@alinbcu
@alinbcu 3 жыл бұрын
what is the maximum current suported? I think this cant be used for nothing, just educational purpose, but is good for kids to learn about waveforms, electronics and so on
@karthikr3044
@karthikr3044 2 жыл бұрын
Hi ,I was making the same and everything is working fine but the plus and minus buttons are not working,the duty button is working,I have checked so many times but I'm stuck.Can anyone suggest some solutions?
@freemaxnetpro9091
@freemaxnetpro9091 2 жыл бұрын
Thank you verry much sir, pleas help me How to adjust the frequency from 100 Hz to 1 kHz only.
@sonusingheee537
@sonusingheee537 2 жыл бұрын
Sir i am trying to generate 20khz square wave on pin 9 and 10 using timerone library but condition is that pin 10 pwm is inverted to pin 9 as a synchronous way please tell me
@deadadam666
@deadadam666 Жыл бұрын
thanks , ive been looking for a way to get a 1mhz wave out of arduino to use as an input for a swinsid chip
@KishanRandika
@KishanRandika 2 жыл бұрын
Hello , How can get this frequency as the audio output ?
@michaeljoshuamanallo1742
@michaeljoshuamanallo1742 2 жыл бұрын
Sir can you make it on a I2c LCD display??
@yassinegaming9398
@yassinegaming9398 Жыл бұрын
Sir can you make a frequency receiver exactly like this But receives frequencies wirelessly and gives the value of the existing frequency?
@sanoops3555
@sanoops3555 9 ай бұрын
What you mean by frequency receiver ?
@poskoz
@poskoz 2 жыл бұрын
Hello i would like to make a pfm pulse frequency generator, basically a logic function generator is it possible with arduino nano?
@MirkoPavleskiMK
@MirkoPavleskiMK 2 жыл бұрын
Yes, it is possible with Arduino nano
@poskoz
@poskoz 2 жыл бұрын
@@MirkoPavleskiMK thanx a lot, have you got a link where i can learn how to do it?
@luigimorelli6444
@luigimorelli6444 3 жыл бұрын
Very nice!
@ymara426
@ymara426 3 жыл бұрын
1t hz
@spectravet4542
@spectravet4542 3 жыл бұрын
Nice simple project, thank you. You mention a video in which you describe a similar device using a DDS chip, but I've not been able to find it. Can you tell me which one it is, please?
@MirkoPavleskiMK
@MirkoPavleskiMK 3 жыл бұрын
kzbin.info/www/bejne/q6HbkpRohtuErtE
@spectravet4542
@spectravet4542 3 жыл бұрын
@@MirkoPavleskiMK Thank you!
@kelvynroberts9506
@kelvynroberts9506 3 жыл бұрын
I really appreciate your project and is inspiring me to develop a new one but in this one I pretend to amplify this square wave coming from arduino... Do you have any idea of an Amplifier which can ride signals in the range of 10Hz - 45KHz? Any idea??
@MirkoPavleskiMK
@MirkoPavleskiMK 3 жыл бұрын
You can use a standard audio amplifier for this purpose
@kelvynroberts9506
@kelvynroberts9506 3 жыл бұрын
@@MirkoPavleskiMK thank you.... but according to my understanding (correct me if I'm wrong) the transistors contained on the standard audio amplifier has poor gain on frequency above 20KHz ... however for my propose I need a stable gain on all range... have you ever test any standard for high frequency?
@MirkoPavleskiMK
@MirkoPavleskiMK 3 жыл бұрын
@@kelvynroberts9506 Unfortunately you are right when it comes to higher frequencies, and I have not tested
@bert32
@bert32 3 жыл бұрын
What scope do u use
@MirkoPavleskiMK
@MirkoPavleskiMK 3 жыл бұрын
www.aliexpress.com/item/33021370646.html?spm=a2g0s.9042311.0.0.27424c4dpXRCv2
How to create very fast square pulses with Arduino ( up to 4 MHz with Arduino NANO, UNO, & MEGA2560
18:03
Function/Waveform Generator || DIY or Buy
11:01
GreatScott!
Рет қаралды 386 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 24 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
Simple STM32 Frequency meter from 1Hz to 30 MHz (Arduino IDE)
8:58
Mirko Pavleski
Рет қаралды 6 М.
DIY simple 20 kHz Arduino Oscilloscope on Nokia 5110 Lcd display
6:59
Mirko Pavleski
Рет қаралды 4,9 М.
DIY 12-Mhz Function Waveform Generator
6:30
Et Discover
Рет қаралды 22 М.
NE555 Square Wave Signal Generator 10Khz-200khz | pcb
4:46
Easy One
Рет қаралды 44 М.
Waveform Generator using Arduino
3:37
Circuit Digest
Рет қаралды 80 М.
Super simple Arduino Frequency Counter
11:11
learnelectronics
Рет қаралды 99 М.
AD9833 Programmable Waveform Generator
3:58
Anas Kuzechie
Рет қаралды 35 М.