This is the simple example of setting brightness of LED.
This hands-on lab guide is intended for the Beginners.
The user needs to know:
All important information including the address of devices is enclosed in the description of the laboratory. In that scenario, the user should write a program in Arduino platform which turns on and off LEDs for the specified time 15 seconds. LED brightness can be controlled by setting variable “level” from 0 to 4095.
As a result user can control in cameras program execution.
In the beginning, both cameras must show that all LEDs are off.
First load an example project, include appropriate libraries and declare variable ledDriver
#include <Wire.h> #include <PCA9685.h> PCA9685 ledDriver;
Please scan I2C bus and check if PWM controller is present.
Write a programm which:
ledDriver.setLEDDimmed(number,level)
Repeat step 3 ten times.
Both cameras must show LED blinking in given periods of time.