I essentially set up a NANO 33 IOT Micro controller in order to turn on indicator lights as well as a fan ( for now ). I then built an API and front end website to control the board ! This was done through my site sending HTTP calls to my API, my api then sends HTTP calls to Arduino's IOT cloud api, and then finally my board ! I created my own api so I could securely store keys and not expose them to the front end of my personal website ! The indicator lights show stages of completion. The red LED turns on when the code is running in it's loop. If a secure API connection is made the white LED turns on. If the fan is turned on via HTTP the red LED turns on. I also added a 'kill-switch' in the form of a potentiometer. If I dont want people turning on the fan in my office I simply turn it off without having to disconnect the whole projects power supply!
Schematic :
Personal website switch
The circuit irl
Video
Comments