Chapter 2: Trial Run

Day 4: Lost Cadet Emergency Beacon

On the fourth day of your mission, an urgent situation arises: a cadet has gone missing during an expedition on a remote planet. Happens a lot tbh. With the vast terrain and numerous potential hazards, it’s crucial to locate and rescue the lost cadet as quickly as possible. Your task is to build an emergency beacon that the next lost cadet can activate to signal their location and request assistance.

Circuit Diagram

Write the Code:


Open your coding environment and write the following Python code to create the emergency beacon functionality.

Upload the code to the Raspberry Pi Pico and run it.

Press the push button to simulate the lost cadet activating the beacon.

Ensure the LED and buzzer alternate between on and off states, creating a clear visual and audible signal.


Learning Outcomes:

Microcontroller Programming: Develop skills in writing code to control input and output devices using the Raspberry Pi Pico.

Circuit Design: Gain hands-on experience in setting up and connecting electronic components to build a functional circuit.

Problem Solving: Enhance problem-solving abilities by creating a practical solution to a real-world emergency scenario.


By completing this project, you will have created a crucial tool for ensuring the safety of the crew during expeditions. The emergency beacon will provide a reliable method for locating and rescuing lost cadets, demonstrating your ability to respond effectively to emergencies and

contribute to the mission’s success.