Print Page | Close Window

DIY Car Dashcam w/ Raspberry Pi on off switch

Printed From: the12volt.com
Forum Name: Relays
Forum Discription: Relay Diagrams, SPDT Relays, SPST Relays, DPDT Relays, Latching Relays, etc.
URL: https://www.the12volt.com/installbay/forum_posts.asp?tid=143918
Printed Date: April 28, 2024 at 5:02 PM


Topic: DIY Car Dashcam w/ Raspberry Pi on off switch

Posted By: frank121
Subject: DIY Car Dashcam w/ Raspberry Pi on off switch
Date Posted: December 20, 2017 at 2:58 PM

I am planning on building a dashcam with a raspberry pi. The plan is to have the RPi connected to a battery or fuse connection for constant power and to use the ignition line as an input for a relay to toggle the unit on and off. This is so the card does not become corrupted from improper shutdown.

The RPi has 2 pins when shorted allow this to happen. I have found a tutorial on coding and it states to use a momentary switch to short the pins. Short the pins on, short the pins off.

What I would like to do is make a relay to short the pins momentarily when the ignition is on, and short them again when the ignition is turned off. I was looking at the wiring diagrams on this site and found momentary action, but am I able to do this when input is applied and disconnected?

Any help is greatly appreciated!



Replies:

Posted By: frank121
Date Posted: December 20, 2017 at 6:53 PM
Additionally I have reviewed the following pages:

Momentary Positive Output when Positive Switch Turned Off
Constant to Momentary Output - Positive Input/Positive Output

But I still cannot figure out a way to get the action of both, if it is even possible.





Print Page | Close Window