Monday, December 8, 2014
December 8th Update
Our group met again today to test our final design project however it was unsuccessful. We did a lot of research and believe that the resistors that we used from our Arduino kits did not have the correct resistance. We believe that we need stronger resistors to allow for less current. We are going to try to get the correct resistors by Friday so we can present our project however, we are still happy with the work that we put into the project. Below is the video we took of our first attempt of using our paper keyboard.
Tuesday, December 2, 2014
December 2nd Update
After all of our hard work, it seems that our final project is almost ready to be put into action. The group is very proud of the work that we put into the design project and of the pre-final result. The following is the code that our group decided upon using to create our paper piano.
#include <CapacitiveSensor.h>
#define speaker 11
CapacitiveSensor cs_2_3 = CapacitiveSensor(2,3);
CapacitiveSensor cs_2_4 = CapacitiveSensor(2,4);
CapacitiveSensor cs_2_5 = CapacitiveSensor(2,5);
CapacitiveSensor cs_2_6 = CapacitiveSensor(2,6);
CapacitiveSensor cs_2_7 = CapacitiveSensor(2,7);
CapacitiveSensor cs_2_8 = CapacitiveSensor(2,8);
CapacitiveSensor cs_2_9 = CapacitiveSensor(2,9);
void setup()
{
cs_2_3.set_CS_AutocaL_Millis(0xFFFFFFFF);
Serial.begin(9600);
}
void loop()
{
long start = millis();
long total1 = cs_2_3.capacitiveSensor(60);
long total2 = cs_2_4.capacitiveSensor(60);
long total3 = cs_2_5.capacitiveSensor(60);
long total4 = cs_2_6.capacitiveSensor(60);
long total5 = cs_2_7.capacitiveSensor(60);
long total6 = cs_2_8.capacitiveSensor(60);
long total7 = cs_2_9.capacitiveSensor(60);
Serial.print(millis() - start);
Serial.print("\t");
Serial.print(total1);
Serial.print("\t");
Serial.print(total2);
Serial.print("\t");
Serial.print(total3);
Serial.print("\t");
Serial.print(total4);
Serial.print("\t");
Serial.print(total5);
Serial.print("\t");
Serial.print(total6);
Serial.print("\t");
Serial.println(total7);
if (total1 > 150) tone(speaker,523);
if (total2 > 150) tone(speaker,587);
if (total3 > 150) tone(speaker,659);
if (total4 > 150) tone(speaker,698);
if (total5 > 150) tone(speaker,784);
if (total6 > 150) tone(speaker,880);
if (total7 > 150) tone(speaker,988);
if (total1<=150 & total2<=150 & total3<=150 & total4<=150 & total5<=150 & total6<=150 & total7<=150)
noTone(speaker);
delay(0);
}
This final code will be used to hopefully make our design as seen in the photo below work as desired!
#include <CapacitiveSensor.h>
#define speaker 11
CapacitiveSensor cs_2_3 = CapacitiveSensor(2,3);
CapacitiveSensor cs_2_4 = CapacitiveSensor(2,4);
CapacitiveSensor cs_2_5 = CapacitiveSensor(2,5);
CapacitiveSensor cs_2_6 = CapacitiveSensor(2,6);
CapacitiveSensor cs_2_7 = CapacitiveSensor(2,7);
CapacitiveSensor cs_2_8 = CapacitiveSensor(2,8);
CapacitiveSensor cs_2_9 = CapacitiveSensor(2,9);
void setup()
{
cs_2_3.set_CS_AutocaL_Millis(0xFFFFFFFF);
Serial.begin(9600);
}
void loop()
{
long start = millis();
long total1 = cs_2_3.capacitiveSensor(60);
long total2 = cs_2_4.capacitiveSensor(60);
long total3 = cs_2_5.capacitiveSensor(60);
long total4 = cs_2_6.capacitiveSensor(60);
long total5 = cs_2_7.capacitiveSensor(60);
long total6 = cs_2_8.capacitiveSensor(60);
long total7 = cs_2_9.capacitiveSensor(60);
Serial.print(millis() - start);
Serial.print("\t");
Serial.print(total1);
Serial.print("\t");
Serial.print(total2);
Serial.print("\t");
Serial.print(total3);
Serial.print("\t");
Serial.print(total4);
Serial.print("\t");
Serial.print(total5);
Serial.print("\t");
Serial.print(total6);
Serial.print("\t");
Serial.println(total7);
if (total1 > 150) tone(speaker,523);
if (total2 > 150) tone(speaker,587);
if (total3 > 150) tone(speaker,659);
if (total4 > 150) tone(speaker,698);
if (total5 > 150) tone(speaker,784);
if (total6 > 150) tone(speaker,880);
if (total7 > 150) tone(speaker,988);
if (total1<=150 & total2<=150 & total3<=150 & total4<=150 & total5<=150 & total6<=150 & total7<=150)
noTone(speaker);
delay(0);
}
This final code will be used to hopefully make our design as seen in the photo below work as desired!
Wednesday, November 26, 2014
November 26th Update
Today the team met and worked on taking apart an old Gameboy Advanced SP to retrieve the speaker hidden inside it! Unfortunately Nintendo felt the need to put tri-wing screws in the product and rather than spending money to get a tri-wing screwdriver, we decided to have a little fun. The pictures below show a few steps that we went through today, but in the end, the speaker was taken out safely!
Its an odd looking speaker but hopefully it will be sufficient enough for the design. The next step is to finish the code for the keyboard. Wish us luck!
Wednesday, November 19, 2014
November 20th Update
The group met again today to discuss our project further. We found a speaker that we can use but will not have access to it for a few more days. We will post a picture of the speaker when we get it! But, we also discussed how we wanted to go about coding our piano keyboard. We found a code that we can utilize to get us started but we will be making slight changes so it fits our desired final design better! The group is planning on meeting again when we gain access to the speaker and look forward to finally putting our design planning into action!
We are planning on our final design to look something along the lines of this setup!
Monday, November 10, 2014
November 10th Design Update
The team met today again for the second time to discuss more about our paper piano design. We assigned different responsibilities for each member for each step of the way. As of now, we are currently looking for a possible speaker that we can use for our final design. Our group hopes to find something small, effective, but with minor cost so we are going to scavenge our houses for a possible speaker.
Wednesday, November 5, 2014
Paper Piano
Welcome to our Project Blog for Mechanical Design Lab 1!
Team Members:
Colby Sedlier |
Ross Wholley |
(Not Pictured: Chinkrisna Rath)
The overarching goal of this project is to grasp a better understanding of how to use Arduino with a "hands on" experience. It will allow our group to work collaboratively with the end result being something that we created ourselves rather than just being handed or buying something.
As a group, we plan on creating a paper piano that will function as a typical piano. It will allow a user to simply "tap" the paper "keys", and in return, produce a sound either coming from an attached speaker or another device. We plan on utilizing the conductivity of the graphite from a pencil to transmit the electrical signals to the Arduino and in effect, produce a sound due to a programmed code. We may decide to also incorporate LED lights that correspond directly to a single note or key however, at this time, this decision has still not been made final.
The following video is similar to how our final Arduino project will function and similar to what it may look like.
This video helps show and explain how the paper piano will be made as the graphite from the pencil will act as a conductor for electricity to send signal through the attached wires.
Subscribe to:
Posts (Atom)