Re: Automatic shutdown for pi in a car
I guess I should put the capacitor after the optical sensor so it can turn off but still give some power to the relay coil.
Re: Automatic shutdown for pi in a car
It doesn't matter where you put the capacitor in a series circuit like you have -- the relay and opto-isolator are only going to see a short pulse and not stay active when the 12V Ignition is applied..
Re: Automatic shutdown for pi in a car
It doesn't matter where you put the capacitor in that series circuit because it won't work.

There is no path to supply a steady current to keep the relay energised.
Quis custodiet ipsos custodes?
Re: Automatic shutdown for pi in a car
Thanks for reply guys,
Here is a slightly modified version.
Do you guys think it might work?
Here is a slightly modified version.
Do you guys think it might work?
- Attachments
-
- cc2.png (34.41 KiB) Viewed 885 times
Re: Automatic shutdown for pi in a car
You should check out these videos, this person has done exactly what you're looking to do:
https://www.youtube.com/watch?v=OGFAo9j1vSc
https://www.youtube.com/watch?v=DPwnaYJWL5g
Here's a screenshot of the diagram they presented in the first video, but unfortunately it's very high level and doesn't indicate grounds/positions of the wires. - https://imgur.com/DBe5nEY
I'm planning to recreate this setup but am not well versed in creating circuits like this. Is anyone able to create a more detailed wiring diagram or schematic based off of what this person had done?
https://www.youtube.com/watch?v=OGFAo9j1vSc
https://www.youtube.com/watch?v=DPwnaYJWL5g
Here's a screenshot of the diagram they presented in the first video, but unfortunately it's very high level and doesn't indicate grounds/positions of the wires. - https://imgur.com/DBe5nEY
I'm planning to recreate this setup but am not well versed in creating circuits like this. Is anyone able to create a more detailed wiring diagram or schematic based off of what this person had done?