Today it was time to assemble the parts. and build the prototype. During the testing phase we noticed that the sensor is very sensitive, it does not take much to trigger it. The other issue we were aware of…that the sensor only reads one direction, namely when a person is approaching the sensor frontally.
And finally, the sound part…
I love Arduino, it was a shame that I had to keep it simple, due to time and resource constraints. Plus, I was the only one in the duo with Arduino experience, so I refrained from overcomplicating .
It was very fun to do the sound part with the piezo buzzer – I had to use some of my limited piano skills. But still I managed to code for the tune “Heart and Soul”. The reason I chose this tune for the positive experience is that I have very sweet and tender associations with it – me trying to keep up with my husband when playing this tune on the piano – very challenging but fun! Another association is with the movie “Big” with Tom Hanks at FAO Schwarz – I love the movie and the store, and that big piano on the floor is iconic!
I searched on Internet for inspiration and guidance on the best way to code it – I made my own version, it was not merely copy/paste.
The result was….well…okay…the piezo buzzer I have was a joke…very weak and it didn’t even work with resistor, so I had to remove the resistor from the circuit.
And the sound is not that smooth either…it reminds me of those ring tones from the 1990s. But still I was proud of being able to “translate” this tone into Arduino language.
Well, now it is too late for further polishing, and we did not have much time to tackle these issues – this module was very short and the divergence phase went on “forever”, it felt like that at least.
Here is a code snippet of the sweet tune used on the positive experience.
Coding in Arduino
And here is what the “final prototype” looks like
Ok the beginning of this day was terrible – my partner did not want to work with the game anymore, and we were informed that we could not work with shock, because it is considered dangerous… Ok then! Back to scratch… and the divergence process continues – we try to come up with a new concept – we got valuable help from the teacher and he gives us some suggestions on how to make ideas come and flow. Awesome, we can go back on track then. She comes up with a concept called hug giver – with a heat pad in your shirt representing a hug. But what about the negative experience?
Then she just vanishes! Everybody working in pairs, and I was left on my own, without knowing what was going on… So I started talking to the teacher that I wished I was working on my own instead…but he said some wise words and tried to help me with the concept. Then she came back, and we discussed the concept further and I told her what the teacher suggested us to do.
So now, when we have a clearer idea on what we were going to work with, we were ready for some convergence to take place – what is the best way to execute our concept, what are our best possibilities? When I explained what we needed to make the concept work – money and time, in form of a modified Peltier device. Besides, the idea with hug for me sounded somewhat silly and pointless. So we have decided to make a similar and more fun version of it with sound as output, using a piezo buzzer: Creepy dude approaching you gets alarm sound, someone you like approaching you gets romantic, sweet tune. And the input would be the distance measured by the ultrasonic range detector. So we decided to work with this concept, and started coding and hooking up our Arduino in the same day. Was I happy with this choice? Not even close! I found it over-simplistic and “lazy”, two of the words I hate the most.
Sketching the concept
Hooking up Arduino