Measure And Display The Ambient Light With Pmod & Arduino

About the project

This project uses Pmod ALS and Arduino Uno to measure and display the ambient light. In this app, the value of the amount of light is displayed on the serial monitor.

Project info

Difficulty: Easy

Platforms: ArduinoDigilent

Estimated time: 1 hour

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

Pmod ALS Pmod ALS https://ro.mouser.com/ProductDetail/Digilent/410-286?qs=s%2FdyVPQMB4xDa7o7sikQHw%3D%3D x 1

Software apps and online services

Arduino Arduino

Story

This is a demo project for the Digilent Pmod ALS. The ambient light intensity is measured, converted to an 8-bit number, and displayed on the Serial monitor. To control the Pmod, an Arduino UNO is used, which also sends the data to the computer. To communicate with the peripheral device, SPI communication protocol is used, in mode 0, with a serial clock frequency between 1MHz and 4MHz. Data is sent in 2 bytes, with 3 leading and 4 trailing zeros, which should be eliminated at processing and is displayed one measurement in a line. The sensor saturates at an output value of 125.



Schematics, diagrams and documents

Pmod ALS and Arduino Uno Fritzing Image

Code

Pmod ALS and Arduino Uno Code

Credits

Photo of Digilent Inc

Digilent Inc

Digilent Inc., a National Instruments company, is a leader in the design, manufacture and worldwide distribution of FPGA development boards and Test and Measurement devices for both industry and education. Since our founding in 2000, Digilent has partnered with different leading semiconductor companies including Xilinx, Microchip, Analog Devices, ISSI and Texas Instruments to bring products with the latest embedded & electronics technology. Our expert team of engineers, combined with our manufacturing services and worldwide distribution has made us an ideal partner for several leading technology providers. We want to enable our partners to be successful through well designed, high quality and well manufactured hardware.

   

Leave your feedback...