Step by Step Guide
In this project, you will build a simple vibration-triggered alarm system using the Pixie M1. When the vibration switch detects movement, the buzzer will sound, and the LED will blink. The alarm can be turned off by pressing the button three times. This project introduces you to reading sensor input (vibration switch), controlling outputs (LED and buzzer), and implementing a basic disarm function with a push button.
What You'll Need
- Axiometa Pixie M1
- Vibration Switch Module
- Active Buzzer Module
- NeoPixel Module
- Push Button Module
- Jumper Wires
- Breadboard
- USB-C cable
- Arduino IDE installed
2. Make the Connections
Connect the parts as shown by the diagram bellow
Vibration Switch Module
- G (Ground) → Breadboard ground rail (blue/negative row)
- VIN (Power) → Pixie M1 3V3 pin
-
S (Signal) → Pixie M1 Pin 1
Buzzer Module
- G (Ground) → Breadboard ground rail (blue/negative row)
- VIN (Power) → Pixie M1 3V3 pin
- D (Signal) → Pixie M1 Pin 2
NeoPixel Module
- G (Ground) → Breadboard ground rail (blue/negative row)
- VIN (Power) → Pixie M1 3V3 pin
- S (Signal) → Pixie M1 Pin 3
Push Button Module
- G (Ground) → Breadboard ground rail (blue/negative row)
- VIN (Power) → Pixie M1 3V3 pin
- S (Signal) → Pixie M1 Pin 4
4. 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)
5. Test
After uploading Flick the Breadboard - the alarm sequence should begin:
- The NeoPixel Should should blink and the buzzer should beep
- Press the button three times to disable the alarm
- Flick the breadboard once again and the alarm should trigger again
Next Steps:
- Change the timing of buzzer and NeoPixel
- Add different sequence to disable the alarm