PIR logic shifting 6 volt low 12 volt high - help needed
-
I am trying to connect PIR motion sensor to a nano. The motion sensor is part of an existing alarm system which uses a 6 volt signal for logical 0 (no motion detected) and a 12 volt signal for logical 1 (Motion detected).
So the question is how can I shift these voltage levels down to something that I can connected to the Arduino Nano. I have tried a voltage divider but couldn't get a wide enough range to get reliable detection of high or low signals. I have also tried a logic level shiftier. The problem with these is that they still require the input signal to go to zero to pull down the output signal.
Any advise or suggestions would be most welcome.
-
One option is to use a voltage divider, to get the voltages down to 2,5/5V, and then design a schmitt trigger, to convert the 2.5/5V to 0/5V output swing.
For schmitt trigger design you could have a look at http://www.aaabbb.de/NonInvertingSchmittTrigger/NonInvertingSchmittTrigger_en.php
Another option, is to have a virtual ground at 6V, that you connect your arduinos ground pin to.. (It can not share the same powersupply as the PIR sensors then). The arduino will then see a voltage swing of 0-6V (Can be limited with a resistor / zener diode on the input on the arduino). The virtual ground can be created with a simple resistor divider, between GND and 12V line of the pir sensor.
I would probably go for option 1, as it allows you for detecting if the PIR sensor is online (is there 6V on the signal pin?) and trigger another pin, in case it disappears.
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
Best time of year to buy higher quality small project solar panels?
Hardware • 10 Jun 2021, 19:19 • NeverDie 30 Aug 2024, 14:01 -
Sensors and more
Hardware • 19 Jun 2023, 00:41 • Robert Leverett 19 Jun 2023, 00:41 -
Sleep mode for bmp280
Hardware • 20 Feb 2018, 13:24 • fishermans 5 Feb 2024, 18:30 -
Arduino Nano Every problem
Hardware • 1 Feb 2020, 09:18 • hakha4 5 Dec 2023, 02:21 -
Sensor to detect marijuana vape/smoke
Hardware • 21 Jan 2025, 06:36 • Hellmark 25 Feb 2025, 20:56