Light related project

Digital Fiber, Photoelectric, Laser Range, Optical, Temperature, Rotary Encoder, Ultrasonic, Gas, Gyro, Accelerometer, FlexiBend, Flexiforce, Compass......

Light related project

Postby AllesonBong » Sat Mar 24, 2012 11:21 am

Hi,
I'm doing my pre-FYP this semester. Title " Office Lighting Monitoring System". Any suggestion for the hardware part from you guys? Can you recommend what sensor I can implement in my project. Currently I'm using SK40C with PIC18F4550. Any tutorial related to my topic? Thanks a lot in advance. :)
AllesonBong
Freshie
 
Posts: 4
Joined: Sat Mar 24, 2012 10:40 am

Re: Light related project

Postby Idris » Sat Mar 24, 2012 3:16 pm

Hi,
I'm doing my pre-FYP this semester. Title " Office Lighting Monitoring System". Any suggestion for the hardware part from you guys? Can you recommend what sensor I can implement in my project. Currently I'm using SK40C with PIC18F4550. Any tutorial related to my topic? Thanks a lot in advance. :)


Light Monitoring? Just use LDR, simple.
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

Re: Light related project

Postby ABSF » Sat Mar 24, 2012 4:35 pm

AllesonBong WROTE:Hi,
I'm doing my pre-FYP this semester. Title " Office Lighting Monitoring System". Any suggestion for the hardware part from you guys? Can you recommend what sensor I can implement in my project. Currently I'm using SK40C with PIC18F4550. Any tutorial related to my topic? Thanks a lot in advance. :)


" Office Lighting Monitoring System" is a very general subject. You need to be more specific so people can help you. We dont know "What" and "Why" is your purpose to monitor the office lighting. Was it to save electricity costs or you want to turn on the lighting using touch sensor or sound.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Re: Light related project

Postby AllesonBong » Wed Mar 28, 2012 12:46 pm

ABSF WROTE:
AllesonBong WROTE:Hi,
I'm doing my pre-FYP this semester. Title " Office Lighting Monitoring System". Any suggestion for the hardware part from you guys? Can you recommend what sensor I can implement in my project. Currently I'm using SK40C with PIC18F4550. Any tutorial related to my topic? Thanks a lot in advance. :)


" Office Lighting Monitoring System" is a very general subject. You need to be more specific so people can help you. We dont know "What" and "Why" is your purpose to monitor the office lighting. Was it to save electricity costs or you want to turn on the lighting using touch sensor or sound.

Allen


Thanks for the reply. The main objective is to monitor the usage of lighting in an office. I'm struggling finding what is the best way to monitor a lighting system. I've done some research. There is the simple way and the complicated way. The simple way is to use only LED to indicate the light in the office is turned on. Of course the LED is connected to the LDR sensor circuit. But what is the point using PIC18F4550. So i'm using the PIC and LDR, and creating the GUI using VB2008. Any advise on how to create the sensor circuit using PIC18F4550? The sensor circuit supposed to send info to GUI which is the monitoring system, through the PIC and SK40C. The purpose of the sensor is not to turn the light on but just to detect the light is on. Just asking for some advise and ideas..thanks :)
AllesonBong
Freshie
 
Posts: 4
Joined: Sat Mar 24, 2012 10:40 am

Re: Light related project

Postby shahrul » Wed Mar 28, 2012 1:10 pm

Create LDR sensor to PIC18F4550?
LDR sensor is resistance change, so just add another resistor to do Voltage Divider. It's not building sensor for PIC18F4550, that is general for all microcontroller that can read analog voltage.

GUI for the sensor monitoring.
You can use UART transmission. You connect PIC with USB-to-UART and connect to Visual Basic.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: Light related project

Postby Idris » Wed Mar 28, 2012 2:58 pm

1. Create a voltage divider, use 10kohm.
2. Read the analog value.
3. Sent data to PC using UART to USB.
4. Visual Basic display the data.
Done! :D

How many LDR is used?
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

Re: Light related project

Postby AllesonBong » Sun Apr 01, 2012 12:13 pm

Idris WROTE:1. Create a voltage divider, use 10kohm.
2. Read the analog value.
3. Sent data to PC using UART to USB.
4. Visual Basic display the data.
Done! :D

How many LDR is used?

Thanks....For the moment I use only 3 LDRs..what do you have in mind? I would like to hear it :)
AllesonBong
Freshie
 
Posts: 4
Joined: Sat Mar 24, 2012 10:40 am

Re: Light related project

Postby ABSF » Sun Apr 01, 2012 9:19 pm

AllesonBong WROTE:For the moment I use only 3 LDRs..what do you have in mind? I would like to hear it


Only 3 LDRs ? Should be a piece of cake. :mrgreen:

I've just started a similar project that monitors 16x 24V 48W dc lamps used in a boat. I use 0.1 ohm in series with the lamp to drop 0.2V and use that as an input for my PIC. As my PIC only has 8 ADC, I have to use multiplexers to combine 4 inputs to one output and an op-amp to amplify 0.2V to something higher before entering the ADC.

I dont need GUI to display the activities. Just a front panel with LED and push bottons controlled by a second PIC. The 2 PICs would talk to each other using UART interface. Have you started with the LDR and writing programs for PC GUI or the C programs for the PIC? You can always simulate the PIC part on proteus. The Proteus is quite powerful, it has a UART terminal built-in and can be called out to test the PIC UART functions.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Re: Light related project

Postby robosang » Thu Apr 05, 2012 10:46 am

ABSF WROTE:I've just started a similar project that monitors 16x 24V 48W dc lamps used in a boat. I use 0.1 ohm in series with the lamp to drop 0.2V and use that as an input for my PIC. As my PIC only has 8 ADC, I have to use multiplexers to combine 4 inputs to one output and an op-amp to amplify 0.2V to something higher before entering the ADC.

I dont need GUI to display the activities. Just a front panel with LED and push bottons controlled by a second PIC. The 2 PICs would talk to each other using UART interface. Have you started with the LDR and writing programs for PC GUI or the C programs for the PIC? You can always simulate the PIC part on proteus. The Proteus is quite powerful, it has a UART terminal built-in and can be called out to test the PIC UART functions.
Allen

Sound interesting :D
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: Light related project

Postby wjx9843 » Thu Apr 05, 2012 2:35 pm

ABSF WROTE:
AllesonBong WROTE:For the moment I use only 3 LDRs..what do you have in mind? I would like to hear it


Only 3 LDRs ? Should be a piece of cake. :mrgreen:

I've just started a similar project that monitors 16x 24V 48W dc lamps used in a boat. I use 0.1 ohm in series with the lamp to drop 0.2V and use that as an input for my PIC. As my PIC only has 8 ADC, I have to use multiplexers to combine 4 inputs to one output and an op-amp to amplify 0.2V to something higher before entering the ADC.

I dont need GUI to display the activities. Just a front panel with LED and push bottons controlled by a second PIC. The 2 PICs would talk to each other using UART interface. Have you started with the LDR and writing programs for PC GUI or the C programs for the PIC? You can always simulate the PIC part on proteus. The Proteus is quite powerful, it has a UART terminal built-in and can be called out to test the PIC UART functions.

Allen

Wow!.. waiting to see more for this... :)
wjx9843
Freshie
 
Posts: 4
Joined: Thu Mar 03, 2011 3:23 pm

Next

Return to Sensor

Who is online

Users browsing this forum: No registered users and 23 guests