For this project we had to use out CPX and a distance sensor to create an item that reacts to the motion senser. I decided to create a game where you have to solve the math equation and based on that answer raise you hand that number in cm high above the sensor. If your answer is correct and you guessed correctly about your hand placement than the board will light up and if your wrong the board will not light up.
My Supplies:
1 CPX
Alligator Clips
Fairy Lights
1 Distance sensor
Computer
Adapter
Paper
Markers
Knitting needle
Tape
The first part of my project was to take the code that I worked on in class and see if it would work. Unfortunately it still did not work even after I changed LED lights. So I shifted and took out the music component. I wanted to see if I could get it to light up at an exact number instead of a range of numbers. It was hard and took some experimenting but I managed to get the code correct. Below is what my final code looked like to have it only flash if someone's hand is exactly 35 centimeters above the sensor.
For this porject I actually had a few failurs and they came in the later parts of my project. I had to figure out to get the lights around the paper so I decided to use a knitting needle to stable holes where I wanted the lights to go through but the failure came when stabbing the holes I cam too close to the ends on two of them and they ripped through the end of the paper. Luckily the fairy lights stayed in place so it could have been worse. The other mistake I made was I could not get my fairy lights to work once I spent like 30 minutes stringing them through the paper. So I decied to ttest out the other fiary lights I had and I got those to work so I took out the current fairy lights I had in and repalced them. I should have tested to make sure they worked before I strung them through.
Here are also some phots that include the new cutting machine I used to make sure the paper had even ends, and the set up with the alligator clips and CPX.
The final part was crafting the board itself. I used markers to write out the rules and the math equation. I then used some tape to hide the wires behind the board but needed to keep the sensor out. That is something that I would like to look into if there was a way to decorate the sensor while still being bale to use it to have people place their hand over. You can see the fairy lights weaving in and out of the paper.
Reflection #1
Reflection #2