AI Puppy Lesson 1: Happy and Sad

Train your puppy to be happy when stroked and sad when patted!

Machine Learning Type

1D K-Nearest Neighbor

Tools Used

Touch sensor

Example Ideas

Build a puppy that can be petted!

Puppy 4 Puppy 5 Puppy 2

Tips & Troubleshooting

It may be helpful to attach other LEGO pieces to the force sensor to make it easier to "pet"

Force sensor with gear Hub with gear and buttons

Make sure the left, center, and right hub buttons are easily accessible

0%

Port Assignments

force sensor

In port

F

Pyscript Editor
...
Please connect to a SPIKE™ Prime to begin programming.

Extended Thinking

How does changing the amount of training data points collected impact the accuracy of displaying emotions?

Your brain if you think about this
Made on pyscript.com │ View Code