Vous êtes sur la page 1sur 12

Home Sign Up!

Browse Community Submit


All Art Craft Food Games Green Home Kids Life Music Offbeat Outdoors Pets Photo Ride Science Tech

Blinky Fish
by marc.cryan on August 7, 2010

Table of Contents

License: Attribution Non-commercial Share Alike (by-nc-sa) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Intro: Blinky Fish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

step 1: Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

step 2: Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

step 3: Build - Resistors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

step 4: Build - LED's . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

step 5: Build - Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

step 6: Build - Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

step 7: HACK - cut a trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

step 8: Hack - Add a wire . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

step 9: Attach to Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

step 10: Test - With Arduino! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

step 11: Board Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

step 12: Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

step 13: Design and Fabrication files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

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)

Intro: Blinky Fish


Assembly instructions for an add-on board for the Arduino.

It has some LED's and a button.

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).

R1 is 1K (brown, black, red).

[NOTE: the resistors shown in the picture are the wrong values - sorry about that, I was distracted by taking the pictures.]

Through hole components are pretty easy to solder.

Here are the steps:


-Find the right resistor
-Put the leads in the holes
-Bend the leads out so the part doesn't fall out
-Flip the board over
-If the resistor falls out, but it back in
-Turn the soldering iron on and wait for it to warm up
-Put the soldering iron at the joint (between the lead and the silver circle)
-Wait a little bit
-Then touch the solder to the other side of the joint (away from the solder)
-Wait for the solder to melt and go all around the circle

-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.

The soldering is the same.

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.

Now isn't that clever!

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.

Look at the picture below to see which way it goes.

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.

step 8: Hack - Add a wire


The next hack is to add a wire on the back of the board.

This goes from R1 to header pin 12.

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).

step 10: Test - With Arduino!


Here is a simple test program to see if everything is working.

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.

If it doesn't work check some stuff.


-Is the Blinky Fish board plugged into the right pins on the Arduino?
-Do the soldered joints look okay?
-Are the resistors right? (R2,3,4 are the same R1 is different)
-Maybe an LED is in backwards? (make sure the flat side (or notch) on the LED is towards the tail end of the fish)

//****ARDUINO CODE *******

// blinkyFish_2

//Pins

int Led1 = 11;


int Led2 = 10;
int Led3 = 9;
int Button = 12;
int PullUp = 13;

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);

}
}

step 11: Board Layout


I laid out the board using Eagle.

step 12: Schematic


Here is the schematic for the board.

This is before the hack.

ADD HACKED SCHEMATIC

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:

-Top Overlay (also called SilkScreen) - this is the white graphics


-Top Layer (also called Primary copper) - this these are the traces that you can sort of see on the top side of the board.
-Top Solder Mask - Circuit boards are acutally yellowish, they are painted green (or black or red or whatever) with a dielectric ink (insulator). This keeps the copper
traces insulated and keeps the solder from running all over when assembling the board. This file shows every where that the green stuff does not cover. That is, it shows
the shiny silver parts.

-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.

Thanks for looking!

-Marc

File Downloads

Blinkey_3eyed_Fish_X01.sch (26 KB)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Blinkey_3eyed_Fish_X01.sch']

Blinkey_3eyed_Fish_X01.brd (10 KB)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Blinkey_3eyed_Fish_X01.brd']

Blinkey_3eyed_Fish_X01.zip (21 KB)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Blinkey_3eyed_Fish_X01.zip']

Related Instructables

Peeing Man The Dawm by


Charliplexed Arduino Led
Christmas Tree (slideshow) by ZrvZ
Marc's entries Dice by
for my Cubby by QS's Blinkie Control a marc.cryan LED Cube and
to Davuzz11
sydkahn Thingie by qs RepStrap with Arduino Lib by
Sparkfun/Ponoko/GeekDad
Processing by Contest gzip
marc.cryan (slideshow) by
marc.cryan

http://www.instructables.com/id/Blinky-Fish/
Advertisements

Comments
7 comments Add Comment

abbtech says: Aug 15, 2010. 2:44 PM REPLY


Cool looking board!

w0rm5 says: Aug 13, 2010. 5:44 AM REPLY


That seemed cool till now, but what´s the use of making something small and fun for kids if it has to be attached to an arduino board?

marc.cryan says: Aug 12, 2010. 10:14 AM REPLY


I started a web page to sell stuff - it is www.PoopDirect.com

It needs some work, so if you have questions please send me a note.

I'm planning to update it quite a bit tonight.

Thanks!
-Marc

joerice01 says: Aug 12, 2010. 6:55 PM REPLY


New domain name perhaps?

mikeasaurus says: Aug 12, 2010. 10:50 AM REPLY


reminds me of this guy....

kelseymh says: Aug 11, 2010. 10:35 PM REPLY


This is excellent! Detailed, clear pictures, and the option of actually making it or letting you do the work :-) I only noticed one thing which needs fixing: On
Step 3, you tells that the resistors are all "##K" :-)

marc.cryan says: Aug 12, 2010. 10:12 AM REPLY


Thanks - done and done!

http://www.instructables.com/id/Blinky-Fish/

Vous aimerez peut-être aussi