We want to create a simple system which would regulate the intensity of interior lighting depending on the amount of sunlight coming in.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
Hi guys !
One day left before the exhibition of our project and we are pleased to announce you that we succed !
At the very beginning we wanted to create a device that changes the intensity of a light depending of the exterior light ! And that's what we got now.
I will show you quickly the aspect of the project without his box and you'll see the box in few days.
Here is the final montage that will be detailled very soon. You will be able to create an adaptive lightning thanks to our instructions.
Here is the project working.
Hello again!
we have finally made some noticeable progress in our project. After a lengthy discussion with our supervisor, he advised us to try and make a our concept work a single led, and guess what IT WORKS !
it took us some time but we eventually were able to figure it out. the pictures above and bellow show the circuit we built and used.
We also came up with the code which we will share soon on our next log.
Here is the repost of the log from 17/05/2018 :
Today we figured out that for our project we would use PWM (Pulse With Modulation) to synthesize our continuous signal.
In order to connect our LED strip to the Arduino we need to reproduce the following image.
Here is the repost of the log from 05/03/2018 :
Hi guys !
The components we ordered finally arrived :
- a light sensor
- a LED strip
- an arduino "Leonardo"
- a 10 Kohm resistors
- transistors
- a 12V 2A Power supply
We also started making the arduino program conected to the light sensor. The program we have recognize the intensity of ambient light and tells us if it is :
- Dark
- Light
- Luminous
- More luminous
- Very bright
We now have to deal with a mean to connect the LED strip to the arduino and modify our code to change the intensity of led light according to ambient light.
See you !
Hey guys !
We will start our project in an experimental way.
The theoretical part is very well advanced and we now know in which direction to start.
This project is very interesting although complex but we are convinced that within 1 month we will be finished.
For now we are looking forward to receiving the components and getting to work.
See you very soon !
1st of all we decided to use a photoresistance in order to collect the ambiant light.
Furthermore we are using a led strip of 12V so we needed to put a transistor.
We followed the following scheme.
We add at this scheme the photoresistance.
If you want to create the same thing as we did follow the cable management.
int led = 9; // the PWM pin the LED is attached to
int brightness = 0; // how bright the LED is
int fadeAmount = 100000000; // how many points to fade the LED by
int photocellPin = 0; // the cell and 10K pulldown are connected to a0
int photocellReading;
// the setup routine runs once when you press reset:
void setup() {
// declare pin 9 to be an output:
pinMode(led, OUTPUT);
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// set the brightness of pin 9:
analogWrite(led, brightness);
// change the brightness for next time through the loop:
brightness = brightness + fadeAmount;
// reverse the direction of the fading at the ends of the fade:
if (brightness <= 0 || brightness >= 255) {
fadeAmount = -fadeAmount;
photocellReading = analogRead(photocellPin);
Serial.print("Analog reading = ");
Serial.print(photocellReading); // the raw analog reading
// We'll have a few threshholds, qualitatively determined
if (photocellReading < 200) {
Serial.println(" - Dark");
brightness = 255;
} else if (photocellReading < 500) {
Serial.println(" - Light");
brightness = 100;
} else if (photocellReading < 600 ) {
Serial.println(" - Luminous");
brightness = 50;
} else if (photocellReading < 700 ) {
Serial.println(" - More luminous");
brightness = 20;
} else {
Serial.println(" - Very bright");
brightness = 0;
}
Serial.print(brightness );
delay(5);
}
// wait for 30 milliseconds to see the dimming effect
delay(30);
}
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates