Using any sensor you like (a switch is okay) and any actuators you like (LEDs are okay) build something that counts events as detected by the sensor. For example, you could build a mat that counts the number of times you jump on it, and lights an LED brighter as you jump on it more. Or, you could use several LEDs to indicate the count – the more LEDs that are lit, the higher the count. Choose any sensors and actuators you like – and feel free to build this into a first exploration toward a future project. Bring to class on Tuesday to demonstrate.
The pulsing LEDs started giving me a headache while I was learning the tutorials. I then started thinking about how I could write something smoother and thus be gentler on my nogin. After looking around and finding something on MAKE (always do), I was able to see how they created gradual increases/decreases in light. Moreover, I spent much more time than I had expected to finding stuff and fixing code, which I guess was the point of the tutorials and getting to know the Arduino. Here’s a video of it in action:
int count = 0; // Sets up a counter for loops
int intredPin = 11; // Red LED connected to digital pin 11
int greenPin = 10; // Green LED connected to digital pin 10
int bluePin = 9; // Blue LED connected to digital pin 9
void setup()
{
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
void loop()
{
for (count = 0 ; count <= 255 ; count -= 5) // Count up by 5 to gradually increase steps
I forget when or where I saw the video for this but I still think it’s an interesting idea. It’s an automatic door that opens just enough for you to get through. In words that sounds somewhat terrible but the pic does a better job at promoting itself. Sorry the site’s all in Japanese: it says that by not allowing for any excess open space, this allows for better insulation and security of the building as well as help to keep bugs out.
I think this makes the building feel more alive. Similarly, what if lights turned on and off depending on where you were? What if the elevator knew where you were going, or knew that you were coming and came to get you? What if my house made coffee for me since it’s 2AM but I’m still working on figuring out my project so I’m probably going to be up and need to be productive for a few more hours?
For my very preliminary final project idea, I was thinking about embedding LEDs and pressure sensors under each fret of each string. The lights could indicate the proper fingering for a note or chord or maybe entire song tabs in memory. The sensors would pick up the chord being played and save those in memory for review or analysis via computer. I’m wondering if it would be possible to indicate the actual fingering (as in which finger) instead of just the fret? And the lights would be color-coded by string. The strings would also have LEDs & sensors to indicate/detect when played. Maybe it could even indicate if it’s to be played as an up- or down-note or muted or by which finger (if no pick).
Jet pointed out that it would be helpful for instruments like fiddles where positions aren’t defined by frets, and in dealing with infinite scale it may be possible to use [finger] skin conductivity on a sensor surface that ran the length of each string to detect position.
I like this idea (and will probably use it if successful) except for the fact that it’s a guitar just with lights and sensors. I’d really like to make something that’s either very entertaining or very interesting, maybe both. What would really be fantastic is if I could make a hollow mechanical robot hand that I could wear like a glove that would interface with a guitar and position my hand appropriately. But mimicking the human hand to that degree would be incredibly difficult, I think.
I’d still like to make something physical/mechanical.
ps. please forgive me for any incorrect guitar jargon or music terminology. i just don’t know them.