Step by Step Guide
In this project, you will control a Street Light module connected to your Pixie M1 using a custom website. You will be able to turn the light on and off from any phone, tablet, or computer on the same Wi-Fi network. This is your introduction to creating web-controlled hardware.
1. What You’ll Need
- Axiometa Pixie M1
- Street Light Module
- Jumper Wires
- Breadboard (optional)
- USB-C Cable
- Arduino IDE installed
- A Wi-Fi network
2. Make the Connections
Connect the parts as shown by the diagram bellow
Street Light Module
- G (Ground) → Connect to Pixie M1 GND
- VIN (Power) → Connect to Pixie M1 3V3 pin
- S (Signal) → Connect to Pixie M1 Pin 14
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.
You will need to update two lines in the code with your Wi-Fi credentials: replace the SSID with your network name and the password with your Wi-Fi password.
const char* SSID = "Axiometa";
const char* PASSWORD = "Axiometa";
- Now upload code (CMD+U or CTRL+U)
4. Test
After uploading the code, open the Serial Monitor by going to Tools > Serial Monitor (or press CTRL+Shift+M).
You should see an IP address printed in the Serial Monitor. Make sure your phone is connected to the same Wi-Fi network as the ESP32.
Open a web browser on your phone and type in that IP address.
- You should see a simple webpage with ON and OFF
- Click the buttons to control your Street Light
- Street Light should turn ON and OFF