This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tutorials:learn:arduino:lesson1.html [2010/10/20 18:12] daigo created |
tutorials:learn:arduino:lesson1.html [2016/01/28 18:05] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
- | Ah yes, it is finally time to make your Arduino do something! We're going to start with the [[http://en.wikipedia.org/wiki/Hello_world|classic **hello world!**]] of electronics, a blinking light. | + | Ah yes, it is finally time to make your Arduino do something! We're going to start with the **[[http://en.wikipedia.org/wiki/Hello_world|classic hello world!]]** of electronics, a blinking light. |
Line 12: | Line 12: | ||
These instructions mostly show Windows software. Except when indicated, the software (should be) identical on all platforms. Linux will be added once I figure out how to get it working (yay) | These instructions mostly show Windows software. Except when indicated, the software (should be) identical on all platforms. Linux will be added once I figure out how to get it working (yay) | ||
- | |||
==== Do you have everything you need? ==== | ==== Do you have everything you need? ==== | ||
Line 25: | Line 24: | ||
+ | <class table> | ||
|[[http://www.ladyada.net/images/parts/attiny2313dip.jpg|{{ http://www.ladyada.net/images/arduino/diecimilla.jpg?nolink&350x263 |}}]]|Assembled Arduino board, preferrably a Diecimila (or whatever the latest version is) |[[http://www.adafruit.com/index.php?main_page=product_info&cPath=17&products_id=50|Adafruit]]|$35| | |[[http://www.ladyada.net/images/parts/attiny2313dip.jpg|{{ http://www.ladyada.net/images/arduino/diecimilla.jpg?nolink&350x263 |}}]]|Assembled Arduino board, preferrably a Diecimila (or whatever the latest version is) |[[http://www.adafruit.com/index.php?main_page=product_info&cPath=17&products_id=50|Adafruit]]|$35| | ||
- | |[[http://www.ladyada.net/images/parts/10MHzcermosc.jpg|{{ http://www.ladyada.net/images/arduino/usbcable.jpg?nolink&350x263 |}}]]|USB Cable. Standard A-B cable is required. Any length is OK. |[[http://www.adafruit.com/index.php?main_page=product_info&products_id=62|Adafruit]] | + | |[[http://www.ladyada.net/images/parts/10MHzcermosc.jpg|{{ http://www.ladyada.net/images/arduino/usbcable.jpg?nolink&350x263 |}}]]|USB Cable. Standard A-B cable is required. Any length is OK.|[[http://www.adafruit.com/index.php?main_page=product_info&products_id=62|Adafruit]] \\ Or any computer supply store |$5| |
- | + | ||
- | + | ||
- | + | ||
- | Or any computer supply store | + | |
- | + | ||
- | + | ||
- | + | ||
- | |$5| | + | |
|{{ http://www.ladyada.net/images/parts/clear5mmled_t.jpg?nolink&200x85 |}}|LED - **Optional** \\ Nearly any LED is OK, as long as it has two wire legs. This part is only required for **NG rev c** Arduinos (and maybe other older ones). Diecimila Arduino's have this part 'built-in' |Any electronics supply store |$1| | |{{ http://www.ladyada.net/images/parts/clear5mmled_t.jpg?nolink&200x85 |}}|LED - **Optional** \\ Nearly any LED is OK, as long as it has two wire legs. This part is only required for **NG rev c** Arduinos (and maybe other older ones). Diecimila Arduino's have this part 'built-in' |Any electronics supply store |$1| | ||
- | + | </class> | |
- | + | ||
Line 63: | Line 52: | ||
Extract the package onto the Desktop | Extract the package onto the Desktop | ||
- | {{ http://www.ladyada.net/images/arduino/winsoftextract.jpg?nolink&441x384 |}} \\ Windows | + | {{ http://www.ladyada.net/images/arduino/winsoftextract.jpg?nolink&441x384 |}} |
+ | <class center>Windows</class> | ||
- | {{ http://www.ladyada.net/images/arduino/macsoftextract.jpg?nolink&416x90 |}} \\ Mac OS X | + | {{ http://www.ladyada.net/images/arduino/macsoftextract.jpg?nolink&416x90 |}} |
+ | <class center>Mac OS X</class> | ||
- | {{ http://www.ladyada.net/images/arduino/winsoftfiles.jpg?nolink&691x487 |}} \\ Windows | + | {{ http://www.ladyada.net/images/arduino/winsoftfiles.jpg?nolink&691x487 |}} |
+ | <class center>Windows</class> | ||
- | {{ http://www.ladyada.net/images/arduino/macosarduinopkg.jpg?nolink&785x443 |}} \\ Mac OS X | + | {{ http://www.ladyada.net/images/arduino/macosarduinopkg.jpg?nolink&785x443 |}} |
+ | <class center>Mac OS X</class> | ||
Line 77: | Line 70: | ||
Double click the Arduino software icon | Double click the Arduino software icon | ||
- | {{ http://www.ladyada.net/images/arduino/arduinoicon.jpg?nolink&221x129 |}} \\ Windows | + | {{ http://www.ladyada.net/images/arduino/arduinoicon.jpg?nolink&221x129 |}} |
+ | <class center>Windows</class> | ||
- | {{ http://www.ladyada.net/images/arduino/macarduinoicon.jpg?nolink&304x191 |}} \\ Mac OS X | + | {{ http://www.ladyada.net/images/arduino/macarduinoicon.jpg?nolink&304x191 |}} |
+ | <class center>Mac OS X</class> | ||
To open up the workspace | To open up the workspace | ||
Line 107: | Line 102: | ||
Next, its time to configure the Serial Port (also known as the COM Port). Go back to [[http://www.ladyada.net/learn/arduino/lesson0.html|lesson 0]] to remind yourself of which port it is. On a PC it will probably be something like **COM3** or **COM4**. On a Mac it will be something like **tty.usbserial-xxxxx** | Next, its time to configure the Serial Port (also known as the COM Port). Go back to [[http://www.ladyada.net/learn/arduino/lesson0.html|lesson 0]] to remind yourself of which port it is. On a PC it will probably be something like **COM3** or **COM4**. On a Mac it will be something like **tty.usbserial-xxxxx** | ||
- | {{ http://www.ladyada.net/images/arduino/winportselect.jpg?nolink&386x220 |}} \\ Windows port selection | + | {{ http://www.ladyada.net/images/arduino/winportselect.jpg?nolink&386x220 |}} |
+ | <class center>Windows port selection</class> | ||
- | {{ http://www.ladyada.net/images/arduino/macselectport.jpg?nolink&590x311 |}} \\ Mac port selection | + | {{ http://www.ladyada.net/images/arduino/macselectport.jpg?nolink&590x311 |}} |
+ | <class center>Mac port selection</class> | ||
This preference is saved so you only have to set it once, the program will remember next time it's run. | This preference is saved so you only have to set it once, the program will remember next time it's run. | ||
Line 206: | Line 203: | ||
==== Video of all steps ==== | ==== Video of all steps ==== | ||
- | Here is a video showing the timing of the steps described so far. | ||
- | |||
- | <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="565" height="624"><param name="movie" value="../../media/arduino/arduinoblink.swf"><param name="quality" value="high"></object> | ||
- | |||
- | |||
- | |||
- | |||
+ | Here is a [[http://www.ladyada.net/media/arduino/arduinoblink.swf|video]] showing the timing of the steps described so far. | ||
==== Insert LED (NG Arduinos) ==== | ==== Insert LED (NG Arduinos) ==== | ||
Line 241: | Line 232: | ||
- | + | {{bliptv>386213}} | |
- | <script type="text/javascript" src="http://blip.tv/scripts/pokkariPlayer.js?ver=2007082501"></script><script type="text/javascript" src="http://blip.tv/syndication/write_player?skin=js&posts_id=386213&source=3&autoplay=false&file_type=flv&player_width=320&player_height=240"></script><img title="Click to play" alt="Video thumbnail. Click to play." src="http://blip.tv/file/get/Ladyada-DiecimilaArduinoBlinkUpload640.flv.jpg" border="0" title="Click To Play" /> \\ Click To Play<script type="text/javascript"> play_blip_movie_386213();</script> | + | |
Line 248: | Line 238: | ||
If you have an NG arduino, make sure the LED is inserted as indicated before. Here is a video of the entire uploading process. Right after I press the Reset Button I start the sketch upload. There is a short wait while the software prepares to transfer the sketch. Then the two small orange lights blink, indicating the sketch is being transfered. When its done, there is a 7 second delay until the sketch starts. | If you have an NG arduino, make sure the LED is inserted as indicated before. Here is a video of the entire uploading process. Right after I press the Reset Button I start the sketch upload. There is a short wait while the software prepares to transfer the sketch. Then the two small orange lights blink, indicating the sketch is being transfered. When its done, there is a 7 second delay until the sketch starts. | ||
- | <script type="text/javascript" src="http://blip.tv/scripts/pokkariPlayer.js?ver=2007082501"></script><script type="text/javascript" src="http://blip.tv/syndication/write_player?skin=js&posts_id=386202&source=3&autoplay=false&file_type=flv&player_width=0&player_height=0"></script><img title="Click to play" alt="Video thumbnail. Click to play." src="http://blip.tv/file/get/Ladyada-ArduinoNGUploadBlink905.mp4.jpg" border="0" title="Click To Play" /> \\ Click To Play<script type="text/javascript"> play_blip_movie_386202();</script> | + | |
- | + | {{bliptv>386202}} | |
If you don't get a blinking LED, make sure you put the part in the right way, in the correct holes, and perhaps try a different LED as it may be bad. | If you don't get a blinking LED, make sure you put the part in the right way, in the correct holes, and perhaps try a different LED as it may be bad. |