Currently struggling with a problem due to my limited electrical engineering experience (1 first year course).
I'm working on a project for central locking in the toolbox on my ute. The actuators within the car are sent a voltage that alternates between 12V and +12V for 'unlock' and 'lock'. I am trying to somehow convert this voltage into something that can be read by an Arduino as an input to ultimately activate the servos on the lock.
From what I have been able to find maybe a voltage divider circuit or an op-amp. The photo below is how the car's locking system works.
1 Answer 1
There is no -12V in the car.
In this circuit the switch either connect the blue wire to ground or the green one to ground in order to unlock or lock the doors.
This could be a simple way to read locking or unlocking signals if a common ground is possible:
(Image Reference: https://commons.wikimedia.org/wiki/File:DoorAnimation1.gif)
-
\$\begingroup\$ what values do you think i should use for the ciruit? or how could i work them out? \$\endgroup\$SWSA– SWSA2020年11月10日 10:39:57 +00:00Commented Nov 10, 2020 at 10:39
-
\$\begingroup\$ The pull-up resistor can be internal (by configuring the input port in arduino) or can be external and of quite large value like 100k to reduce consumption since the input impedance of an Arduino port is quite high. the capacitor must be high enough to filter noise but not too high to avoid distorting the lock or unlock pulse. If you chose a large capacitor think of putting a small one in parallel to filter spikes. \$\endgroup\$Paul Ghobril– Paul Ghobril2020年11月10日 10:53:24 +00:00Commented Nov 10, 2020 at 10:53
-
\$\begingroup\$ I would go for 100nF \$\endgroup\$Paul Ghobril– Paul Ghobril2020年11月11日 02:51:11 +00:00Commented Nov 11, 2020 at 2:51
Explore related questions
See similar questions with these tags.