Wulfden FKit
Wulfden FKit
Preliminary - 09/15/2007
<http://www.wulfden.org>
ii |
Table of Contents
1 Parts Lists 1
Wulfden F-Kit Basic Development Package . . . . . . . . . . . . . . . . . . . 1
F-Kit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
5 Miscellaneous parts 5
Wulfden F-Kit
1. 1 Atmega 168-20PU Mouser 556-ATMEGA168-20PU
2. 4 0.1 uF monolithic capacitors (“104”) Mouser 80-C315C104M5U
3. 1 carbon film resistor 1 Kohm 1/8 w Mouser 299-1K-RC
4. 2 carbon film resistor 10 Kohm 1/8 w Mouser 299-10K-RC
5. 1 carbon film resistor 1 Megohm 1/8 w Mouser 299-1M-RC
6. 1/2 28 pin DIP socket or 2 14 pin DIP sockets Mouser 517-4814-3004-CP
7. 1 standard 5mm red LED
8. 1 n.o. pushbutton switch
9. 2 4.7-47 uF electrolytic capacitors Mouser 140-HTRL25V22-RC
10. 1 L4931CZ50 5v 200 ma voltage regulator Mouser 511-L4931CZ50-AP
11. 2 1N4001 diodes Mouser 625-1N4001-E3
12. 1 1.3 mmm coxial power jack DigiKey CP-2519-ND
13. 1 16 MHz ceramic resonator Mouser 520-ZTT1600MX
14. 2 red jumpers Mouser 517-951-00
15. 1 15 uH surface mount inductor DigiKey PCD1099CT-ND
16. 34 pins .100”pin headers, single row, snap-off Mouser 517-6111TG
17. 20 pins .100” pin headers double row - 2x7 and 2x3 Mouser 517-6121TG
18. 6 pins .100” pin headers, single row, right angle Mouser 517-5111TG
| Wulfden F-Kit Basic Development Kit
2 P3 - Wulfden/Modern Device
Serial Programming Adapter
LM7805
+ +
22 uF 22 uF 0.1 uF
The primary documentation for this controller is the document K107R3.PDF found
in the “/datasheets” sub-directory of the Arduino Resources disk, or in a link on
the webpage at <http://www.wulfden.org/k107/>
On the board shown above the three pins, from top to bottom are GND,
+5V, signal input. Input data is expected at 9600 baud (8n1), TTL True. With the
signal selection jumper set as shown above. If you move the red jumper to the
two pins immediately below the white connector and apply 5 volts and ground to
the appropriate pins. The display will auto generate a test string of characters.
To operate in normal mode connected to a TTL/CMOS level output pin place the
jumper back where it is shown in this picture, that is, on the two pins of the three
pin header closest to the reset button. If the device is used with an RS232C volt-
age level signal move the red jumper to the two pins of the three farthest from
the reset button.
(The K107 supplied with the Basic F-Kit Development Set may not have all the
parts show above.)
An arduino Clone |
5
1. 1
Miscellaneous components
For ease of viewing this is picture of the final prototype board. The production
board is identical except that it is white solder mask with black silkscreening
1. The primary reference for building the board is the Modern Devices documentation. The file is named
BB_Arduino_InstrRevC.pdf and is attached at the end of section 7 of this document
2. The board silkscreen has the part values listed. It all should be straight forward. the “104” refers to the
4 0.1 uF monolithic capacitors, they should be small and blue or yellow with a “104” on one of its sides.
3. The two polarized capacitors may be electrolytic or tantalum and of a value 4.7 uF to 47 uF. I am currently
supplying 22 uF.
4. The ‘crystal’ is a 3 pin 16 MHz ceramic resonator.
5. There is one surface mount part at 15 uH (not 10 uH on the silkscreen) inductor. It is located just above
pins 23-24 of the ATmega168. Melt a dab of solder on the left pad and slide the inductor from right to
left while touching the soldering iron to the solder, you may want to use a toothpick to steady and posi-
tion it. When it is properly placed remove the iron while holding the chip steady and let it cool for a few
seconds. then solder down the right side.
6. I suggest that you solder in all the components first, then the 28 pin (or 2 14 pin) socket for he CPU. Then
solder in the connectors located above the line of the ATmega168 CPU. Then decide what your configura-
tion will be for the data connections and solder in as appropriate.
7. Digital Pin 13 (bottom row second from right) has a ‘special’ status. If you place an LED with its anode
top to Pin 13 and its cathode to ground., when the bootloader initializes it will blink three times rapidly.
Further Arduino prepared chips supllied by Wulfden come with the sketch BlinkLED burnt in, so after the
initial bootloader blink and bootloader timeout, an LED so attached to Pin 13 will slowly blink on/off.
An arduino Clone |
8. In general, where instructions in Section 6 of this document disagree with the Modern Device
document, use the section 6 information/instructions.
9. The picture to the left represents the standard bread board configuration, using exactly
the parts contained in the kit; a 2x7 pin header is inserted into the component side and
soldered from the solder sde to the pair of GND and +5 volt buses associated with the ana-
Start assembling the board with the smallest, lowest profile • Make certain that polarized components, such as diodes,
components first. That way taller components will not get in LED, voltage regulator, and larger electrolytic caps are
the way when trying to install smaller components. Also when inserted in the correct direction. Note that the long lead on
parts are inserted, and the board is flipped over to solder, the LED is positive.
components will tend to stay in the board better, if similar, • Mount the two 47 uF electrolytic capacitors, carefully
low-profile components are inserted first. observing the polarities and orientation of each. The long
For beginners that have never done electrical soldering before leads on the capacitors are positive.
see the Soldering section before starting. There are a few tips • Insert the IC socket (not the chip) into the board, taking care
for multiple-unit "power builders" too. to align the notch with the notch on the board silkscreen.
2
For larger and multi-pin components, such as the chip socket perform the following operation. Hold the chip exactly
and header pins, there is a little trick that may be helpful perpendicular to a table and press down until the all the legs
to get them mounted neatly. have a 90 degree angle to the chip top. Flip, repeat, and
Solder in one pin only, or in the case of the socket, two you're ready to put the chip into the socket.
diagonal corner pins. Then flip the board over to inspect it. • Next hook up a LED and a 1K series resistor on pin 13.
If the component is not mounted tightly down on the board, Boot up the Arduino application and try downloading the
simply put a little pressure on the component with your blinking light program. Push the reset button on the board
index finger while reheating the soldered pad(s) with the and click the download icon at about the same time.
soldering iron, this will get the part mounted down flush
before you solder in the other pins. • If your board doesn't seem to work, see the troubleshooting
guide on page 6.
• Solder in the power jack.
Powering the BBB Arduino.
• Solder in the header pins. The board is made to be easy to
customize for particular applications. The following There are two options for powering the Arduino Board.
instructions are for the most standard orientation for header The USB cable can supply 5 volts to the board. How much
pins, but feel free to mount (or omit them) as you wish. In current the FTDI 232R cable can provide is an open question.
some installations it may be more robust and reliable to The USB standard calls for available current to be controlled
solder wires directly to the board. by software and the cable's manufacturer quotes 50 mA as
the amount of available current. (This limit is from the
• The seventeen digital output header pins gets inserted into expected behavior of the USB interface and not any electrical
the bottom of the board and soldered on the top, as do the limit from the cable.)
two pins, at front right, that are designed to power the
breadboard. Mount these pins last after the others are mounted In practice, a Mac and a PC I tested were both able to
on top. provide 500 mA, which is as high as I went in my testing.
Since I can't get access to any of the software interaction, it
• All other header pins get inserted into the top of the board is impossible for me to know if the cable's software "asks"
and soldered on the bottom. Using right-angle header pins for higher current limits or the USB ports just generously
for the USB-to-Serial cable connector makes the cable provides more without being asked. I would guess the latter.
convenient to connect.
USB is a convenient option for powering your board
• Finally, mount the resonator (marked XTAL on board). It because it eliminates other wires and batteries and it should
can be inserted either way but it's a good idea to insert it be viable for many projects that only involve interfacing
with the label showing. sensors, lighting LED's, or communicating with a
• Hobbyists and prototypers often omit this step, but it's a laptop/desktop computer.
good idea to clean the solder flux off your board with a For circuit experiments and construction you are probably
toothbrush and isopropyl (not denatured) alcohol. Scrub and better off using a 5 - 9 volt power adapter. This will take the
rinse with clean alcohol until the board looks flux-free. Dry strain off your laptop battery and protect more expensive
it off a little with a paper towel or rag and have a good systems in the case of short circuits and the like. For powering
inspection of your solder joints, to make sure pins are not small DC motors or solenoids especially, you will be much
bridged (shorted) with solder, and that all the solder joints better off using an external power supply.
look shiny, smooth, and cover the pads completely.
Questionable solder joints may be fixed simply by reheating The board contains a 5 volt low-dropout regulator. In the
with the soldering iron. case of an accidental short circuit, the voltage regulator on
the board will limit the current draw to about 300 mA. This
• Add the shorting clip to the power selection header in the should protect the power supply although the regulator will
desired position, and the J1/J2 shunt (see below). get very hot. The tipoff to a short circuit will be the LED
Testing your BB Arduino pilot light going off, and of course, a hot regulator, if you put
• Put the USB / EXT shorting clip on the power selector pins. your finger on it.
Power up the board, either with the programming cable or J1 / J2 Shunt or jumper
an external supply and make sure that the pilot light goes J1 or J2 is an option that sets how the BB Arduino is
on. If not, disconnect the power right away, and consult the connected to the two breadboard bus power pins on the right
troubleshooting section. Do a check with a multimeter for side of the board.
5 volts at the power pins to the left end of the digital
breadboard pins. Use J1 in these cases:
• If all seems well, disconnect the power, and insert your J1 jumper is used to power for the breadboard power-
Atmega 168 chip into the socket, taking care to align the rail bus comes through the Arduino LDO voltage regulator.
notch on the chip with the notch on the socket and on the Use this if you want to power your breadboard from your
board silkscreen. Chips come from the factory with the legs Arduino adapter, and the adapter is between 5-9 volts. Most
splayed, and the chip will be much less fuss to insert if you users will probably want this option, unless you have DC
motors running on the breadboard.
3
Bare-Bones Arduino module with header pins set up for breadboard use. There are
several options for the header pins depending on the project requirements.
47 uf 25 V
iron markings and manner. The negative side
color may vary of the capacitor is marked.
solder On circuit boards and
,1 ufd schematics the positive side
(104) negative is is always marked. The longer
Place the inductor on the pad, hold it down by laying an Exacto knife ceramic marked on lead on the component is
or needlenose pliers on top of it, and heat the pad, (do not touch the (not polarized) capacitor always positive however.
inductor with the soldeing iron). Solder will rapidly flow onto the pad body
and inductor, lift the soldering iron immediately. This will hold the positive lead
47 ufd
inductor down, touch the other pad for a second with some solder electrolytic cap.
is longer
and your soldering iron, and you're almost done. Just reheat the first (polarized)
side quickly to insure a good solder joint. LED
Don't worry if the inductor is not on perfectly straight, the electricity LED's are diodes which emit light. They are polarized like diodes so
can't tell the difference. Don't overheat it either, it's small and will insert them in the correct direction.
solder quickly. If it's really crooked, you can position it by quickly and
schematic symbol
alternately heating opposite ends and pushing gently with the soldering
anode cathode
positive lead
solder pool to short pads if not using inductor is longer
Resonator
If you don't want to fuss with the tiny inductor, just leave it out and
solder up the pads as shown above. No other Arduino boards include The 16 Mhz ceramic resonator acts as a calibrated oscillator for the
it although the Atmega 168 datasheet recommends it, and the reduction BBB. As you can see from the schematic, it contains a crystal element
in analog noise that it provides is fairly minor. and two small capacitors. It's symmetrical, so you can't put it in
backwards, but it is a good idea to put it in so that you can read the
label.
schematic symbol
16.00M
Resistors
1k (1000 ohms) brown-black-red
10k (10,000 Ω) brown-black-orange
1M (1,000,000 Ω) brown-black-green
schematic symbol Voltage Regulator
tolerance band: gold = 5% The voltage regulator is an integrated circuit which will limit higher
resistors are not polarized, meaning it doesn't matter input voltages to 5 volts. It will also limit the current flow in case of
which end goes where short circuits. The electronics industry calls the physical form an IC
is packaged in a "package" or "case", the actual IC is always a small
chip embedded somewhere in the plastic. The voltage regulator
provided may vary by number but is in a TO-92 case.
Diodes schematic symbol
If you need to have more regulated power, to power a lot of high
powered LED's on a breadboard, for example, then, your board will
anode cathode anode cathode accommodate a TO-220 package regulator, such as the LM2937
listed in the parts list, or the popular 7805. Just remember to insert
it backwards as shown in figure 1.
Diodes act as electrical "one-way" valves. Electricity flows in the
Make sure you get the TO-92 regulator inserted in the correct
direction of the arrow, but not the other way. They are polarized. Stripe
orientation. It is not symmetrical so match the part outline on the
is negative (cathode end). Think of the stripe on the diode as the
board with the regulator shape.
stripe in the schematic. Get the stripe oriented the correct way on the
board, or the project is almost guaranteed not to work.
TO-92 TO-220
USB EXT
+5V
G
AR
A5 FTDI TTL-232R cable
A4
A3 BARE-BONES
BOARD Rev. C
10 PWM
A2
11 PWM
3 PWM
5 PWM
6 PWM
9 PWM
0 RX
1 TX
A1
+5V
12
13
G
G
2
7
8
A0
+5V
TX
RX
Bare-Bones Board
Please note that the TX and RX labels refer to the cable's labeling, not the
chip's. The TX label at the programming connector is electrically connected
to the Arduino's RX pin (0) and the cable's RX pin is connected to the
Arduino's TX pin.
DIGITAL IN/OUT
Resistor to match D9
photoresistor under AVCC 15
+5V J1 .1 20 14 D8
"middle" illumination level 15
ufd D7
ATMEGA8 or ATMEGA168
LDO uH 13
VCC
12 D6
V.R. 7 D5
Power Select
11
USB EXT
Radio Shack 6 D4
Shielded Audio Cable 1k D3
5
47 .1 47 D2
ufd ufd ufd 4
10k .1ufd D1
Hookups for sensors. Resistive sensors 3
D0
LED 2
are shown but Arduino analog inputs can LED
1 reset
be used with any sensor designed for a GND
Shield GND A5
FTDI TTL-232R
8 28
ANALOG INS
voltage output. CTS# GND
cable port
Signal to A0 to A5 .1ufd
analog inputs Released under Creative Commons ShareAlike License 3.0
http://creativecommons.org/licenses/by-sa/3.0/
Bare-Bones Board Arduino Schematic
diode in backwards (disconnect power supply right away) distributed under Creative Commons ShareAlike License 3.0
http://creativecommons.org/licenses/by-sa/3.0/
power supply connections reversed - check external supply
with a multimeter
Hardware Causes:
Atmega168 in backwards or not seated properly (check for
pins that have "escaped the socket"
Atmega168 not programmed with bootloader
bad cable
drivers not installed on PC - Check Arduino->Tools->Serial
Port
solder joint at cable connector or pins 2& 3 (check for shorts
or bad (solder joints) on all pins, reheat all solder joints
wrong resonator value
wrong resistor across resonator (1M)
Procedure: if you have an oscilloscope, check for signals
across resonator pins and on RX line during download.
General "Cure-Alls":
check orientation on all polarized parts, V.R., caps, diodes,
V.R., socket and chip.
check values of resistors
Reheat all solder pads on bottom of board, look for bridges
(shorts) on chip pins
clean PCB with toothbrush and isopropyl alcohol
7
Electrical Soldering for Beginners It is a good idea to clean the solder flux off your board
Use a high-quality soldering iron with the sharpest point with a toothbrush and isopropyl (not denatured) alcohol, when
you can find. It should be rated between 15 and 25 watts. you are done with your board. Most fluxes when left on the
board for extended periods of time, will corrode pcb pads and
Keep the soldering iron tinned (coated with solder) at all traces. Additionally, fluxes are not perfect insulators, so can
times. The tip should look slivery and shiny. It is important to affect the electrical operation of your circuit.
do this as soon as a new soldering iron gets hot.
Splash a little alcohol on the board and scrub with a
Wipe your soldering iron tip off on a wet sponge, or a copper toothbrush. Rinse with clean alcohol and repeat until the board
"scrubbie", to keep it clean and shiny. Do this whenever the tip looks flux-free. Dry it off a little with a paper towel or rag and
stops looking shiny or has too much solder buildup on it. have a good inspection of your solder joints, to make sure pins
Use either leaded or "no-lead" solder but be aware no-lead are not bridged (shorted) with solder, and that all the solder
solder is a little harder to use for beginners, and makes solder joints look shiny, smooth, and cover the pads completely.
joints that are slightly less shiny than leaded solder. Questionable solder joints may be fixed simply by reheating
with the soldering iron.
Work in a room with some ventilation. There is a tiny bit
of lead in solder fumes but the flux fumes are more of a health- Power Soldering for Multiple-Kit Builders: or How to put
hazard than the lead. Jameco sells a nice soldering iron / carbon together 10 BBB kits on Saturday and still have time to meet
filter combination for under $100. your friends.
Heat the pad for about a second, then apply solder to the Additional items required: Piece of foam rubber - antistatic
heated pad or leads, not the soldering iron. After the solder melts pink foam is ideal, small alligator clips.
and "grabs" the pad, continue heating for another second. We insert parts in groups and don't bend any leads to hold parts
If you haven't gotten the solder to grab after about 4 seconds in. Once the board is flipped for soldering, the foam holds the
let the joint cool down before trying again. Too much heat can components agains the board. We put the boards together in
ruin electronic components, but most beginners err on the side 4 steps.
of too little heat ("cold" solder joints). If the solder joint looks Step 1: mount the inductor, covered on page 4. You can get it
lumpy, or if the solder doesn't completely cover the pad, the straight by quickly and alternately heating either end and gently
solder joint needs more heat. Just reheat it again until you see moving it.
the flux around it "simmer" a bit, and the solder grabs the pad
and smoothes out. Step 2: Insert the resistors, diodes, reset switch, LED and small
(104) caps. Don't bend the leads. Cover the parts with the foam
and flip the whole board, then solder it. If you are worried that
a part may not be seated down against the board apply some
pressure to the board while heating one pin.
Step 3: Cut the leads from the last step. Insert all the remaining
parts except the 17 pin header and 2 pin header. If you have
alligator clips, clip the programming header and the power jack
lead soldering iron to the board with them, you could also try this on the other
headers if you have a lot of clips handy - the small ones are
better .
Put the foam on top of the board and flip the whole mess so
pad
foam is now on bottom and board is upside down. Tack down
solder one pin only on headers and socket. Solder in all pins on
electrolytic caps, resonator and parts held in with clips. (You
could also inspect them first for correct fit) Flip the board to
inspect "fit" on headers and socket and adjust by heating with
pressure from index finger. A thimble might be useful if you
haven't burned out all the nerves in your index finger soldering,
as we have. Flip and finish soldering.
Step 2: Insert the 17 pin and 2 pin header on bottom. Tack,
inspect, straighten if necessary and solder.
cold solder joint good solder joint
(not enough heat)
• smooth meniscus
• shiny
• covers pad
An arduino Clone | 11
The hack
Solder one end to the RTS pin, which is the rightmost pin in
the photo.
The next step, if you want to get rid of the wait, is to send
back your chips or reprogram them yourselves. If you are
doing a lot of Bare-Bones work, this might be the time to
purchase a AVRISPmkII, so you can burn your own chips.
They're about $40 from Digikey.
I'll be happy to reprogram any of the chips I've sold in the Windows Users:
last year with the new bootloader. Just send them in with
You may need to set a parameter with your serial port to get
postage for me to get them back to you. Make sure you
the serial port to produce the required signal.
send them in foam or in a chip tube so they won't be
harmed in the mail. Device Manager - USB Serial Port - Port Settings - Advanced
button - Set RTS On Close
http://www.moderndevice.com/Diec_Hack.html Page 1 of 2
The Shoppe at Wulfden
<http://www.wulfden.org>