Control relay from Bluetooth on ATtiny85

arduinoattinybluetoothpower supplyrelay

I know someone else has made a Bluetooth transmitter to a relay so i wanted to ask a few questions about it being possible? I am an almost newbie at electronics but i do know a few things, so first of all I want to power my ATtiny85 from wall power because i want my ATtiny85 inside the wall of my house to control the roof light and i want it to be powered always how would i do that? Second is it possible to switch a 220V AC relay from the ATtiny85 if not would i be better off with an arduino?
Thanx

Best Answer

I know someone else has made a Bluetooth transmitter to a relay so i wanted to ask a few questions about it being possible?

Yes it is possible.

I am an almost newbie at electronics but i do know a few things, so first of all I want to power my ATtiny85 from wall power because i want my ATtiny85 inside the wall of my house to control the roof light and i want it to be powered always how would i do that?

If you buy a module like HC-05, that needs two pins, TX (Transmit) and RX (Receive).

Example: http://arduinofy.blogspot.se/2013/05/attiny-bluetooth.html

Second is it possible to switch a 220V AC relay from the ATtiny85

Yes, you need a driver since most 5volt relay needs more current than a ATtiny can handle. A Relay driver is just a couple of discrete components.

Example:

enter image description here

Use the search words "arduino mosfet relay driver" at your favorite search engine and you will find what you are searching for.

if not would i be better off with an arduino?

No, only if you need more memory and pins.

And as a addon: If you plan to control it from an Android I can recommend "App Inventor form MIT" to program your app or you can have a look at mine ;-)