Im currently trying to make a smart light switcher that is attached in front of my rooms light switch. It basically mostly consists of a servo (turn on or off the lights), a button (to turn the servo manually), an esp8266 esp-01 module (to be able to use with a google home) and my arduino nano. I really need to make it as small as posible and i also want to keep my only arduino not attached to the wall. Would it work if i use an atmega328p or like an attiny84a to replace the arduino?
Im not finished with connecting the esp-01 to the arduino but i was thinking of using the arduino's 3.3v output pin. Would i need extra components to run the microcontroller on its own?
Im really new to arduino and im trying to learn the most I can and to try to make my little project as good as i can. (Sorry for my english its not my first language).
Would really like some help please, thank you!