In this project, the resistance of the LDR varies significantly with ambient light, hence it can detect surrounding light intensity changes in real time. In this project, 4Duino’s resistive touch display is used as a means for displaying the detected light intensity using LED digits and an angular meter.
How it Works- LDR sensor
- Bread Board
- Jumper cables
- uSD card
- Micro USB cable
Build the circuit as shown in the following diagram and schematic.
Workshop 4 – 4Duino Extended Graphics environment is used to program this project.
This project requires the Arduino IDE to be installed as Workshop calls the Arduino IDE for compiling the Arduino sketches. The Arduino IDE however is not required to be opened or modified to program the 4Duino.
Open this file using Workshop 4.
Note: Download the project here.
Step 3: Comms PortConnect the 4Duino to the PC using uUSB cable. Then navigate to the Comms tab and select the Comms port to which the 4Duino connected.
Finally, go back to “Home” tab and now click on the “Comp’nLoad” button.
The Workshop 4 IDE will prompt you to insert a uSD card to the PC in order to save the widget images. Insert uSD card, select the appropriate drive and press button “OK”.
If the uSD card has the widget images you can click button “No Thanks”.
Step 5: Insert uSD cardAfter uploading the program in to the 4Duino, it will try to mount the uSD card. If the uSD card is not present it will prints an error message.
All you need to do is insert the uSD card you saved the image files into the 4Duino.
DemonstrationNow you can read the light intensity displayed on 4Duino.
Comments