This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:learn:arduino:lesson3.html [2010/10/22 14:51] daigo |
tutorials:learn:arduino:lesson3.html [2016/01/28 18:05] (current) |
||
---|---|---|---|
Line 12: | Line 12: | ||
|{{ http://www.ladyada.net/images/parts/clear5mmled_t.jpg?nolink&200x85 |}}| \\ LEDs \\ For this lesson, a red, green and blue LED are best. Make sure you get a "5mm" or "3mm" LED, with two legs, as shown in the example image. "Ultrabright" LEDs (1000 mcd rating or higher) are preferred \\ |Any electronics supply store | | |{{ http://www.ladyada.net/images/parts/clear5mmled_t.jpg?nolink&200x85 |}}| \\ LEDs \\ For this lesson, a red, green and blue LED are best. Make sure you get a "5mm" or "3mm" LED, with two legs, as shown in the example image. "Ultrabright" LEDs (1000 mcd rating or higher) are preferred \\ |Any electronics supply store | | ||
|{{ http://www.ladyada.net/images/parts/resleft_t.gif?nolink&61x87 |}}{{ http://www.ladyada.net/images/parts/rBrown_t.gif?nolink&10x87 |}}{{ http://www.ladyada.net/images/parts/rBlack_t.gif?nolink&10x87 |}}{{ http://www.ladyada.net/images/parts/rRed_t.gif?nolink&10x87 |}}{{ http://www.ladyada.net/images/parts/spacer_t.gif?nolink&8x87 |}}{{ http://www.ladyada.net/images/parts/rGold_t.gif?nolink&10x87 |}}{{ http://www.ladyada.net/images/parts/resright_t.gif?nolink&66x87 |}}|Three 1KΩ Resistors (brown black red gold) \\ Any values from 300 Ω to 2KΩ are probably OK. | \\ Any electronics supply store \\ $1 \\ | | |{{ http://www.ladyada.net/images/parts/resleft_t.gif?nolink&61x87 |}}{{ http://www.ladyada.net/images/parts/rBrown_t.gif?nolink&10x87 |}}{{ http://www.ladyada.net/images/parts/rBlack_t.gif?nolink&10x87 |}}{{ http://www.ladyada.net/images/parts/rRed_t.gif?nolink&10x87 |}}{{ http://www.ladyada.net/images/parts/spacer_t.gif?nolink&8x87 |}}{{ http://www.ladyada.net/images/parts/rGold_t.gif?nolink&10x87 |}}{{ http://www.ladyada.net/images/parts/resright_t.gif?nolink&66x87 |}}|Three 1KΩ Resistors (brown black red gold) \\ Any values from 300 Ω to 2KΩ are probably OK. | \\ Any electronics supply store \\ $1 \\ | | ||
- | |{{ http://www.ladyada.net/images/pshield/miniproto_t.jpg?nolink&339x250 |}}|Arduino Prototyping Shield with tiny breadboard \\ | \\ [[http://www.adafruit.com/index.php?main_page=product_info&cPath=17&products_id=51|Adafruit \\ ]]$15 \\ + \\ [[http://www.adafruit.com/index.php?main_page=product_info&cPath=18&products_id=65|Adafruit]]$7.50 \\ | | + | |{{ http://www.ladyada.net/images/pshield/miniproto_t.jpg?nolink&339x250 |}}|Arduino Prototyping Shield with tiny breadboard \\ | \\ [[http://www.adafruit.com/index.php?main_page=product_info&cPath=17&products_id=51|Adafruit]]$15 \\ + \\ [[http://www.adafruit.com/index.php?main_page=product_info&cPath=18&products_id=65|Adafruit]]$7.50 \\ | |
|[[http://www.ladyada.net/images/parts/breadboard-half.jpg|{{ http://www.ladyada.net/images/parts/breadboard-half.jpg?nolink&332x241 |}}]] | \\ Standard solderless breadboard \\ If you dont have a protoshield, this is a substitute| \\ [[http://www.adafruit.com/index.php?main_page=product_info&cPath=18&products_id=64|Adafruit]] \\ $5 \\ Many hobby shops and electronics stores will have these | | |[[http://www.ladyada.net/images/parts/breadboard-half.jpg|{{ http://www.ladyada.net/images/parts/breadboard-half.jpg?nolink&332x241 |}}]] | \\ Standard solderless breadboard \\ If you dont have a protoshield, this is a substitute| \\ [[http://www.adafruit.com/index.php?main_page=product_info&cPath=18&products_id=64|Adafruit]] \\ $5 \\ Many hobby shops and electronics stores will have these | | ||
|{{ http://www.ladyada.net/images/tools/100ftsolid_t.jpg?nolink&150x150 |}}| \\ Hookup Wire \\ Get 22 gauge solid-core wire in red, black and some other color. Make sure its //not// stranded wire! \\ |Any hardware store | | |{{ http://www.ladyada.net/images/tools/100ftsolid_t.jpg?nolink&150x150 |}}| \\ Hookup Wire \\ Get 22 gauge solid-core wire in red, black and some other color. Make sure its //not// stranded wire! \\ |Any hardware store | | ||
Line 357: | Line 357: | ||
- | <class white> | ||
<code> | <code> | ||
void loop() // run over and over again | void loop() // run over and over again | ||
Line 375: | Line 374: | ||
} | } | ||
</code> | </code> | ||
- | </class> | + | |
==== Full color adventures! ==== | ==== Full color adventures! ==== | ||
Line 403: | Line 402: | ||
delay(500); // waits for half a second | delay(500); // waits for half a second | ||
}</code> | }</code> | ||
- | <class center>You can just copy and paste this text into your Arduino software window.//</class> | + | <class center>//You can just copy and paste this text into your Arduino software window.//</class> |