Go Down

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

low5545

How to amplify a circuit then?
arduino-freelancer.blogspot.com

Techone

Ok, I would like to share a schematic, but I have to go to the cottage. ( Sorry I was not responding to quickly because my modem just "quit" , it "stuck" my telephone line . ) I will try to get some schematics on Monday - late afternoon after I am back from the cottage.

Anyway here a few link : http://www.play-hookey.com about op-amps and a few things, check http://www.falstad.com/, it got a circuit simulator, http://www.electronics-tutorials.ws/, Some eclectronics tuturails, http://www.doctronics.co.uk/beastie_zone.htm, more to check out. And http://www.kpsec.freeuk.com/study.htm

Anyway, check out those sites, experiments with your sensor. Hope you have a breadboard, a few parts, maybe a scope, but at least a DMV- Digital Multi Meter. I just bought for under $40 at Canadian Tire - Electrical Section. The have a few cheap one in the Automotive Section ( between $25 to $35 )
 
Sorry that you have a lot to read. That learning is all about

Techone

I am back... here a transistor version to amplify the signal. But I still don't know what kind of signal the sensor is using... ( square ?? sine ..?? a DC output ?? ) 

Techone

Here an another amp circuit...I come across yesterday, It cam from EPE mag October 1993.

himawari

i am using the same pir sensor re200b and arduino uno r3 for my thesis. fyi, i'm still a newbie about arduino and electronic component. i use the same circuit which is:

G to GND
D to 5V
S to 47k ohm resistor
S to analog input A2
LED to digital output 8, 220 ohm resistor and to GND

i use this coding:

int ledPin = 8;                // choose the pin for the LED
int inputPin = A2;               // choose the input pin (for PIR sensor)
int pirState = LOW;             // we start, assuming no motion detected
int val = 0;                    // variable for reading the pin status

void setup() {
 pinMode(ledPin, OUTPUT);      // declare LED as output
 pinMode(inputPin, INPUT);     // declare sensor as input
 Serial.begin(9600);
}

void loop(){
 val = digitalRead(inputPin);  // read input value
 if (val == HIGH) {            // check if the input is HIGH
   digitalWrite(ledPin, HIGH);  // turn LED ON
   delay(150);

   
   if (pirState == LOW) {
     // we have just turned on
     Serial.println("Motion detected!");
     // We only want to print on the output change, not state
     pirState = HIGH;
   }
 } else {
     digitalWrite(ledPin, LOW); // turn LED OFF
     delay(300);    
     if (pirState == HIGH){
     // we have just turned of
     Serial.println("Motion ended!");
     // We only want to print on the output change, not state
     pirState = LOW;
   }
 }
}


but the LED doesn't stop blinking the whole time and doesn't respond to motion. i don't know what is the problem

Go Up