PA Designer: Try It Out
Site: | GoLabs |
Course: | Robotic Challenges with Python and GoPiGo |
Book: | PA Designer: Try It Out |
Printed by: | Guest user |
Date: | Wednesday, 4 December 2024, 12:02 PM |
Description
This is the second challenge within the Robotics with GoPiGo and Python Curriculum.
Your task is to program your robot to alert a person with a hearing impairment to visiting house guests.
Learn how to use the Loudness Sensor alongside Jupyter Notebooks.
1. Try It Out
Run your notebook by selecting Cell >> Run All Cells from the Jupyter menu. Wait for the robot’s eyes to light up. After another few seconds ring your bell in front of the robot.
Does the LED light up? If not, how do you think you can improve your robot’s performance?
2. Iterate
If your robot does not recognise a bell when rung, we call this a False Negative.
Repeat the bell ringing test a number of times. Does your robot always recognise the bell and light its LED? If not, how do you think you can improve your robot’s performance?
Make necessary adjustments and re-run this test until the robot successfully recognises 3 bell rings in a row.
3. Soak Testing
Let’s perform a soak test. This is where we leave our code running for a period of time to test its performance and reliability over time. In our case, we want to see if our robot is robust to the natural variation in our noise environment over time.
Leave the code running for at least 60 seconds without ringing a bell. Does the LED light up during this period? If it does, your robot is being triggered by ambient noise. In engineering, we call this a False Positive.
Perhaps your threshold value is set too low for your noise environment or you are too close to a source of significant noise. What do you think you can do to improve the robot’s performance?
Make necessary adjustments and re-run the soak test until the robot can run for 60 seconds without the LED being lit.
4. Sensitivity Testing
Having found a threshold value that is a good balance between false positives and false negatives for your choice of bell in your noise environment, how good is your robot at sensing the bell ring from a distance?
At what distance does it become ineffective?
Experiment with ringing your bell directly in front of the sensor from different distances away to see how far you can go before the bell becomes indistinguishable from the ambient noise of your environment.
5. Congrats!
Woohoo! You've solved the Personal Assistant Designer project!
If you want to investigate more, you can attempt one or both of the project extensions