I worked for another 2 or 3 hours today on my project and......drum roll please...
I GOT ANALOG TO WORK! THIS MEANS I CAN NOW TEACH ALL OF THE LITTLE CHILDREN OF THE WORLD HOW TO READ TWINKLE! IT'S A CHRISTMAS MIRACLE.
any who. Enough excitement.
Using the code that my professor sent to me figuring out how to make analog work I have successfully made analog and digital pins work, in harmony! It's peace in my little Arduino world.
I combined both of the code and ended up making new variables for the Analog pins because they read different touch sensors. It turns out they actually read a much higher reading meaning that the touchCutoff would have to be higher - I ended up setting it to around 60. I then created another for loop doing the same process however this time checking to see if it was of analog type not digital - and then if it was analog proceeding to compare it to the analog variables.
AND IT WORKS!
I then stayed later to continue working on the physical product.
See the pictures below:
I GOT ANALOG TO WORK! THIS MEANS I CAN NOW TEACH ALL OF THE LITTLE CHILDREN OF THE WORLD HOW TO READ TWINKLE! IT'S A CHRISTMAS MIRACLE.
any who. Enough excitement.
Using the code that my professor sent to me figuring out how to make analog work I have successfully made analog and digital pins work, in harmony! It's peace in my little Arduino world.
I combined both of the code and ended up making new variables for the Analog pins because they read different touch sensors. It turns out they actually read a much higher reading meaning that the touchCutoff would have to be higher - I ended up setting it to around 60. I then created another for loop doing the same process however this time checking to see if it was of analog type not digital - and then if it was analog proceeding to compare it to the analog variables.
AND IT WORKS!
I then stayed later to continue working on the physical product.
See the pictures below:
This is my finished Arduino. As you can see : I also soldered a speaker to the sound shield so I wouldn't have to keep using the external giant speaker.
For this - I attached two wires that I cut and striped and soldered them to the wires on the speaker itself. Then I connected them to the two holes by the headphone jack on the sound shield. I don't think it matters which wire you put in the hole - however...if you're smart you will solder the inside wire first. I was not so smart and did the outside one then when attempting to solder the inside one got frustrated...then unsoldered the outside one (burnt myself a little.) then re-did the two of them.
For this - I attached two wires that I cut and striped and soldered them to the wires on the speaker itself. Then I connected them to the two holes by the headphone jack on the sound shield. I don't think it matters which wire you put in the hole - however...if you're smart you will solder the inside wire first. I was not so smart and did the outside one then when attempting to solder the inside one got frustrated...then unsoldered the outside one (burnt myself a little.) then re-did the two of them.
Look it's coming along!
I couldn't write any notes on the board until I knew whether or not I would be able to have 6 different recordings (aka if the analog pins would work or not)
But I have working analog pins meaning I could begin to draw my note heads on the staff!
I couldn't write any notes on the board until I knew whether or not I would be able to have 6 different recordings (aka if the analog pins would work or not)
But I have working analog pins meaning I could begin to draw my note heads on the staff!
In this picture I took a sharpie and I traced over the lines of the staff (this was very stressful.)
Then I filled the note heads with conductive paint (Bare Paint). I think I am going to make them 8th notes meaning I will connect the stems over every two notes that way the note values are correct (I couldn't make the E and the A a half note because there would be no conductive paint inside thus destroying the purpose of this product.) So, I will make the notes that are doubled into 8th notes and the two single notes (the E and the final A) will be quarter notes - keeping the original melody of twinkle.
I began to sew conductive thread through the first A furthest to the left - it works and it hardly visible! I will need to sew conductive thread into each of the note heads and then trace the stems of the notes as well.
Then for final pretty details I will add decorative things onto the board to make it look more appealing. The Arduino and the Speaker will be Velcro-ed into the back of the board.
Then I filled the note heads with conductive paint (Bare Paint). I think I am going to make them 8th notes meaning I will connect the stems over every two notes that way the note values are correct (I couldn't make the E and the A a half note because there would be no conductive paint inside thus destroying the purpose of this product.) So, I will make the notes that are doubled into 8th notes and the two single notes (the E and the final A) will be quarter notes - keeping the original melody of twinkle.
I began to sew conductive thread through the first A furthest to the left - it works and it hardly visible! I will need to sew conductive thread into each of the note heads and then trace the stems of the notes as well.
Then for final pretty details I will add decorative things onto the board to make it look more appealing. The Arduino and the Speaker will be Velcro-ed into the back of the board.