Arduino Nano Function Generator

Jo's picture
Jo

Offline

Joined: Dec 06, 2019

Replies: 2
Arduino Nano Function Generator
December 9, 2019 - 6:59pm

So I saw the Circuit Digest tutorial on making a function generator with the Arduino Nano, but I am trying to modify it where it has an A and B pulse (out of phase, both square wave). I have some ideas but am not sure if it would work so I would appreciate any suggestions.

Aswinth Raj's picture

Offline

Joined: Aug 16, 2016

Replies: 951
two sqaure pulse with arduino?
December 9, 2019 - 9:13pm

What is your idea? Only if you explain it people here will be able to validate it.

If you are trying to just make square wave at two different pins of Arduino with different frequency and duty cycle then yes it is possible with Arduino. But there are limitation with how much frequency you can achive 

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 176
Yes you can
December 9, 2019 - 10:18pm

It is possible to produce two square wave with out of phase parameter. How much frequency you want?

Jo's picture
Jo

Offline

Joined: Dec 06, 2019

Replies: 2
Function Generator
December 13, 2019 - 9:42pm

Up to 26k Hz, and 90 degrees out of phase.

Debasis Parida's picture

Offline

Joined: Aug 22, 2019

Replies: 109
Get two square wave output from Arduino nano
December 9, 2019 - 11:08pm

Hi Jo, Yes you can absolutely get two square wave outputs from arduino.Simply program a specific pin to a get a square wave A at a specific frequency.You can do it by using tone() function in arduino.After that, just invert the signal using a transistor logic gate circuit and get the other inverter signal B.

Jo's picture
Jo

Offline

Joined: Dec 06, 2019

Replies: 2
Arduino A and B Pulse Function Generator
December 11, 2019 - 7:31pm

Sorry, I should have mentioned that I am wanting to use it as an encoder. For frequency, I want it to be adjustable up to 26k Hz.

Muhammad Umar's picture

Offline

Joined: Apr 09, 2020

Replies: 55
Waveform Generation
April 29, 2020 - 8:26pm

For creating two different waveform outputs, you can generate with Arduino. It can be done using a very common library named as tone (), used for generating waveforms by just programming Arduino specific pin to generate waveform. And for generating the other waveform of inverted version of first, you can implement inverter using 7404 NOT gate IC or make your own inverter using TTL transistor logic. I've used this technique in one of my hobby projects and got technical support from SSLA team during this project.