Screen Recording Video

I used the input device in assignment 10 to create a simple software that indicates the changing values of the phototransistor in an interactive way. When i prevent light from the phototransistor the brightness of the red color decreases and vice versa.

PHASE 1 |Write the code

Using Arduino

Using arduino and serial communication, I programmed the IC. After uploading the code, the serial monitor showed different values according to change in light resistance value as shown below.

After programming the LDR circuit, I tried to use it with processing as an indicator for the LDR given values.

arduino code serial

serial monitor

PHASE 2 |Application Programming

using Processing

The simple application is an indicator of the effect of the LDR.

At the top of the page you will find a video of the proccesing LDR indicator.

A code for the serial and the LDR, to connect the input of the LDR and make it send messages to processing in form brightness.

processing

PHASE 3 |Connect the LDR circuit

Steps:

  1. Burn bootloader
  2. Upload the code written previously
  3. Test through serial monitor and the processing brightness detector

 

Files

Processing code

Arduino code

 

 

 

 

emailmariamwaelgado@gmail.com

websitehttp://mariamwaelgado.wix.com/
mariam-wael