Laura March
  • Home
  • About
  • Resume
  • Portfolio
  • Infographic
  • Publications
  • Contact
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

Arduino

February 16, 2012/0 Comments/in class, disruptive technology, projects, school

One of my classes this semester (Design Studio) focuses on learning particular technologies. I recently finished the Arduino section and wanted to share it!

Arduino is a small computer (an open-source single-board microcontroller) that works with flexible, easy-to-use, and inexpensive hardware and software. It is intended to be used by artists, designers, and hobbyists to create interactive objects or environments.

My Project

After completing introductory exercises that controlled LED lights, I became interested in using the Arduino to regulate sounds. I found a few tutorials online that used different accessories to make noise through the microcontroller, particularly one that used a potentiometer to regulate pitch. While I really liked this idea, I thought the design and code I found online was far too complicated for such a simple task. Using other project tutorials (controlling the speed of a LED light, coding a song through a speaker), I pared down the original coding to match a simpler layout. The final result included a small Piezo speaker attached directly to the Arduino board and a potentiometer connected to the computer through a breadboard.

Controlling a Light with a Potentiometer

Light/Potentiometer Code

Coding a Musical Tune

Musical Code

Controlling a Tone with a Potentiometer

Original Tone Adjustment Code

My Code
/*

Simple Tone Adjustment with Potentiometer

*/
// set pin numbers:
const int speakerPin = 11; // the number of the Piezo speaker

const int sensorPin = 2; // the number of the potentiometer
// variables will change:

int sensorValue = 0; // the value read from the pot

int noteValue = 0; // gets converted to a “note”

void setup() {

pinMode(speakerPin, OUTPUT); // set the speaker’s pin for output

}
void loop(){

sensorValue = analogRead(sensorPin); // get the pot’s value

noteValue = ((((1024 – sensorValue) / 1024.0) * 959) + 956); // convert

digitalWrite(speakerPin, HIGH);

delayMicroseconds(noteValue);

digitalWrite(speakerPin, LOW);

delayMicroseconds(noteValue);

}

Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail
https://lauramarch.com/wp-content/uploads/2015/06/LM_Logo.png 0 0 lauramarch https://lauramarch.com/wp-content/uploads/2015/06/LM_Logo.png lauramarch2012-02-16 04:23:002012-02-16 04:23:00Arduino
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a ReplyCancel reply

Pages

  • About
  • Art Portfolio
  • Bleach
  • Blog
  • Blog
  • Blue Out Timeline
  • Contact
  • Discourse Analysis: Blue Out Artwork
  • Educause 2016
  • Fine Art
  • Home
  • Infographic
  • News
  • News Test
  • Portfolio
  • Previous WeightWatchers Images
  • Publications
  • Quick Start Guide for Sites at Penn State
  • Resume
  • Test Layerslider
  • Thesis

Categories

  • AED 813
  • apartment
  • app
  • Art
  • Art Ed
  • art history
  • beauty
  • blue out
  • class
  • clothing
  • collage
  • comfort food
  • conference
  • consumerism
  • coupon
  • disruptive technology
  • Family
  • friends
  • hair
  • Huffington Post
  • identity
  • Italy
  • makeup
  • meme
  • movies
  • Music
  • naea
  • New blog
  • New York
  • News
  • Ojibwe
  • papers
  • personal
  • photos
  • projects
  • recipes
  • research
  • restaurants
  • review
  • school
  • shows
  • snacks
  • suggestions please
  • thank you
  • to do
  • TV
  • twitter
  • Uncategorized
  • vacation
  • vegan
  • video
  • Visual Culture
  • websites

Archive

  • April 2015
  • March 2013
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • February 2012
  • January 2012
  • December 2011
  • May 2011
  • January 2011
  • October 2010
  • July 2010
  • May 2010
  • April 2010
  • March 2010
  • January 2010
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
Copyright Laura March
 
 
 
Link to: Poster Exhibition Research Abstract Link to: Poster Exhibition Research Abstract Poster Exhibition Research Abstract Link to: Conferences! Link to: Conferences! Conferences!
Scroll to top Scroll to top Scroll to top