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.

Link to final video

Concept

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)

Process

I) Making the monster book and making it move

Phase 1 — Trial & Error

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.

Phase 2 — Writing the Code

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.

https://miro.medium.com/max/1400/1*UhNip3m6SBP0pI651tjLGQ.png

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.

Phase 3 a) — Making the Book

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

https://miro.medium.com/max/3200/1*GU-o03wijp5pXKEBNLJ0VQ.jpeg

https://miro.medium.com/max/704/1*zK0f7vDyjjiWxSn3L7YR9A.gif