fertbooth.blogg.se

Mcwhorter arduino while loop
Mcwhorter arduino while loop












  1. #Mcwhorter arduino while loop how to
  2. #Mcwhorter arduino while loop update
  3. #Mcwhorter arduino while loop full
  4. #Mcwhorter arduino while loop plus
  5. #Mcwhorter arduino while loop series

The change for the slower clock rate is noted below.

mcwhorter arduino while loop

With this information the algorithm in the DDS sketch needed to be changed to accommodate the clock rate. I emailed its creator at and got an immediate response – “Hi Tom, The DDS-60 uses a 30 MHz oscillator module, and the AD9851 chip has a 6x multiplier inside it that knocks the effective sample rate up to 180 MHz Hope this helps! 73’s, George - N2APB”. The 9851 chip in the DDS 60 looked to be compatible with the Arduino to output a sine wave at the desired frequency. Richhard Visokey’s wiring diagram has the connections to the AD 9850. Pine 8 is the input Vcc (I recommend 9vdc) (Pin 5 is a 5vdc output) – not used unless you need 5vdc Pin 1 (left starting pin 1) to Arduino pin 9 The hookup for the DDS 60 is slightly different then noted on the Visokey write-up. This required some changes I needed to make with the "sketch."

#Mcwhorter arduino while loop plus

I use my SB104 exclusively on 40 meters so I wanted my readout on the LCD display to show the 40 meter frequency – not the actual 5MHz plus DDS output. Once you get the sketch to “compile” you can go to work changing it to fit your objective. The two modules operate at different clock speeds so the sketch has to be changed as noted herein. The DDS 60 has a built in op-amp which enhances the sine wave output to a workable level. Its peak-to-peak voltage is too low to activate the Heathkit’s mixing circuit, and will not work without adding a buffer to amplify the output. One of the first problems I experienced was the very low output with the AD9850. To produce a sine wave from the digital Arduino output requires a module like the DDS 60 or the AD9850. You can search for this on the internet or let me know and I will send you the file ( Be sure you upload “rotary.h not “rotary.H”. I found a missing file on my first compiling effort, which was “rotary.h”. YouTube videos on Arduino libraries will better explain the process ( ). The error messages printed out if the “compile” fails will show you the missing ones. Often others are missing so you have to find and upload them to your library. The common files like LiquidCrystal.h and EEPROM.h will be in your library. They are downloaded with the Arduino software. Libraries are necessary to take care of many routine functions. These lines tell the Arduino to find the codes in your computer’s library so they will be included in the sketch. For example, the first lines in the Visokey sketch are: Most of these are related to files missing in your library. It can be frustrating with different “error” messages impeding the process.

#Mcwhorter arduino while loop how to

One of the first lessons learned was how to "compile" the "sketch." This feature in Arduino’s software converts the code to machine language. To start off I downloaded Richard’s sketch. Going on line at is a good starting point to get familiar with the platform. The UNO is like a small computer and can be programed to do amazing things. The SB104 project is a good example of using open source sketches modified to achieve a specific objective. The article got very few reviews so updating it to a broader venue seemed worthwhile. QEX is a great technical publication but has a small subscriber base. The Uno and needed LCD’s are also available at reasonable prices.Īfter I finished the project I wrote an article that was published by QEX. In sourcing the parts the Arduino Uno was easily the first purchase on eBay. Putting together a DDS using his "sketch" for my SB104 looked doable. In searching the many Arduino libraries I found Richard Visokey’s Arduino DDS project ( ).

#Mcwhorter arduino while loop update

I wanted to update my old Heathkit SB104 by stabilizing the drift with its internal VFO. You can’t hurt anything so “why not” – its free! Playing around with these is a good way to improve your skills.

#Mcwhorter arduino while loop full

The Arduino libraries are full of all kinds of projects, many of which are for ham radio applications.

#Mcwhorter arduino while loop series

Paul McWhorter has a series for beginners that is easy to follow and will give you the basics ( ). A good starting point is YouTube where there are basic instructions like the "blinking led" sketch.

mcwhorter arduino while loop mcwhorter arduino while loop

The challenge is it obtain enough knowledge to change the code (“sketch” in Arduino vernacular). Arduino code is all open source and most of the heavy lifting is done by experienced code writers above most of our pay grades. Diving in with both feet can be exciting and not difficult.

mcwhorter arduino while loop

See Select board and port in Arduino IDE for more information.Thinking you can “code” Arduino as a beginner can be daunting. Make sure you have the right board selected in the board selector or the Tools > Board menu. Note: For other compilation errors, see If your sketch doesn’t compile. When you verify or upload a sketch, the error Compilation error: exit status 1 may appear in the console and in a pop-up notification.














Mcwhorter arduino while loop