heya guys, this is my first post i apologize in advance if this question has been asked already, i searched the forums and couldn't find what i'm looking for. If it has been asked, please accept my sincere apologies, and point me in the right direction.
now i know that plenty of people have designed and built electronic light dimmers/switches using microcontrollers. i'm working on a project that uses a microcontroller to automatically switch lights on and off as a person enters and exits a room respectively. however i have reached a practical roadblock. in all the circuits i have seen, no mention has been made as to how the microcontroller recieves it's power supply (gennerally 5V). now i have considered using a basic power supply to transforn the AC mains power to the DC microcontroller power, however i am concerned about the size of the transformer and whether it will fit in the wall mounted switch housing. does anyone know how the microcontroller recieves it power in an autommatic light switching circuit?
btw, im using the microcontroller to allow for remote access, so i cant leave it out and hardwire a solution using discrete components.
thanks guys and gals, i look foward to the ideas you have
now i know that plenty of people have designed and built electronic light dimmers/switches using microcontrollers. i'm working on a project that uses a microcontroller to automatically switch lights on and off as a person enters and exits a room respectively. however i have reached a practical roadblock. in all the circuits i have seen, no mention has been made as to how the microcontroller recieves it's power supply (gennerally 5V). now i have considered using a basic power supply to transforn the AC mains power to the DC microcontroller power, however i am concerned about the size of the transformer and whether it will fit in the wall mounted switch housing. does anyone know how the microcontroller recieves it power in an autommatic light switching circuit?
btw, im using the microcontroller to allow for remote access, so i cant leave it out and hardwire a solution using discrete components.
thanks guys and gals, i look foward to the ideas you have