• KJ Ha

ML4PCOMP Assignment 1


Link to sketch: https://editor.p5js.org/kh1785/sketches/3zhE6LL-G

mySoundModelURL: https://teachablemachine.withgoogle.com/models/lHP9U22oj/

I chose the Sound Classifier model and trained it using 'Hi' and 'Bye' as two different classes. The red and blue LEDs will be turned on as a response to the words 'Hi' and 'Bye' respectively.


I propose a simple device using a water pump, soil sensor, and sound classifier from the teachable machine. There will be three voice commands: 'water,' 'stop,' and 'data.' 'Water' will trigger activation of the water pump that is connected to Arduino and 'stop' will suspend the activation. Since I would design P5.js and Arduino to form a two-way serial communication, the word 'data' will display sensor data from the soil sensor on the screen so that the user can refer to the current environment.

© 2020 Kyungjoo Ha. All Rights Reserved