Connect PIR Motion Sensor to Air Pump

microcontrollermotionsensor

I would like to hook up a PIR motion sensor like the one found here with a standard electric air mattress pump like the one found here. I'm pretty sure this is basic electronics stuff but I have zero experience. Any ideas on how to do it and what materials I might need? Any help would be greatly appreciated!

Best Answer

Many ways to do this BUT easiest for a beginner is probably a relay.
Complexity can be added as required :-).

You can also put airpump where relay coils is on diagram and drive it directly. See below for a good FET to use.

Output voltage from PIR is not known - you will need to advise this BUT this will almost certainly work.
MOSFET (shown as a IRF511 but see below) is an electronic switch that converts the PIR voltage output to a higher power level.
This is shown as 12V but relay can be any DC voltage that suits. Usually 5V or 6V or 12V are common.

The relay contacts act as a switch - connect them across where the switch is at present.

The STP62NS04Z MODFET is available at Digikey for 43 cents in 1's in stock.
If used in the circuit below it could be used to switch the airpump directly.
It is rated at 60Aand 33V so should probably be OK. That is a FAR higer current than the pump takes when running but fun things can occur at startup. MOSFET datasheet here

For a less painful ride you should advise

  • Airpump Voltage and power or current.

  • PIR output voltage and whether high on detect a(as assumed here) or low on detect or ...

  • Data sheet links for above would be a REALLY good idea.

Relay contact ratings have to match air-pump requirement.

If PIR output goes low on detect circuit would need to be very slightly more complex.

1N4001 diode MAY need uprating depending on pump current drain - which you are going to find out and tell us :-).

enter image description here

As above - pump motor COULD go where relay coils is and no relay is then needed. This does mean that PIR may be destroyed if things go wrong. Discuss.