Week 7 Physical Computing Lab

Lab: Two-Way Serial Communication

Preparing the Board

KakaoTalk_20201028_193933048.jpg

Creating a Controller


Creative: Puppy Scritches

Using the skills in this lab, I wanted to create a duplex interaction between a cute stuffed animal and P5.js.

The animated dog on P5.js will react to your scritches in real life. If you scratch her using the perfect amount of force, she will be happy. However, if you use too much force or hit her, she will become angry. Created using a force sensitive resistor.

P5.js Code

Creating Assets

Normal

Normal

Happy

Happy

Angry

Angry

Putting it together

KakaoTalk_20201028_193938307.jpg
KakaoTalk_20201028_193936410.jpg