recently i'm doing a proj abt sensor.. i need to use 8051 program to control the alarm system..
its used to programmed so that the alarm will be trigger when the person being detected by the sensor..
is anyone of u all know how to search for the bitwise of the sensor?
or is anyone of u got the similar program of this?
You can use ultrasonic to detect person . Then connect the trigger signal to 8051 INT pin. When the ultrasonic detect person, will enable the interrupt sub-routine . you can wirte a sample code in this . and the external driver circuit can use BJT in common emitter mode.
It depends on your sensors. Normally, we put a driver circuit between 8051'ports and sensors. Sometimes it is called an "applified circuit", sometime it is a current to voltage converter, and sometime it is a frequency to voltage converter, etc.
So, should remember that the microcontroller 8051 familly only accepts all signals with TTL standards.
I'm using the photoelectric sensor to detect the person and trigger a alarm output..
Actually the sensor is just a small photoelectric switches... required a DC 10V and current< 100mA..
When i test the sensor with the LED, the LED light up when sth is block in front of the sensor... but once i connect its to the 8051 and the LED directly from the output of the sensor, its light up once i turn on the power supply without sensing...
This is the problem i'm facing now.. don't know whether my program or circuit is wrong..
Got any idea from u all?? Can guide me??
It is a photoelectric reflex switches from a company called 'Sick'.. Part no: WT4-2N132
The Light source, light type = LED, red light..
The switching output is NPN..
Switching mode is light-switching..
NPN; signal voltage HIGH =Approx. VS
NPN; signal voltage LOW =< 1.5 V
Max. switching frequency= 1000/s