3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

The arduino rider.

The arduino rider.
«
  • 100_4533.JPG
  • 100_4538.JPG
Okay, so recently I thought of an idea... why not make a knight rider program, and if it works ... make it look good and also make it on a circuit board? So that's what I did. I made a effective program for arduino that will simulate the Cylon/Night Rider lights.
So basically I made a program and a circuit.
uhh... so keep reading!


 
Remove these adsRemove these ads by Signing Up
 

Step 1Get the parts.

Get the parts.
«
  • 100_4538.JPG
  • 100_4540.JPG
  • 100_4539.JPG
For this project you will need..
- an arduino duemilanove (anything that is roughly the same (size, shape , pin layout, program support, etc.))
- the program (you can copy it from the text here, or if my link works)
- header connectors, that fit in any breadboard, arduino ,etc. (I got them @ frys)
- 5 red leds- at ~3V (I only had white 5mm) -------- Do not get the giant red "super bright" 1cm long leds.
They are too big and are less powerful, trust me I have them right here and the white ones in this instructable are much much better, and brighter.
- 220 ohm resistor (I used 330 ohm, close enough) ------ Actually 100 ohm ones are the best.
- a circuit board or peg board i used Radio Shack Dual PC board 276-148
- wire (maybe, i bent the pins of the leds, so I didnt need any)
- A computer that can program your arduino (duh!)
- Solder + Iron
Okay so lets build it!
« Previous StepDownload PDFView All StepsNext Step »
26 comments
Jan 12, 2010. 2:10 PMjamar3030 says:
I love this tutorial. I just bought an Arduino and I plan on making this my first project... past "hello world". Appreciate that you posted, thanks! Did you have your son/daughter draw the Arduino and schematic in step 2? Just kidding.
Jan 19, 2010. 10:05 AMjamar3030 says:
Ha, ha! Well, being that you are 13 and can make something like this, it isn't important for you to master drawing. Mastering electronics seems more pertinent. By the way, the project worked out perfect and was easier than I thought it would be. Thanks again.
Dec 28, 2009. 2:12 AMmathman47 says:
Good job.  Interesting code.  At first I thought you coulnd't code a counter, but your's is certainly an interesting take on the code.  I would imagine changing the time could have some interesting effects with POV?
Oct 12, 2009. 12:05 AMchosenone3 says:
Hi im going to buy an arduino soon i guess (just starting with mic's) and i would like to know how much output does it give when you wrote:

digitalWrite(pinled1, HIGH);

HIGH ? how much is the voltage and amperage

and how much is LOW
can you controll them with code or you have to do it hardware way ?
Oct 13, 2009. 11:00 PMchosenone3 says:
it think ill buy duemilinova if i spelled it correctly
Oct 14, 2009. 1:11 AMElectronMad says:
Well, if you are going to do BIG projects, I would say get aArduino Nano. If small stuff like this (Knight rider) a duemilinovewould be good, or if you want you could try out one that i had beforeits called, Seeduino, (from seeed studio depot) it has same functions,same pin layout as the duemilinove, Just the Atmel ATmega chip is SMD(surface mounted)

Good luck with with your arduino

Any questions? Feel free to ask!
Oct 14, 2009. 3:40 AMchosenone3 says:
so you're saying nano is better than duemilinove ?
Oct 14, 2009. 11:34 PMElectronMad says:
If you need lots of work space You should get the NANO, If you do smallstuff like Blinks and led chasers. The duemillinove is good. Theduemillinove is probably most used because it can have shields such asthe Ethernet shied, Proto Shield, Xbee shield.... and more. But nano isalways good for BIG BREADBOARDING AREA!

Good luck, Select wisely.


Any questions? Feel Free to ask!
Oct 13, 2009. 2:38 AMElectronMad says:
I can see that you are a begginer on the Arduino ( Not to worry, I even started like this ).

So this is the Answer to your question:

As you know, the arduino code goes like this ( the last bit )

void loop()                    
{
  digitalWrite(ledPin, HIGH);          
  delay(1000);                 
 
What (ledPin, HIGH) does not mean the voltage and power is high, it simply means that The Object you are powering is turned ON.


digitalWrite(ledPin, LOW);   
  delay(1000);                
}


Same with the (ledPin, LOW), Low just simply means that it is turned OFF.


Yea its pretty stupid, but its how it is programmed, Any question? Feel free to ask. In the meantime Have a look at this, it might help you. It will be able to tell you most of the stuff:

http://arduino.cc/en/Reference/HomePage



Oct 13, 2009. 6:24 AMchosenone3 says:
thanks for pointing it out :)
I will look at the reference when i will get an arduino in my hand ;]
the last question i want to ask is :
Is this c/c++ ?
if yes than can it be used with STL or any other libraries of c/c++

Oct 14, 2009. 1:09 AMElectronMad says:
Yes this is C++ and no it can be used with Some C++ librarys, but not many
Oct 13, 2009. 2:40 AMElectronMad says:
For the schematics, You could Use ~ExpressPCB~ (it also has schematic maker).
Aug 6, 2009. 4:43 AMhomunkoloss says:
I would recommend that you paint your schematics with eagle (www.cadsoft.de) or fritzing (www.fritzing.org). Both are free and platform independent.
Aug 11, 2009. 2:08 PMgeeklord says:
Here, I made one. I added resistors in the proper places too. The way you had them hooked up, you could only light up one or two at a time without burning out your LED's.
Sep 29, 2009. 7:33 PMgeeklord says:
Well, they'd draw too much current and would have shortened lives. I'm pretty sure that's how I've ruined a couple of my LED's.
Sep 19, 2009. 11:17 AMReCreate says:
Last time i checked...The arduino software already came with an example containing this... But other than than, Neat, Though i do have one unrelated question. Why is the image in the last step so high quality? how did you bypass the low quality jpeg conversion?
Sep 24, 2009. 4:45 PMReCreate says:
I didn't know the Arduino had a 23'rd and 34'th pin O_o
Sep 24, 2009. 11:53 PMReCreate says:
Erm...it doesn't really make sense, you mean that the light would change position by fading?
Sep 25, 2009. 10:37 PMReCreate says:
Oh OK thanks :D

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
3
Author:chrisapalo