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 -
Arduino Nano Every problem
Hardware • 1 Feb 2020, 09:18 • hakha4 5 Dec 2023, 02:21 -
Sleep mode for bmp280
Hardware • 20 Feb 2018, 13:24 • fishermans 5 Feb 2024, 18:30 -
"Remote Irrigation with LoRaWAN: LM27313 Challenges and PCB Design"
Hardware • 24 Jan 2024, 23:06 • wrendral 3 Feb 2024, 07:13 -
hlk-pm01 are to noisy for rfm69?
Hardware • 5 Aug 2023, 21:16 • Tmaster 9 Aug 2023, 16:28 -
Does MySensors require Arduino Timer 2?
Hardware • 6 Jan 2024, 19:39 • OldSurferDude 11 Jan 2024, 04:39