Книга: Best Arduino Automation Project: Arduino Project Ideas for Automated System
Назад: Step 5: The Code
Дальше: SCHEMATIC

1.jpg

Open arduino IDE then reproduction, paste this code and then add.

down load it from Playstore, open it, flip the Bluetooth on, connect with the 1sheeld and then select the Orientation shield.

Solder the resistor to led after which connect the caused arduino to pin no. eleven. ( you could change the pin number within the code)

Now its as much as you what you need to govern, for example in case you need to show the lighting on and of you could use relays, in case you want to alter the brightness of the lamp you may make a dimmer with MOSFET as proven on this instructable so with that you will be capable of manipulate the speed of ceiling fan, excessive strength halogen or heater.

Be careful while connecting any inductive load on the circuit, recollect to use a Flyback diode while doing so.

Назад: Step 5: The Code
Дальше: SCHEMATIC