When Moni suggested getting you a present for your gradution (well done btw ๐ค) I thought I'd make one instead and open up another super awesome world of nerdiness/coolness (to us... not them ๐คซ)!
The code below controls an ESP8266 (an Arduino compatible microcontroller) thats written in C++ (kinda... they made thier own language to make things easier but its very C++ like).
To run it, follow these steps:
- It should start by initialising as an access point for you to give it your wifi credentials (it should be called Pippo or what ever is #define NAME).
- You need to use the Alexa app to connect the device to your network (it should be called Pippo or what ever is #define ID_RELAY)
- Then say "Alexa, pippo on/off" and hope it doesn't blow up ๐ฃ๐ฅ
Well done for graduating good sir!! I know from experience how hard it is to get there and I don't doubt there is a lot of awesome projects to come!
Disclaimer: this shouldn't burn down your lovely new house ๐คญ
To edit the code you need to download the Arduino IDE. If you want to explore more advanced tools, look into PlatformIO. It runs in Visual Studio and allows for a lot more project structure.
The libraries needed include: fauxmo and wifiManager