6. Embedded Programing¶
Week 6 at the Fablab focused on embedded programming, where we delved into coding and microcontroller applications. We learned how to write and upload code to microcontrollers, connect various sensors and actuators, and troubleshoot common issues. For my personal project, I created the famous SOS signal using LED lights.
Here are the steps I followed:
-
Choosing the Components: I selected an appropriate microcontroller, I used Arduino, and gathered the necessary components, including LEDs, resistors, and connecting wires.
-
Designing the Circuit: I designed the circuit, ensuring the LEDs were properly connected to the microcontroller pins.
-
Writing the Code: I wrote the program to blink the LEDs in the SOS Morse code pattern—three short flashes, three long flashes, and three short flashes. The code included precise timing ( the duration ) to ensure the correct sequence.
-
Uploading the Code: I uploaded the code to the microcontroller and tested the circuit to make sure the LEDs blinked in the desired pattern using my laptop.
-
Testing and Troubleshooting: I ran the program multiple times, adjusting the timing and connections as needed to ensure the LEDs displayed the SOS signal accurately.
-
Final Assembly: Once the circuit and code were working perfectly, I secured the components and arranged the LEDs in a visible and organized manner.