With this project/application, you can make a light sensor dependent lamp. You can make a light sensor or dark sensor with this application.
The light sensor of your Android smart phone senses ambient light present in your room and sends commands to Arduino board. Your Arduino program determines the behaviour of the LED, whether it should glow bright or dim. You can also see the light sensor data on the smart phone interface.
After visiting Amarino website, do these two experiments:
This “QR Code” allows you to use a mobile device to easily scan this URL to download this file onto that device.
Connect an LED and Bluetooth Module (BlueSMiRF mate silver) to Arduino.
See the pin configuration of BlueSMiRF mate silver module.
There are different versions of BlueSMiRF bluetooth modules available on sparkfun. I have used BlueSMiRF mate silver for this experiment. If you are using some other versions of BlueSMiRF, please change your connections. However, the basic rule is as follows:
a. RX of Bluetooth module- TX of Arduino.
b. TX of Bluetooth module- RX of Arduino
c. VCC- 5V of Arduino.
d. GND- GND of Arduino
Upload the following code to Arduino:
EasyEDA: Ideas for Circuit Design, Innovation for Electronics Access
Free Circuit Design: Schematic - Simulation - PCB Layout - Gerber Viewer
JLCPCB Prototype & Small-batch PCB: Only $2 for 10pcs 10×10cm PCBs, 24 hours Quick Turn, DHL Delivery in 3 Days