Step by Step Guide
Learn how to control outputs from your PIXIE M1 board. Specifically, you will make a small traffic light blink its red, yellow, and green LEDs in sequence. This is your first step into programming behavior using code.
1. What You’ll Need
- Axiometa Pixie M1
- Traffic Light Module
- Push Button
- Jumper wires
- Breadboard
- USB - C cable
- Arduino IDE installed
2. Make the Connections
Connect the parts as shown by the diagram bellow
Traffic Light Module
- G (Ground) → Connect to breadboard ground rail (blue/negative row)
- R (Red LED) → Connect to Pixie M1 Pin 1
- Y (Yellow LED) → Connect to Pixie M1 Pin 3
- G (Green LED) → Connect to Pixie M1 Pin 2
Push Button
- G (Ground) → Connect to breadboard ground rail (blue/negative row)
- VIN (Power) → Connect to Pixie M1 3V3 pin
- S (Signal) → Connect to Pixie M1 Pin 6
3. Connect to PC & Upload Code
- Install Arduino IDE and Setup Axiometa PIXIE M1 if you haven't already
- Connect the Pixie M1 to your computer using the USB-C cable
- Select the correct board in Arduino IDE:
- Go to Tools → Board → Axiometa Pixie M1
- Copy and Paste the code you can find at the end of this page.
- Upload code (CMD+U or CTRL+U)
4. Test
After uploading Press the button - the traffic light sequence should start:
- Red light for 2 seconds
- Yellow light for 2 seconds
- Green light for 2 seconds
- Green Flashing
- Back to Red
Next Steps:
- Change the timing of each light
- Add sound effects with a buzzer, for alarming visually impaired