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.
It is possible to produce two square wave with out of phase parameter. How much frequency you want?
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.
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.
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.
Aswinth Raj
PermalinkWhat 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
- Log in or register to post comments
Joined August 16, 2016 1000Tuesday at 12:29 AM