Académique Documents
Professionnel Documents
Culture Documents
Blinky Fish
by marc.cryan on August 7, 2010
Table of Contents
step 1: Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
step 2: Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
http://www.instructables.com/id/Blinky-Fish/
License: Attribution Non-commercial Share Alike (by-nc-sa)
It connects to digital pins 9-13 and ground. My hope is that this will be useful to people that want to play with writing code for the Arduino, but don't want to build a little
circuit every time they want to test something out.
I'm including all the files you would need to build your own. I am also offering these for sale. I figure this is the only real way to find out if this is useful to other people.
I have only a few boards right now, but they are not quite right. I have included a hack towards the end of this instructable.
Here is a small web-store I've set-up. The name is stupid, but easy to remember and spell.
www.PoopDirect.com
http://www.instructables.com/id/Blinky-Fish/
step 1: Parts
Here are the parts!
-PCB -
-3 - LED's
-Resistors
-Push button
-Right angle header
step 2: Tools
Tools -
-Solder
-Soldering iron
-Cutters (?)
-The soldering is pretty easy, so I never had to use the flux pen.
- To make anything happen, you will also need an Arduiono 2009 and a computer with the Arduino IDE.
- I like to work on a white peice of paper, it keeps me from loosing parts. It is also a good if you are taking photos.
http://www.instructables.com/id/Blinky-Fish/
step 3: Build - Resistors
Resistors R2,R3, and R4 are all 330ohm resistors. (orange, orange, brown).
[NOTE: the resistors shown in the picture are the wrong values - sorry about that, I was distracted by taking the pictures.]
-That is it!
If it doesn't work (the resistor falls right out or something), then you can just do it again.
After you do the soldering, you just need to clip the leads off. Diagonal cutters are best, but you can use nail clippers or scissors, or whatever.
http://www.instructables.com/id/Blinky-Fish/
step 4: Build - LED's
Now put on the LED's
LED's are one way, the short lead is negative. This side of the LED is usually flat or notched or something like that. On the PCB the flat side of the circle is for the
negative lead.
http://www.instructables.com/id/Blinky-Fish/
step 5: Build - Button
The botton only fits in one way (I think).
You can just pop it in and solder. The leads are sort of springy and bent, so that they stay in place nicely while you solder.
http://www.instructables.com/id/Blinky-Fish/
step 6: Build - Header
This is a right angle header. Straight headers are more typical. This is just like those, but bent at a 90deg angle.
It is a little tricky to hold the header in place while you solder, but you can do it!
If some of the hole are a little off center, then the header will stay in place nicely. Of course, the person designing the board would have to think of this ahead of time....
so well, here we are.
http://www.instructables.com/id/Blinky-Fish/
step 7: HACK - cut a trace
Well, if you've got one of the first few boards then you need to hack a little to get everything to line up correctly withe the Arduino. ( I forgot about the resistor and LED
attached to pin 13 on the Arduino board).
You can cut the trace between the button and R1 with an exacto knife.
http://www.instructables.com/id/Blinky-Fish/
step 9: Attach to Arduino
Plug the Blinky fish into the Arduino. The header pins are labeled to go with the Arduino pins. Make sure that ground goes to ground and not to Ref. It is an easy
mistake (that got me confused for a little while).
Once this is loaded on the Arduino all 3 LEDs should blink together. If you hold down the button they well blink one at a time.
// blinkyFish_2
//Pins
int ButtonState = 0;
void setup() {
pinMode(Led1, OUTPUT);
pinMode(Led2, OUTPUT);
pinMode(Led3, OUTPUT);
pinMode(Button, INPUT);
digitalWrite(PullUp, HIGH);
}
void loop() {
ButtonState = digitalRead(Button);
if (ButtonState == HIGH){
digitalWrite(Led1, 1);
delay (1000);
digitalWrite(Led1, 0);
digitalWrite(Led2, 1);
delay (1000);
digitalWrite(Led2, 0);
digitalWrite(Led3, 1);
delay(1000);
digitalWrite(Led3,0);
delay(1000);
}
else{
digitalWrite(Led1, 0);
digitalWrite(Led2, 0);
http://www.instructables.com/id/Blinky-Fish/
digitalWrite(Led3, 0);
delay(1000);
digitalWrite(Led1, 1);
digitalWrite(Led2, 1);
digitalWrite(Led3, 1);
delay(1000);
}
}
http://www.instructables.com/id/Blinky-Fish/
step 13: Design and Fabrication files
Here are all the files.
The *.brd and *.sch files can be opened and edited in Eagle.
The zipped files are the files you would send to get the board made. These are called "gerber files" (which means "the files you send to get the board made").
Gerber files are sort of like PDF's. They are hard to edit, but can be read by read by most people and won't get messed up when tranfered from program to program.
You can look at the gerbers in Eagle or with a gerber viewer such as VeiwMate (from Pentalogix (i think)). Each file shows one layer of the board.
These are:
-Bottom layer ( or Secondary copper) - shows the traces on the bottom of the board
-Bottom Solder Mask - Shows the exposed copper on the bottom of the board.
-There is also a Mechanical layer which is the outline of the board. I suppose this is called "Mechanical" because it is cut with mechanical machine. Unlike the rest of the
layers, which are etched, screened or whatever.
-- So that is that.
Once I fix these boards (so they don't need the cut and extra wires), I'll post the new files and order some new boards.
-Marc
File Downloads
Related Instructables
http://www.instructables.com/id/Blinky-Fish/
Advertisements
Comments
7 comments Add Comment
Thanks!
-Marc
http://www.instructables.com/id/Blinky-Fish/