Go Down

Topic: RE200B PIR Component (Read 10163 times) previous topic - next topic

low5545

Can anyone help me to make a PIR sensor circuit according to the RE200B and a Fresnel Lens? Datasheet and pictures attached.

Datasheet: http://www.escol.com.my/Datasheets_specs/RE200B.pdf









arduino-freelancer.blogspot.com

Magician

Connect D (pin 1) to +5V, S (pin 2) to 47 kOhm resistor to ground, and consequently G (pin 3 ) to ground GND.
Then connect S (pin 2) also to analog input pin of arduino. Take a reading using analogRead.

Techone

@low5545

Just I post in the posting "op-amp", Connect + 5 to -->choose between 1 K to  4.7 K --> D, S ---> choose between 1 k to 4.7 K --> GND and G is GND.       Sorry Magician...       I looked at the datasheet, the sensor is a IR detector and a JFET for D & S, there for a commun source amplifier.

I forget, connect a 1 uF to 10 uf in // with resistor connect  to S to GND.  And you may amplify the signal using op-amp, you may "convert" the signal into TTL. The only way to make sure is to "see" what type of signal you have is to use a "scope" to check & see the signal.

My opinion.

Magician

Don't agree, read data sheet again.
1. For max.  source capability 2 mA, resistors 1k + 1k are way too low, allow 2.5 mA with 5V power.
2. Bias voltage of JFET 3.6 - 4.4 V leaving almost nothing for drain resistor, again with 5V.
3. JFET is a transconductance amplifier, should be wired as common drain :
http://en.wikipedia.org/wiki/Common_source
4. Capacitor doesn't make any sense at all, as it pure DC amplifier, thermo IR is too slow to react on freq.
F = ~ 1 / C x R = 1 / 10^-5 x 10^3 = 100 Hz.
5. The answer is in small font on picture posted - "100 k resistor between pin 2 and 3" (source to ground) 

Techone

@Magician

My mistake... I agree with you. Forget about the capacitor in this case. It look like the sensor work in "Level changing" , in that case... the signal will be connect to a comparator for a proper level signal ( 0 V or 5 V ) and connect to the Arduino.

Magician

Yes, sure OP can use external comparator, but it easier to use analog input port, and implement "software comparator" which could be set to any value in range 0 - 1023. All it would take three pieces of wire and one resistor to attach sensor to arduino.

Techone

A "software comparator" like --->

if (analogRead( anyanalogpin) < 512 )
{ // do you thing }
else
{ // do other things  }

... that is a simple idea.. I may use that in my projects. Thank Magician...

low5545

Quote
A "software comparator" like --->

if (analogRead( anyanalogpin) < 512 )
{ // do you thing }
else
{ // do other things  }

... that is a simple idea.. I may use that in my projects. Thank Magician...


Tried it. It maintains on 124-126. Too small to see a change. Is a Op-Amp IC like LM324 and a Comparator IC like LM339 able to amplify a compare the signal to produce a 5V/0V Output?
arduino-freelancer.blogspot.com

Techone

Quote
Is a Op-Amp IC like LM324 and a Comparator IC like LM339 able to amplify a compare the signal to produce a 5V/0V Output?


YES.  Bear in mind the LM324 need dual power supply. The LM339 do not use a dual power supply. It will work using a +5 V for the LM339.

low5545

Quote
Insert Quote
Quote
Is a Op-Amp IC like LM324 and a Comparator IC like LM339 able to amplify a compare the signal to produce a 5V/0V Output?

YES.  Bear in mind the LM324 need dual power supply. The LM339 do not use a dual power supply. It will work using a +5 V for the LM339.


Dual power supply? What does it mean?
arduino-freelancer.blogspot.com

Techone

It mean a plus side  - positive Rail.   A negative side - Negative Rail  and a commun rail.

----------------------------------    + 5   <-- goes to +V of the op-amp example : pin 7 of a LM741


-------------------------------------  GND  <-- the commun line for your signal and goes to GND of the Arduino


-----------------------------------  - 5   <--  goes to -V of the op-amp. example : pin 4 of a LM741

Here a site : http://www.play-hookey.com/analog/experiments/basic_op_amp_inverter.html
Just "surf" the site.

For what you need is a comparator. A LM339 only need a single supply ( +5 V is OK ) You simply set the voltage "tipping" point. A 50 K potentiometer to set the voltage treshold <-- Tipping point and reference point.  Connect to the - or + input The signal of the sensor goes to the + or - input.

I recomment you experiment so you have a better understanding.

http://www.play-hookey.com/analog/comparators.html    

low5545


How come dual power supply for the LM324? According to the internal circuit above, it is only Single.
arduino-freelancer.blogspot.com

Techone

@low5545

In general, most op-amps need a dual voltage to operate ex: LM741. In the case of the LM324, It need a single voltage supply connect to pin 4 of the chip and GND at pin 11 of the chip.   

My appology for confusing and mislead you.

A +5 V supply may work... ( you have to experiment to check if it is working )

low5545



According to the LM324 Op-amp above, if I want to amplify a signal, do I connect it like:

-pin 4 (V+) ------------- 5V
-pin 11 (GND) ---------- Ground
-pin 2 (-input 1) -------- Ground
-pin 3 (+input 1) ------- RE200B PIR Signal Output

-pin 1 (output 1) -------  Amplified signal

Is this connection able to amplify the signal made from the RE200B PIR component? I may need to amplify it a few times with this op-amp IC to get a bigger change.
arduino-freelancer.blogspot.com

Techone

Quote
-pin 4 (V+) ------------- 5V
-pin 11 (GND) ---------- Ground
-pin 2 (-input 1) -------- Ground
-pin 3 (+input 1) ------- RE200B PIR Signal Output

-pin 1 (output 1) -------  Amplified signal

Is this connection able to amplify the signal made from the RE200B PIR component? I may need to amplify it a few times with this op-amp IC to get a bigger change.


Amplify signal in this connection ?  NO     

The way you  connected is a comparator configuration.

Go Up