Semaforo

Semaforo

thingiverse

I'm using an Arduino to make a functional traffic light system with seven LEDs and three buttons. I've got my circuit set up on a breadboard, and now it's time to write some code that will control the lights and turn them on/off according to user input. To begin, we need to define our pins for the LEDs and buttons. We'll be using pins 2-9 for the LEDs, and pins 10-12 for the buttons. Now let's start coding! We can use a switch-case statement to control which lights are turned on based on button presses. Here's how it works: when you press button A, light 1 turns on; when you press button B, light 2 turns off; and so on. Now that we've got our basic code working, let's add some functionality. We'll make the system start counting up from 0 after each button press. When a button is pressed again, it will reset back to 0.

Download Model from thingiverse

With this file you will be able to print Semaforo with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Semaforo.