PA Designer : Project

Site: GoLabs
Course: Robotic Challenges with Python and GoPiGo
Book: PA Designer : Project
Printed by: Guest user
Date: Tuesday, 14 May 2024, 1:16 AM

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. Make Your Lamp Stand

The GoPiGo3 comes with sensor mounts that allow you to attach your LED to the chassis. However, let’s have some fun with this. Why not make your LED look like a lamp using Lego Technic or whatever craft materials you have to hand? To give you some ideas, here’s an example that we made:





2. Make a Directional Sound Chamber

Using a sensor mount and the mounting holes in the chassis, mount the loudness sensor upright on the top of our robot. 

Using whatever craft materials you have to hand or even Lego let’s make a directional sound chamber to shield the sensor from sound from behind and focus it more on the sound in front of it. This will make it easier to hear the doorbell in a noisy environment.


Test the effectiveness of your chamber. Re-run the 10 second data analysis task from the LEARN section a number of times, with and without the chamber, to compare the effect of ringing the bell immediately in front of and behind the sensor. 

Try out different materials to see which ones work most effectively for you. What materials give you the best soundproofing from behind? What do you think makes these materials good for soundproofing?

3. Program Your Robot Assistant

Now it’s time to code up your robot assistant.

Using what you have learned, change the code in the Main Code cell so that your robot listens intently for a bell and when it hears that bell it stops listening and switches on the light.

You may wish to think about the following:

      1. How might you signal that the robot is in listening mode?
      2. What loudness level should you set as an alert threshold for the doorbell?
      3. How will you code the logic that triggers the switch from listening to alerting?

4. Try It Out

You can now move on to testing your project in the Try It Out section!