Make a pet or object that expresses emotion towards a person or object
Use Max to trigger an IRL event – control your pet from last week from a patch using sliders, sound, or video.
We(Yesha, my classmate and I) created the “Harry Potter Book of Monsters” that reacts in fear when a dementor comes close to it (probably because its soul is going to be sucked out)
We started by referencing Prof. Scot’s sample code for the servo motor and then added our elements to make it match our concept.
Through our initial concept, we wanted to use the Ultrasonic Sensor to measure the proximity of the dementor however quickly realised that the Ultrasonic and the Servo wouldn’t work together as they both required 5V and we didn’t want to fry our ESP32. So we then decided to switch out our Ultrasonic Sensor for a Photoresistor.
We then started writing the code through the Arduino IDE 2.0.4. We ran into a lot of issues initially but quickly realised it was because we didn’t have one of the ServoEasing libraries installed which is why nothing we did would work.
As we were testing we kept modifying the angles, speed & duration of the servo so the book would act just like it does in the movie.
We made the base of the book out of cardboard and covered it with fur just like the original book. Finally, we added 4 googly eyes to bring our Monster Book to life!
The motion of the monster book before we attached our motor