PT
Uma estrela de Natal no Monte das Caldas em Braga Portugal.
A 305 metros, lá no alto do monte das Caldas, instalei uma estrela para dar algum brilho a este Natal.
É uma construção muito simples e com Led branco. Alimentado com uma bateria Litio 10Ah e um painel Solar de 20W. De forma a ter um baixo consumo de energia, utilizei um microcontrolador que gere o tempo ligado e tempo desligado e com um controlo de potência por PWM.
- Painel Solar: 20W
- Regulador SOLAR
- Bateria 10Ah 12V
- Controlador Arduino, com programa para criar um efeito de pisca pisca aleatorio controlando usando sempre a menor energia possÃvel.
- Potência por Mosfet
Corrente: I média 200mA por 8 horas; I = 1,6Ah por noite
Estimativa de carga por energia solar: 1hora Sol dia - 20Wh/dia
Schematic
_______________________
Programa para o controlo da estrela | Code C+ Arduino
____________________________________________________________
int led = 9; // the pin that the LED is attached to
int brightness = 0; // how bright the LED is
int fadeAmount = 10; // how many points to fade the LED by
int randNumber = 0;
int conta = 0;
int liga =0;
int delaytime =50;
void setup() {
pinMode(led, OUTPUT);
randNumber = random(10, 20);
}
void loop() {
if (liga == 0) conta++;
if (conta == randNumber) {liga=1; conta=0;}
if (liga == 1)
{
analogWrite(led, brightness);
brightness = brightness + fadeAmount;
if (brightness == 0 || brightness == 220) {
fadeAmount = -fadeAmount ;
if (brightness == 0 ) {liga=0; analogWrite(led, 0);randNumber = random(2, 80);}
}
}
delaytime = random (30, 120
);
delay(delaytime);
}
______________________________________________________________
A Christmas star at "Monte das Caldas" in Braga Portugal.
At 305 meters, at the top of Monte das Caldas, I installed a star to add some sparkle to this Christmas.
It is a very simple construction with white LED. Powered with a 10Ah Litio battery and a 20W Solar panel. In order to have a low energy consumption, I used a microcontroller that generates on and off time and with a PWM power control.
Solar Panel: 20W
SOLAR regulator
Battery 10Ah 12V
Arduino controller, with program to create a random blinking effect controlling using always the lowest possible energy.
Power by Mosfet
Current: I average 200mA for 8 hours; I = 1.6Ah per night
Solar energy charge estimate: 1 hour Sun day - 20Wh / di
Sem comentários:
Enviar um comentário