Fastest Most stable Arduino signal generator possible.

nathan.andrinoid

Fastest Most stable Arduino signal generator possible.
«  »Last edited
Hello all, I have been a quite member of the experimenter community. I have been thankful for what everyone has shared over the years. I though I would give back by sharing the best Arduino signal generator possible.

I am including my small custom terminal app java that listens to the data streaming from the serial port of the Arduino to display the frequency.

You can load the attached hex file with the install of your arduino IDE.  It will use the embedded avrdude software from the arduino IDE.

if you write a .bat file like I did you can load it with the following command (given you pick the right port number. You can you the arduino  software or my terminal app to see the list of ports.

C:\Program^ Files^ ^(x86^)\Arduino\hardware\tools\avr/bin/avrdude -C"C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -carduino -PCOM4 -b115200 -D  -Uflash:w:BestSignalGenerator.hex

look for the location of the avrdude.exe and the avrdude.conf in your arduino install and change the path to your path. Note the ^ symbol is only need to go before a space if you are writing your command out in a .bat file. 

You can compile your own executable jar from my open source code at the following location. It is a JavaFX Eclipse project.

https://github.com/nathanAndrinoid/TerminalComm/tree/master/TerminalComm/src/ArduinoSigGen

or you can install the javaSE 8 or later runtime and use the jar I am attaching.

You can see me make little demo on YouTube.


https://www.youtube.com/watch?v=X_4NNo0Cl3s
Re: Fastest Most stable Arduino signal generator possible.
« Reply #1,  »
I almost forgot to mention that the analog read pin A0 is for duty cycle, pin A1 is for fine adjustment of frequency, A2 is for medium adjustment of frequency, and A3 is for course adjustment of frequency. I used 10k but 5k variable resisters will work. With the center pin on read pins and one end to ground and the other to reference voltage of the board.

Matt Watts

Re: Fastest Most stable Arduino signal generator possible.
« Reply #2,  »
Excellent work Nathan!

When I finally get my lab built, remind me to design you a nice board to plug into the Arduino and post it to OSH Park for people to take advantage of.


And I fully agree--I've never seen an Arduino produce such a nice signal before.  Let me guess, you wrote everything in low-level assembly language.  :-)

haxar

Re: Fastest Most stable Arduino signal generator possible.
« Reply #3,  »Last edited
Quote from Matt Watts on February 5th, 06:49 PM
And I fully agree--I've never seen an Arduino produce such a nice signal before.  Let me guess, you wrote everything in low-level assembly language.  :-)
Apparently, written in Java. I don't see the source for the compiled .hex file.

nathan.andrinoid

Re: Fastest Most stable Arduino signal generator possible.
« Reply #4,  »Last edited
@Matt Watts - If you can design a circuit board for a custom arduino shield I would want to have one that is a cross between an old project where I add some functionality to the USB chip the UNO board. I added in a terminal display. I want to add my frequency display to a mini LCD shield with variable resistors. I am not sure if I would use the same LCD as my last project.

Yes, every bit of it was explicitly written with assembly commands. I agonized over the sequences and the techniques I implemented off and on for years.
Re: Fastest Most stable Arduino signal generator possible.
« Reply #5,  »
@haxar - I added the source assembly code. You can see notes of mine when I was counting clock cycles and lining  up cycles and checking things.

haxar

Re: Fastest Most stable Arduino signal generator possible.
« Reply #6,  »
Quote from nathan.andrinoid on February 5th, 11:30 PM
Yes, every bit of it was explicitly written with assembly commands. I agonized over the sequences and the techniques I implemented off and on for years.
Oh ok.

Lynx

Re: Fastest Most stable Arduino signal generator possible.
« Reply #7,  »
Stellar work Nathan, appreciate it :thumbsup:

~Russ

Re: Fastest Most stable Arduino signal generator possible.
« Reply #8,  »
Just fantastic.  Thank you for sharing. 

~Russ