Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 15th October 2007, 02:27 PM   (permalink)
Default how to solve this

i have built a small circuit to detcet how much light in the room and i decide to use it in my robot to detcet the ambiant light . , and if the output of this circuit is high then my robot will light up some LEDs.......my problem is suppose that my circuit detced that there no light then the internal LEDs will light up and that mean they light detcteor circuit will detcet again that there are light in the room and then shutdown the internal light .

how to solve that .

bytheway i'm using 16f877 pic circuit to control that



here is the light detector circuit .
Attached Images
File Type: gif sens.gif (4.5 KB, 25 views)
watzmann is offline  
Old 15th October 2007, 02:33 PM   (permalink)
Default

Quote:
Originally Posted by watzmann
i have built a small circuit to detcet how much light in the room and i decide to use it in my robot to detcet the ambiant light . , and if the output of this circuit is high then my robot will light up some LEDs.......my problem is suppose that my circuit detced that there no light then the internal LEDs will light up and that mean they light detcteor circuit will detcet again that there are light in the room and then shutdown the internal light .

how to solve that .
Make sure the light from the LED's can't reach the LDR, althought here seems little point having an LED to show if it's dark or not, your eyes can already do that?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 15th October 2007, 08:10 PM   (permalink)
Default

Turn off the LEDs and wait for 1mS.
Measure the room light.
Turn on the LEDs.
Your light detector looks fast but if 1mS is not enough time wait 5mS. It works for me and I am waiting less than 1mS! Your eye will not see the off time.
ronsimpson is offline  
Old 16th October 2007, 02:52 AM   (permalink)
Default Problem using PicBasic Pro

i'm using PIC16F84A to made a clock with an alarm, but now i have a problem with the picbasic program.Every time i write PORTA.1 as porta pin 1 in the program, it show error message in asm file.how i define each pin in the program?
by default the program set the
PORTL VAR PORTB
PORTH VAR PORTA
TRISL VAR TRISB
TRISH VAR TRISA

let say if i want to use PORTA pin 1 to receive send signal to trigger the alarm,how should i write the code?
cyber88 is offline  
Old 16th October 2007, 03:48 AM   (permalink)
Default

The coverage of ambient light is stronger and larger than a single LED or cluster of LEDs. Just as other said, point the LEDs away from the detector. Are your LEDs meant to serve as an small indicator or as a secondary source of room illumination? Is the detector and LEDs mounted close to each other on the board or inside a small cover?
donniedj is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Help me solve these electronic circuits for my class please? kasper03 General Electronics Chat 9 21st December 2005 12:02 PM
a c program i can not solve. kinyas General Electronics Chat 4 18th October 2005 03:46 PM
I really cannot solve this circuit. SeanHatch General Electronics Chat 5 23rd September 2005 01:10 AM
Most suitable type of capacitors to solve noise problems? Haru General Electronics Chat 3 9th May 2005 11:58 PM
ADC0804 offset value? can it solve or???? soohino Electronic Projects Design/Ideas/Reviews 4 18th January 2005 09:10 AM



All times are GMT. The time now is 06:34 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker