DEV Community

Discussion on: [Question] Which hardware to choose? Arduino or RaspberryPI

Collapse
 
dsthode profile image
Damian Serrano Thode

Your best option is using a microcontroller, that is, an Arduino or better yet an ESP32 or NodeMCU like Yannik_Sc said, because it has a wifi interface.

With this microcontroller and a relay to toggle the lights you can then create network endpoints which are activated via wifi with a standard http request. You could then set-up a raspberry pi as the main gateway to your home automation network with a web frontend made in NodeJS.

Collapse
 
gkhan205 profile image
Ghazi Khan

Thank you Damian, You actually cleared my doubt on creating a network and handle it. :)

Collapse
 
derekenos profile image
Derek Enos

I second the ESP32. I've been programming them using MicroPython to build various IOT / robotics projects. The dev board that I've been using costs $10 USD, with the standalone module costing ~$4 USD.