lopuh@void:
~/projects/light_rate$
// photosensor data acquisition system
~/
../
~/log
~/contact
$
stat
project.info
Name: light_rate
Link:
L0puh/light_rate
Type: embedded data acquisition
Hardware: Arduino UNO
Status:
"completed"
Sensors:
"5516 photoresistor"
$ ls -la media/
plot.png
[333px]
video.gif
[450px]
$ cat overview.txt
// Project Description
This project uses a photosensor to measure the analog
intensity of light and calculates the rate of change
of light intensity over time. Real-time visualization
on LCD display with Python data logging and plotting.
$ cat hardware.txt
// Technology Stack
-
arduino uno
-
LCD screen (1602A)
-
5516 photoresistor
-
I2C Converter
-
python
with:
* matplotlib
* pyserial
-
arduino library
:
* LiquidCrystal_I2C
$ ls -la schematics/
circuit.png
[schematic diagram]
$ ./run.sh
# How to Run
## 1. Assemble the circuit
$
# Connect components according to schematic
## 2. Install LiquidCrystal library
$
arduino-cli
lib install "LiquidCrystal I2C"
## 3. Connect Arduino
$
ls
/dev/ttyUSB*
/dev/ttyUSB0
# typically on Linux
## 4. Run the system
$
./run.sh
# [INFO] Uploading to Arduino...
# [INFO] Starting Python visualization...
# [INFO] Reading sensor data...
# [INFO] Generating plot...
$ cat sensor_specs.txt
// Photoresistor 5516 Specifications
Type: Cadmium Sulfide (CdS) photocell
Resistance Range: 10KΩ - 1MΩ
Spectral Peak: 540nm (green)
Response Time: ~75ms (rise), ~150ms (fall)
Operating Temp: -30°C to +70°C
Analog Pin: A0 (Arduino UNO)
Arduino
Python
Matplotlib
PySerial
LCD
Sensor
I2C
DAQ