Week_14 Assignments

Group assignment

We used S4A (Scratch for Arduino) application to control an LED using a red and green buttons where we used the logic blocks, broadcast ones and control to make a GUI to turn on and off the LED. I thought this platform can benefit me when using it with kids and young learners especially those who are familiar with Scratch.

We used Processing to get the readings of a moisture sensor presented on a sliding bar.

Individual assignment

For my assignment I wanted it to be part of my final project I wanted to make the GUI where The machine can be controlled. And could look like this:

I used tkinter package to build up the GUI and pyserial package to communicate with the arduino.

Before I created a virtual environment to make a space where i can experiment with packages and versions without damaging or get confused if I had to try more than one version. I already had python 3.7.9, python 3.6.6 and python 3.12.1 but I used 3.7.9. When you are installing python (whichever version) make sure you check the add to path box.

I followed the amazing tutorial of Mr. Paul Mcwhorter on how to make a virtual environment.

You can download my files from here: