Previous in Forum: P-T Rating of Flange   Next in Forum: Unified Power Quality Conditioner
Close
Close
Close
13 comments
Rate Comments: Nested
Participant

Join Date: Aug 2013
Posts: 1

How Do I Bridge the Connection to Make the PIR Sensor Work?

08/11/2013 6:33 PM

Hello,I am working on a school project and came across a problem I cannot seem to figure out. I have been trying to figure out how I go about connecting the input/output devices to activate an alarm from the sensors. I tried everything, and cannot believe how many countless hours I have spent trying to figure this out. I am so desparate for somebody to provide a simple explaination/draw a picture (THE BEST, as I'm a visual learner) on where the wires connect etc...This has to be a piece of cake to people like yourself who are very familiar with this type of stuff, but I am far from a professional. I am having some anxiety because this is a very important project that must be completed by the end of the year, and although it may seem like I have plently of time, I am running in circles. I uploaded the information with all the specs on a website here: http://primalpups.weebly.com (image on here may be too small)
Some questions I ask: do I need to buy some type of connector/additional piece to make this work?
Sorry if I am not speaking in the correct "lingo".. This is foreign to me and English is also my second language... thanks again...
input:

output

:

Register to Reply
Pathfinder Tags: alarm circuit PIR sensor
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Oct 2008
Posts: 42355
Good Answers: 1693
#1

Re: How do I bridge the connection to make the PIR sensor work?

08/11/2013 6:51 PM

Look for the schematic. That tells you where the wires go.

We don't do projects, or homework.

Welcome to the real world.

If you have a specific question about a concept or problem, there may be help for you here.

Register to Reply
Active Contributor

Join Date: Aug 2012
Location: Mesa, Arizona
Posts: 17
Good Answers: 2
#9
In reply to #1

Re: How do I bridge the connection to make the PIR sensor work?

08/13/2013 2:56 AM

Lyn, Take a vacation!

Register to Reply Off Topic (Score 5)
Guru

Join Date: Sep 2012
Location: Iowa, USA
Posts: 577
Good Answers: 50
#2

Re: How do I bridge the connection to make the PIR sensor work?

08/11/2013 7:04 PM

Do you have a diagram of how you have tried to connect the HC-SRO4 ultra sound sensor?

Have you read and understand the specification sheet for this ultra sound detector? This sensor requires a microprocessor to work, which one are you using? Arduino, comes up from any sites that reference this sensor.

There is a trigger signal, that you must provide, to the sensor, they suggest a 10 microsecond pulse. From the back edge of the pulse, the sensor puts out a ranging ultrasound, and then will give a echo pulse on another pin. You must measure the time between these pulses to determine is anything is within range. Hence a processor is needed. You could do this with lots of TTL logic.

Then if something is detected at the range you want, you apply power to your siren or piezo alarm devices.

If this is a "class" project, why are you not being given the guidance needed?

All I can say is read the specifications for each of the devices you are wanting to interface, not the images you inserted, but real specifications.

HC-SR04.pdf

The alarm items can be switched on with "open collector" switches, that will apply ground from your processor development kit. Ask about this once you figure out how to interface the ultra sound ranging unit.

__________________
ignator -
Register to Reply
Guru

Join Date: Jun 2010
Posts: 1296
Good Answers: 104
#3

Re: How do I bridge the connection to make the PIR sensor work?

08/11/2013 7:54 PM

As ignator has said, there has to be some device, usually a microcontroller such as an Arduino, to tell (Trigger) the PIR to fire and to interpret the signal received back (Echo) from the PIR module. He has posted a link to a sheet telling how this works. Here's a link to a wiring diagram. But after the wiring hook-up is made, the Arduino must be programmed to perform the communications to and from the PIR module and to control some output pin(s) to 'tell' you what it found (via some device connected to the output pin). To start with, I'd use a simple LED and resistor on the output. I suspect you know that the output devices you show require higher voltage (and current) than the Arduino can provide. After you get the basic function working with a simple LED, you can worry about how to use the small signal to control more power. There is a lot of information available by Google'ing 'HC-SR04'. Good luck and feel free to post your results and any more questions.

Register to Reply
Guru

Join Date: Jun 2010
Posts: 1296
Good Answers: 104
#4
In reply to #3

Re: How do I bridge the connection to make the PIR sensor work?

08/11/2013 11:39 PM

It just occurred to me that the HC-SR04 module is an ultrasonic ranging module, not a PIR (passive infrared) detector. ignator also stated this, but I just wanted to make sure you knew.

Register to Reply
Participant

Join Date: Aug 2013
Posts: 2
#5

Re: How Do I Bridge the Connection to Make the PIR Sensor Work?

08/12/2013 2:30 AM

You must offer a induce indication to the indicator, there is a 10 microsecond beat indicates. From the returning advantage of the beat, from an ultrasound examination indicator is placing out, and then on the second pin will beat replicate. You must evaluate to figure out enough time between the impulses are within variety of anything. So the processer is needed. You can do this with a lot of TTL reasoning.

_______________

Briquetting Machines

Register to Reply Off Topic (Score 3)
Guru

Join Date: Nov 2010
Posts: 507
Good Answers: 3
#6

Re: How Do I Bridge the Connection to Make the PIR Sensor Work?

08/12/2013 9:31 AM

/* HC-SR04 Ping distance sensor: VCC to arduino 5v GND to arduino GND Echo to Arduino pin 7 Trig to Arduino pin 8 This sketch originates from Virtualmix: http://goo.gl/kJ8Gl Has been modified by Winkle ink here: http://winkleink.blogspot.com.au/2012/05/arduino-hc-sr04-ultrasonic-distance.html And modified further by ScottC here: http://arduinobasics.blogspot.com/ on 10 Nov 2012. */ #define echoPin 7 // Echo Pin #define trigPin 8 // Trigger Pin #define LEDPin 13 // Onboard LED int maximumRange = 200; // Maximum range needed int minimumRange = 0; // Minimum range needed long duration, distance; // Duration used to calculate distance void setup() { Serial.begin (9600); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); pinMode(LEDPin, OUTPUT); // Use LED indicator (if required) } void loop() { /* The following trigPin/echoPin cycle is used to determine the distance of the nearest object by bouncing soundwaves off of it. */ digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); //Calculate the distance (in cm) based on the speed of sound. distance = duration/58.2; if (distance >= maximumRange || distance <= minimumRange){ /* Send a negative number to computer and Turn LED ON to indicate "out of range" */ Serial.println("-1"); digitalWrite(LEDPin, HIGH); } else { /* Send the distance to the computer using Serial protocol, and turn LED OFF to indicate successful reading. */ Serial.println(distance); digitalWrite(LEDPin, LOW); } //Delay 50ms before next reading. delay(50); }

__________________
I went to Texas A&M, I am proud to be an Aggee. Proud to be an Aggey, Proud to be an Agie.............Proud to have gone to Texas A&M.
Register to Reply
Guru
India - Member - Sensors Technology Popular Science - Cosmology - Dream, Think and Act United Kingdom - Member - New Member United States - Member - New Member Canada - Member - New Member

Join Date: Aug 2006
Location: AM-51, Deen Dayal Nagar, Gwalior, Madhya Pradesh, MP 474001, India
Posts: 3418
Good Answers: 32
#7

Re: How Do I Bridge the Connection to Make the PIR Sensor Work?

08/12/2013 10:30 PM

PIR sensor need to be properly mounted to let it sense.

It has two sensors in parallel || and if you rotate then by 90 degree then it simply can't sense anything.

You also need to make sure that IR lens is on top of the PIR sensor. It is usually translucent dome type and sometime cylindrical.

Output of the sensor may be TTL or relay output. There must be some instructions, in the catalog to connect an external alarm.

__________________
Prof. (Dr.) Shyam, Managing Director for Sensors Technology Private Limited. Gwalior, MP474001, India.
Register to Reply
Power-User

Join Date: Jun 2009
Location: New Zealand
Posts: 403
Good Answers: 5
#8

Re: How Do I Bridge the Connection to Make the PIR Sensor Work?

08/13/2013 2:51 AM

HI, First of all, the sensor you are using is an ultra-sonic sensor as Bigg has pointed out.

A PIR (passive infrared sensor) Sensor would be a whole lot easier to set up and program. Check them out at: www.sparkfun.com/products/8630

May the force be with you

Cheers Joe

Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#10

Re: How Do I Bridge the Connection to Make the PIR Sensor Work?

08/13/2013 6:07 AM

As someone said, its not PIR its ultrasonic.....

That said (please ask if there is anything you don't understand!):-

You could use a high resistance 3 volt relay connected to the echo (+) output and ground. Do put a reversed relay across the coil to stop back EMF from damaging the Ultrasonic unit.

I don't know what the available output current is though. Though its badly designed if it cannot drive directly a relay.

If the pulsing is a problem, then connect a 1µf Polarised cap across the echo and ground. Add more caps in parallel if the pulsing is still too much.

Add a resistor in series if you need to make the relay more sensitive, start with a resistor of the same value as the relay coil.

The method I prefer myself is to use a PICAXE BASIC programmed PIC to receive the pulses and to control the siren via a transistor.

The software for PICAXE chips and all the books and Tutorials are free to download from here:-

http://www.rev-ed.co.uk/

They chips themselves may be also available locally to you for a few US$$ only. All very cheap!!

They cover simple interfacing with a transistor for either input or output as well with diagrams in the manuals.

You only need the smallest and cheapest PICAXE chip, post and packing will cost more! But also buy the experimenters kit from here:-

http://www.techsupplies.co.uk/epages/Store.sf?ObjectPath=/Shops/Store.TechSupplies

The experimenters kit itself is here:-

http://www.techsupplies.co.uk/epages/Store.sf/en_GB/?ObjectPath=/Shops/Store.TechSupplies/Products/AXE091U

Best of luck.

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Power-User

Join Date: Nov 2011
Location: St Maarten, Netherlands Antilles
Posts: 126
Good Answers: 1
#11

Re: How Do I Bridge the Connection to Make the PIR Sensor Work?

08/13/2013 4:25 PM

Hi Mate,

You need to interface this with a PIC, go to www.picaxe.co.uk, they have loads of useful literature there. If you order a PIC from them they bootstrap them so it is as easy as 123 to program, they have everything you need to know on this site.

Good luck, -Rob.

Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#12
In reply to #11

Re: How Do I Bridge the Connection to Make the PIR Sensor Work?

08/14/2013 5:53 AM

So you fully agree with me about PICAXEs then (see previous post to yours) as being a good way to fix the problems he is having!

They are used far less frequently than they should be I feel, though I do not consider myself to be an expert in any way shape or form on ANY PIC device....

They save a massive amount of conventional logic design and chips and can be reprogrammed many, many times till something works just right!!!

"In situ" as well if correctly designed, or can be simply popped out of a socket if not!!

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Power-User

Join Date: Nov 2011
Location: St Maarten, Netherlands Antilles
Posts: 126
Good Answers: 1
#13
In reply to #12

Re: How Do I Bridge the Connection to Make the PIR Sensor Work?

08/14/2013 1:40 PM

I fully agree Andy,

I have done amazing things with PICs, if you make your own board with relay outputs (Transistors to drive the coils) you can make up a mini PLC and it is a lot of fun!!!

Here is a transistor output board I made a long time ago for a mate in a casino (Coin Pusher Alarm)

Register to Reply
Register to Reply 13 comments
Copy to Clipboard

Users who posted comments:

Andy Germany (2); bigg (2); Drew85205 (1); ignator (1); Joe Sparky (1); lyn (1); Robotech (2); Ronak Agrotech (1); ronclarke (1); Shyam (1)

Previous in Forum: P-T Rating of Flange   Next in Forum: Unified Power Quality Conditioner

Advertisement