This is my portfolio showcasing my projects and skills.
We built an EMS station. A computer controls it. The traffic light flashes yellow. When there is an emergency, the cars stop. The garage door opens. The ambulance goes out. Then the door closes.
This is the Hummingbird board with the micro:bit plugged into the computer. I started with this so I could connect it to Snap! later.
I hooked up a distance sensor to the board with a wire. I tested it to see how the sensors plug in.
Here I got the sensor and LED wires ready. The sensor wire goes into the blue sensor port, and the LEDs go in the yellow and green ports.
This is my first Snap! code. It has the Alonzo sprite scripts, the sound sensor, and the servo block. The city map on the right is the stage.
Here I used the sound sensor to move the servo. If the sound is low it goes one way, and if it’s loud it goes the other way. I also tested the LED blinking.
I made the LED sequence for the traffic light, with waits in between each color. I also made the siren script that plays notes when the emergency message is sent.
This script waits until Alonzo touches the EMS station. Then it broadcasts “emergency” and changes Alonzo to the EMT costume.
Click here to open my Snap! project
Inputs: The sound sensor hears the siren. The light sensor sees the ambulance.
Processing: My code checks the sensors. It decides what to do.
Outputs: The lights turn on and off. The servo opens the door. The sounds play.
Steps:
Problem 1: An LED did not turn on or was in the wrong order
Problem 2: My code did not do what I expected
1. What am I most proud of? I am most proud of my Snap! code. It controls the sensors, the lights, and the sounds.
2. What was the hardest part? The hardest part was getting my code to do what I wanted. I had to fix it a few times.
3. What did I learn about inputs and outputs? Sensors are inputs. They give the computer numbers. The code uses the numbers to control the outputs, like the LEDs and the servo.
4. What would I improve? If I had more time, I would make the code and the build work even smoother.
5. What did I do? I worked alone. I built the project and wrote all of the code myself.