Assignment 7 due 10/24

Assignment 7 due 10/24 — EricSinger @ 12:38 am

– Looking Outwards: Find three examples of Arduino projects that impress you and write 100 words about each. (Hint: Check the Make Magazine blog.)
– Arduino: Make a “bar graph” display using 5 LEDs. Use one 2-pin sensor of your choice. Set it up as in class (remember, you will need a fixed resistor). Read it in via pin A0. Use 5 digital output pins to drive 5 separate LEDs. As you increase the sensor through its range (bend it, darken it, press it, etc. depending on which kind you use), have the LEDs come on one by one until all 5 are on at the max position.

So, using a bend sensor as an example:
– no bend means no LEDs on
– a little bend means 1st LED on
– a little more means 1st and 2nd LEDs on
– etc.
– max bend means all 5 LEDs on

Hint: You’ll be testing the sensor value that you read against different threshold values for each LED and turning them on accordingly. Another hint: you won’t need to use the map() function.

Put a video on the blog of your working circuit and email me your code (don’t post it).

A few notes:
– Please *email me your code*. Annoying to have to hunt people down for it.
– When you post your video to the blog, categorize it under “Assignment 7 due 10/24.” Put your Looking Outwards posts under “Looking Outwards”


No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2022 CMU Electronic Media Studio II, Fall 2011, Section D | powered by WordPress with Barecity