Can anybody help me, im doing a project , my title is build a simple microcontroller based smoke detector, it just a simple circuit with output led and buzzer and input ldr but im dont what component i need to use and how to build the whole circuit and so the programming work. Can anybody help me plz?
From what you have listed, i am assuming you are planning on using the ldr to detect when the light source dims(based on the intro of smoke) and then activate the led and buzzer?
From what you have listed, i am assuming you are planning on using the ldr to detect when the light source dims(based on the intro of smoke) and then activate the led and buzzer?
I would think something like this could work: **broken link removed**
I would think that the distance needs to be rather far apart because more smoke means more attenuation.
So, at power up, you could do a calibration. In operation, you would want to check for aging. Either the detector gets some dust on it over time or the combo ages. In the box itself have a recalibrate button for when someone cleans the detector with a burst of air or have it happen when the lid is removed/replaced.
The basic design is a current to voltage converter and a constant current source.
You need a low battery alarm with a possible blinking LED.
You need a test button.
You can buy smoke in a can to test detectors.
For extra credit:
You could make it mains powered with battery backup
You could make it addressable.
Allow multiple detectors.
Use and EOL terminator.
Have them talk to a min panel.
You still need to signal condition the sensor and the battery voltage varies over time. So, the LED needs a current source or a voltage source and a resistor. The output could be just a resistor and a phototransistor to ground, BUT you would have to make the circuit ratio-metric meaning the output is relative to the supply voltage.
I have draw my schematic like tis below it just a simple smoke detector and now i dont know how to write the program? anybody can help me? my idea is ADC that program.
The PIC16F84A does not have an ADC. You are advised to go to a PIC16F628A.
You will also need an amplifier on the output of a Darlington Photo Transistor to detect the small change in output.