Blogger Widgets

Search This Blog

Monday, 25 June 2012

How to make an Automatic Street Light Controller Using MSP430 Launch Pad

           Hi..There is an idea to make a simple automatic street light controller bulb automatically glow at night and turn off at day time ,using MSP430 launch pad.But the problem is that it is complex compared to cheap existing technology (using LDR and comparator arrangement ),any way I'm happy because I need a simple program to work it. And I use the LED on the Launch Pad for light sensing. mhj The interesting fact I studied from here is that we can use the same LED as light sensing and to glow.
code used for this..........

#include <msp430.h>

void adc_init()
        ADC10CTL0 = ADC10ON | ADC10SHT_2 | SREF_0;
        ADC10CTL1 = INCH_0 | SHS_0 | ADC10DIV_0 | ADC10SSEL_0 | CONSEQ_0 ;
        ADC10AE0 = BIT0;
        ADC10CTL0 |= ENC ;

void start_conversion()
        ADC10CTL0 |= ADC10SC;

unsigned int converting()
        return ADC10CTL1 & ADC10BUSY;

void main()
        int i;
        P1DIR = 0x40;
        P1OUT = 0x0;
                P1OUT = (ADC10MEM < 0x17C)?0x40:0x0;
                for (i=0;i<10000;i++);


        We can connect bulb using some relay arrangement P1.6 of the Launch Pad. And the MSP430 Launch pad can takes power from a Mobile Phone Battery.( It is the advantage of the system it needs only small power)...
       But one of the problem felt my system is the MSP430 Launch Pad need to be always on.( I think It will have some power control mode.)

No comments:

Post a Comment

Blogger Widgets