Project in progress
Solar Powered, Cellar Lighting Arduino Control

Solar Powered, Cellar Lighting Arduino Control © GPL3+

Simple LED lighting using Arduino Nano.

  • 2,048 views
  • 0 comments
  • 5 respects

Components and supplies

LE 16.4ft 300 SMD 5050 LEDS Flexible Strip LIghts
×2
Ard nano
Arduino Nano R3
×1
Generic Reed Switch
×1
RFP30N06LE 30A 60V N-channel Mosfet TO-220
×1
Mfr 25frf52 1k sml
Resistor 1k ohm
×2
10k Ohms Potentiometer
×1
10k Ohms Potentiometer
×1

Necessary tools and machines

Hy gluegun
Hot glue gun (generic)
I used epoxy to glue down led strips but this may work.
09507 01
Soldering iron (generic)

Apps and online services

About this project

Video

About

I found it necessary to have some lighting in my cellar. On the occasion we need it for an emergency and other than that we use it for storage. We haven't had a good lighting setup in there so I decided to make one. A person could use this setup in a room or an office or for whatever purposes you can think of.

Originally I attempted using just a potentiometer to control the lights inside BAD IDEA. These LEDs pull several amps. On adjustment of the potentiometer, it burn up rendering it useless. You could build a similar circuit without an Arduino, but I love coding and building things with them. So onto the simple build using Arduino Nano.

A step to completing this would be to add another 12v SLA battery in parallel to have more battery power. In my calculations there isn't a whole lot of power in these smaller cells to last very long. Another thing would be to build a generator on the turbine to charge the batteries as well. But this is as it is for the moment. Another further step would be to add an IoT board to have access from anywhere in the local network.

Code

Cellar ControlArduino
Controls the lighting.
#define lights 9 //connects to gate of mosfet
#define reed 5
int pot = A0;

void setup() {
  Serial.begin(9600);
  pinMode(lights, OUTPUT);
  pinMode(reed, INPUT_PULLUP);
}

void loop() {
  
  
  delay(200);
  int control = analogRead(pot);
  control = map(control, 0, 1023, 0, 255);
  Serial.println(control);
  delay(200);
  //analogWrite(lights, control);

  int trig = digitalRead(reed);
  if(trig == LOW && control <= 15){
    Serial.println("door open");
    analogWrite(lights, 255);
    delay(5000); 
    analogWrite(lights, 0);
    delay(25000);     
    }
    
  if(trig == LOW && control >= 15){
    Serial.println("door open but using");
    analogWrite(lights, control);
    }
    
  if(trig == HIGH && control >= 30){
    Serial.print("closed but inside");
    analogWrite(lights, control);
   }
   
  if(trig == HIGH && control <= 10){
    Serial.print("closed shut off lights");
    analogWrite(lights, 0);
  }
}

Custom parts and enclosures

Cellar Arduino Schematic
cellararduino_X1lyVa4iv5.svg

Schematics

Arduino Cellar Schematic
cellararduino_1QzTma1IuL.svg

Comments

Similar projects you might like

Mobile Weather Station Being Powered by Solar Energy

Project tutorial by Kutluhan Aktar

  • 2,543 views
  • 0 comments
  • 12 respects

Integrated Solar ChargeController, Inverter, PowerBank, Lamp

Project tutorial by Shahariar

  • 7,733 views
  • 16 comments
  • 30 respects

Solar Battery Powered Switch for Blinds, Lights, and Charger

Project in progress by Leon Chu

  • 3,129 views
  • 0 comments
  • 12 respects

Raspberry Pi - Powered Candy Dispenser

Project tutorial by Arduino “having11” Guy

  • 5,284 views
  • 1 comment
  • 12 respects

Control an LED with the Remote Control

Project showcase by Nicholas_N

  • 3,195 views
  • 2 comments
  • 9 respects

RGB Camera Backlight Control With Android Mobile

Project tutorial by DIY Partners

  • 2,028 views
  • 1 comment
  • 8 respects
Add projectSign up / Login