Surrey BC
Offline
Jr. Member
Karma: 0
Posts: 52
Arduino rocks
|
 |
« on: June 28, 2010, 10:57:43 pm » |
I have recently purchased a class set of the Arduino Boards for my High School Engineering class. The programing is very simple for the students to understand. My end game is to use the chips for simple robotics. But before that i want to make a simple 10 LED display that the students can take home for cheap.
The Idea is that students program the chip then remove it and plug it in to their light display. Has any one done this before?
If not, I need to know a few basics.
Which pins hook up to the timing crystal?
What is the spec on the crystal?
Can the Arduino run on 9V? (Simple battery clips make 9V perfect)
Any way, i probably have more questions, But any input at this point would be great. 8-)
|
|
|
|
|
Logged
|
High School Engineering Teacher
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 56
Arduino rocks
|
 |
« Reply #1 on: June 28, 2010, 11:30:23 pm » |
Which pins hook up to the timing crystal?
What is the spec on the crystal? Not sure if this is exactly what you need, but take a look at this http://www.uchobby.com/index.php/2007/07/01/ardunio-breadboard/ for a minimum setup. Or you could buy one of these http://www.moderndevice.com/products/rbbb-kit and then duplicate the setup. Can the Arduino run on 9V? (Simple battery clips make 9V perfect) Yes. Look around here, I think there is a very recent thread talking about 9V hookup.
|
|
|
|
|
Logged
|
|
|
|
|
Middle of the Pacific
Offline
Full Member
Karma: 0
Posts: 129
|
 |
« Reply #2 on: June 28, 2010, 11:39:54 pm » |
What you basically want to do is create a dedicated arduino just for driving LEDS? I think a more efficient path would be to purchase/build/design an LED shield. That way you can still use the chip with oscillator and voltage regulator for other projects. If you still want the dedicated circuit then there are a ton of examples online for building your own. look up HACKDUINO http://www.instructables.com/id/Perfboard-Hackduino-Arduino-compatible-circuit/you will need a voltage regulator as the atmega 168/328 chip needs between 1.8 and 5.5 volts....7805 http://www.datasheetcatalog.org/datasheets/228/390068_DS.pdfThe usual timing crystal used is http://www.vishay.com/docs/35014/xt49s.pdfbetween pins 9 and 10. there are a few other things necessary to just plug in the chip, but they are all well documented in the many arduino schematics floating around. I would recommend just building the shield or using bread boards. In addition breadboard wiring is always a learning experience, especially when trouble shooting your rats nest ;D
|
|
|
|
« Last Edit: June 28, 2010, 11:43:43 pm by donkahones »
|
Logged
|
|
|
|
|
Surrey BC
Offline
Jr. Member
Karma: 0
Posts: 52
Arduino rocks
|
 |
« Reply #3 on: June 28, 2010, 11:44:22 pm » |
Thank you, that gets me closer.
I have also been looking at the pin configuration of the ATMEGA 328 chip, I am a little confused on which pins on he chip correspond to pins in the Arduino Software.
A basic schematic for how to hook up the Atmega chip in to a simple circuit would be ideal.
|
|
|
|
|
Logged
|
High School Engineering Teacher
|
|
|
|
|
|
Surrey BC
Offline
Jr. Member
Karma: 0
Posts: 52
Arduino rocks
|
 |
« Reply #5 on: June 28, 2010, 11:50:45 pm » |
Thank you Again. That instructable is perfect. I will draw up a schematic tomorrow.
|
|
|
|
« Last Edit: June 28, 2010, 11:51:59 pm by nobikes »
|
Logged
|
High School Engineering Teacher
|
|
|
|
Boston, MA
Offline
Edison Member
Karma: 0
Posts: 1024
wiblocks
|
 |
« Reply #6 on: June 29, 2010, 06:56:09 am » |
The specification for the crystal depends on the input voltage. For a 5V system most people use a 16MHz. For my 12V boards I use 12MHz. The ATmel specification recommends loading capacitance of 22pF or less. The 9V battery can power a 5V system but it is not very efficient. Most systems use a linear regulator which wastes 4/9 of the capacity. I make a low-cost ($12) Arduino compatible board (PICO1TR) and a matching LED matrix. You can check out the schematics which are in the datasheets. I "charlie-plex" the LEDs which minimizes the number of lines required. For 10 LEDs you would only need 4 lines. See the datasheets at http://wiblocks.luciani.org/PICO/PICO1TR-index.htmland http://wiblocks.luciani.org/PICO/PICO1TR-LED-L-index.html(* jcl *)
|
|
|
|
|
Logged
|
|
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3621
@ssh0le
|
 |
« Reply #8 on: September 12, 2010, 05:26:19 pm » |
Is the pin configuration on The Atmega 168 the same as the 328? yes The price of the 168 is cheaper then the 328 usually the same. the 168 might be nominally cheaper will the 168 work if i plug it in to my Duemilanove board yes Do I need a voltage regulator if i run 4.5volts from a pack of 3 AA batteries? no (though that does not leave a lot of wiggle room with discharging batteries and the voltage vs speed ratio) I have attached a Schematic of what i think will work. does any one see a problem with it? not off hand
|
|
|
|
« Last Edit: September 12, 2010, 05:32:25 pm by Osgeld »
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
0
Offline
Edison Member
Karma: 0
Posts: 1103
Arduino rocks
|
 |
« Reply #9 on: September 12, 2010, 05:35:04 pm » |
does any one see a problem with it? You should have a ground connection to pin 8..
|
|
|
|
|
Logged
|
|
|
|
|
Surrey BC
Offline
Jr. Member
Karma: 0
Posts: 52
Arduino rocks
|
 |
« Reply #10 on: September 12, 2010, 05:42:52 pm » |
Okay, I have added the ground off of pin 8. does this look appropriate? 
|
|
|
|
« Last Edit: September 12, 2010, 05:43:39 pm by nobikes »
|
Logged
|
High School Engineering Teacher
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25493
Solder is electric glue
|
 |
« Reply #11 on: September 13, 2010, 03:42:55 am » |
will the 168 work if i plug it in to my Duemilanove board Yes but change the board type in the tools menu. Remember you have to have a boot loader in the chip before you plug it in the board. Chips can either be bought with a boot loader ready loaded otherwise you are going to have to burn one in yourself with a programmer.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25493
Solder is electric glue
|
 |
« Reply #12 on: September 13, 2010, 04:48:37 am » |
Just been looking at your circuit again.
assuming 1.7V drop across each LED the across the resistor you have 5 - 1.7 = 3.3 volts across a 220R resistor gives you 15mA per LED. With 14 LEDs you have a total source current of:- 14 * 15mA = 210mA
Now the absolute limit for the current taken along the arduino supply pins is 200mA. Given it takes about 20mA to power the chip you are 30mA over the current where damage would be done. So best bet is just to up the resistors a tad say to 270R.
|
|
|
|
|
Logged
|
|
|
|
|
Surrey BC
Offline
Jr. Member
Karma: 0
Posts: 52
Arduino rocks
|
 |
« Reply #13 on: September 13, 2010, 10:44:06 am » |
Easy enough fix.
Thank you
|
|
|
|
|
Logged
|
High School Engineering Teacher
|
|
|
|
0
Offline
Edison Member
Karma: 0
Posts: 1103
Arduino rocks
|
 |
« Reply #14 on: September 14, 2010, 08:47:27 am » |
Or just have some green LEDs among them ...
|
|
|
|
« Last Edit: September 14, 2010, 08:47:52 am by mpeuser »
|
Logged
|
|
|
|
|
|