Building an Arduino on a breadboard or circuit board

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Building an Arduino on a breadboard or circuit board

Postby chrisjpf33 » Thu May 03, 2012 2:40 pm

I have seen people commenting on various websites about how you can build an Arduino on a breadboard. Most of the circuitry is straightforward, but I have seen conflicting comments regarding the crystal oscillator. Adafruit uses a 3 pin ceramic resonator on the new MENTA board (what are the specs on this part anyway?). Other people use a crystal with two 22pF capacitors. Some people say that the crystal selection is critical (I didn’t know there were different types of crystals, just different frequencies). Some people say that they prefer 18pF caps. It all seem like it is more complicated that it has to be.

What is the best answer to selecting this(these) parts? I realize that there is a cost consideration, and well as the issue of physical space on the board, but for the sake of this post I am more focused on reliable function. What will work, what won’t, and why?

Thanks in advance for your advice.

Chris
chrisjpf33
 
Posts: 2
Joined: Fri Feb 10, 2012 10:00 pm

Re: Building an Arduino on a breadboard or circuit board

Postby adafruit » Thu May 03, 2012 3:09 pm

You can get specs for all the MENTA parts here, we selected these, use these in the MENTA and suggest these for reliable function.

http://ladyada.net/make/menta/parts.html
User avatar
adafruit
 
Posts: 10483
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Building an Arduino on a breadboard or circuit board

Postby floresta » Thu May 03, 2012 5:18 pm

What is the best answer to selecting this(these) parts?

What is the best car to buy?
Should I buy a GM product or a Toyota product?
Should I buy a Chevrolet or a Cadillac?
Should I buy a Toyota pickup truck or a Toyota sedan?
Should I buy a red sedan or a blue sedan?
Should I buy the sedan with or without a radio and a heater - oops I just gave away my age.

Don
floresta
 
Posts: 214
Joined: Thu Jul 31, 2008 9:27 am
Location: Western New York, USA

Re: Building an Arduino on a breadboard or circuit board

Postby adafruit_support_mike » Thu May 03, 2012 6:56 pm

Different kinds of crystals are cut in different shapes, so they resonate in different ways and have specific temperature, stability, or aging properties. The 'AT' cut is the most common, and the best advice for a beginner is "use what it says on the circuit diagram unless you know specifically why you need something else."

A crystal sitting on two capacitors is called a 'Pierce oscillator', and is the most common kind of crystal oscillator. The size of the capacitors has some influence on the frequency (stability, temperature response, etc), and some people will play with the values to get specific results. Again, the best advice for someone new is, "use the values from the circuit diagram until you know how to build something else."

Ceramic resonators are all-in-one devices. You plug 'em in, power 'em up, and watch 'em hum.

The big difference between crystal oscillators and ceramic resonators is frequency stability. Basically, crystals are really good.. a decent crystal oscillator's frequency will only drift from its average value by a few parts per million. A ceramic resonator will drift by about .5%. An RC oscillator (like the chip's built-in clock) usually drifts by about 5%.

The big question is "how much accuracy do you need?" Crystals are good for communications gear and timekeeping, because the whole point of the game there is to be stable, predictable, and reliable. For a microcontroller that isn't doing hard-real-time work, a ceramic resonator (or the chip's internal oscillator) should be just fine.

If you're working on a breadboard, you don't need much accuracy.. or perhaps more correctly, you won't get much accuracy.

Breadboards are notorious for having lots of parasitic capacitance, and for causing all sorts of problems at high speeds. Analog design guru Bob Pease used to call them "white blocks of pain". Putting a crystal oscillator in a breadboard would be like trying to use an electron microscope in the back of a pickup driving down a gravel road.

Honestly, you'd be just as well off to forget about an external oscillator entirely and use the one built into the chip, at least as long as you're working in the breadboard. If you find yourself needing more frequency stability than the chip can provide for itself, you'll have to switch to another construction technique to get it.
When you void a product warrany, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 1322
Joined: Thu Feb 11, 2010 1:51 pm

Re: Building an Arduino on a breadboard or circuit board

Postby pylon » Mon May 07, 2012 9:43 am

Please keep in mind that you have to change the bootloader if you wanna use the internal oscillator (good tutorial: http://www.instructables.com/id/uDuino-Very-Low-Cost-Arduino-Compatible-Developme/step5/OR-internal-oscillator-board-build/) and choose "Lilypad Arduino" as your board type in the Arduino IDE.
pylon
 
Posts: 14
Joined: Tue Apr 24, 2012 10:27 am

Re: Building an Arduino on a breadboard or circuit board

Postby CharlieD » Tue May 08, 2012 1:38 pm

Here is a picture of a "bare-bones" breadboard I use quite a bit - can't be simpler, and programming is via an FTDI cable directly from the GUI.

Charles
Attachments
2012-05-08-156 (Large).jpg
2012-05-08-156 (Large).jpg (85.5 KiB) Viewed 1285 times
CharlieD
 
Posts: 25
Joined: Thu Mar 11, 2010 1:14 pm
Location: Natal Midlands, South Africa


Return to Arduino

Who is online

Users browsing this forum: adafruit_support_bill, DennyP, Google [Bot], mibignistinly, VeleBookSot and 12 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]