Phidgets
Phidgets are programmable, modular USB devices that can be connected together either by sensors or controllers. You can write the code in various different languages such as Java, C# or Python. We started with the assembly of our controllers, and we will be using Python with the Thonny IDE as our coding platform.
|
|
Challenge 1
Challenge 2
In this challenge we were required to run a code through our controller to check if its reading the button state, whenever we press a button it shows its state; prints one if its pressed and zero if its not. This code can be used to check if your buttons are properly working or not.
|
|
Challenge 3
|
In this challenge we were required to code the controller so that when we press a button, the led associated with that button lights up as long as the button is pressed. We could also modify this code in numerous ways so that the opposite LED turns on or the led stays on after one press and a second press turns it off.
|
Challenge 4
For this challenge we are required to attach the humidity/ temperature sensor to our phidget controller. We also had to run a code trough it to see if its working properly. As shown in the video, the temperature sensor worked as expected. While the hairdryer was turned on, the temperature started increasing and when turned off, it started decreasing to get back to room temperature.
|
|
Challenge 5
|
In this challenge we were required to test the humidity, as well as the temperature. The sensor brick we attached in the last challenge contained multiple sensors inside of it. In our case scenario, the sensor brick we were provided with contained a temperature sensor and a humidity sensor. We just have to create an object within the code to activate the different sensors. When I turned on the hairdryer this time, it decreased the humidly and increased the temperature.
|