Difference between revisions of "CSC231 Lab 4"
(→Lab Report) |
(→Tutorials) |
||
Line 20: | Line 20: | ||
===Tutorials=== | ===Tutorials=== | ||
− | Follow the very nice tutorial pages | + | Follow the very nice tutorial pages created by[http://ladyada.net/bio/index.html Limor], a young engineer/geek with talent: the tutorials are located at http://ladyada.net/learn/arduino/ : |
* [http://www.ladyada.net/learn/arduino/lesson1.html Lesson 1]: Skip the first part, and go to the '''Startup!''' Section. | * [http://www.ladyada.net/learn/arduino/lesson1.html Lesson 1]: Skip the first part, and go to the '''Startup!''' Section. |
Revision as of 07:31, 26 September 2008
CSC 231 Lab # 4
© D. Thiebaut, 2008
Arduino
You will find information on how to setup the Arduino software on a Mac and on a Linux box [[CSC231 Links and Resources | here]. These represent the step I took to install the software on my machines. I didn't document installing under Windows as the Web has very good coverage of these steps.
Setup
- Boot your PC with the Ubuntu LiveCD which you will have received.
- Go to the /root folder, find the Arduino software and star the IDE
- Connect the USB cable to the computer, and the Arduino to the USB cable
Tutorials
Follow the very nice tutorial pages created byLimor, a young engineer/geek with talent: the tutorials are located at http://ladyada.net/learn/arduino/ :
- Lesson 1: Skip the first part, and go to the Startup! Section.
- Lesson 2. Do the whole lesson. Save to your memory stick whenever you are asked to save your sketch. Do the exercises at the end (and turn the lights off for Exercise 3!)
- Lesson 4. Do the whole lesson, and stop when you get to the Pythagorean party section. Just for kicks, check the section labeled Introduction to types, part 2, do you recognize anything? :-)
Wiki Page
- Go to the Student Wiki-Page portal for the class: http://tango.csc.smith.edu/classwiki/index.php/CSC231_Page
- Study the "A quick tutorial on the basic elements of a wiki page", and look at its code by editing it (don't modify anything)
- Create a new page starting with the 231a-xx link you will find on the portal page.
- If you feel confortable having your name and/or picture on the wiki page, add it/them. Remember that these pages are linked to my Smith Web sites, available to Web spiders and bots, and accessible (for reading) to anybody on the Web.
- Define several sections:
- A project section
- A project ideas subsection
- A demos and examples section
- A resource section, where you will collect links to sites you discover, and which contain good/useful/interesting information relating to this project.
- Any other sections, subsections, pictures, description you feel will enhance the information and navigation on your project page.
- A project section
- In the resource section, create links to the tutorials/lessons you just went through
- In the demos and examples section, copy/paste the code of the sketches you have created In the Arduino part of the lab.
- Add a picture of the Decemilia Arduino to your page (be efficient; don't upload a picture if it already exists in this mediawiki site!!!)
Lab Report
The lab report is the wiki page you just created, plus a list of project ideas in the project sections.
The report is due a week after the lab, next Friday
I would like you to do some research and think of ideas of simple projects you can build around the Arduino. The idea is to use the input/output ports of the Arduino chip and write an assembly language program that will monitor the inputs and control the outputs so that your project "does something interesting." :-)
You should also contact one person (not your instructor) about ideas of projects. We have many people on the Smith and Hampshire campuses doing research and in need of gadget for various projects (control, measurement, music, lighting, etc.) and part of your assignment is to locate one and get some ideas of something that they could use that would work with a few switches, leds, displays, and possibly servo motors.
The limitation, and the challenge, is that you cannot spend more than $20 on external parts! (the funds will come from the department)
Here are some ideas of mine, that can get you started.
- Connect the Arduino to an infra-red LED and write a program that will make the arduino send the same patterns of ON/OFF signals to the LED as remote controls do for TVs, and stereo systems. The project could be to design an intelligent remote control that could turn on and setup different stereo components of a home-theater system.
- Wire up a thermistor (resistor that changes resistance with temperature) to the Arduino and create a temperature sensor. The assembly program could be used to create a graph of the variation of temperatures over time.
- Wire up an LCD display to the Arduino and display information in real time on the parameter of some experiment.
- Use infrared diodes and infrared receivers to make two Arduinos communicate with each other