UNLESS, you create an oscillator to drive a transformer then rectify the output of that to and derive your power for the arduino. This is probably overkill for your application though.
Yeah that would be, i'm only turning on and off 3 solenoids which draw around 2A and then a 7 segment led. I'm building everything to handle 10A, but i'm sure i have taken some decent steps towards protecting the arduino.
I am still working on the schematic, but basically i'm trying to drive a P-channel mosfet to trigger a solenoid in a transmission. it has to be a HIGH side driver because i can't get to the ground of the solenoid.
This is the driver circuit that i've come up with so far:
Sorry i don't know how to post the schematic directly
the opto isolator should be where the switch is in the schematic.
Just so it you have as much info as i can, I'm also using one of these cheap buck converters from ebay to regulate the voltage to 5v for the board.
I'm sorry if this doesn't make much sense, i have parts laying all over my desk and nothing more than a copied code and chicken scratches for the design.
My naturally curious mind now asks... At what point are the grounds considered "separated"? Take for example my desk, for now the Arduino is powered from my computer, and the 12v side is powered from a benchtop power supply. but both are plugged into the same 120v electrical outlet. I know thats a stretch, but short of a battery they are never really fully separated. Or i am just over thinking it?
Dingo509:
Alright, that simplifies the design too.
My naturally curious mind now asks... At what point are the grounds considered "separated"? Take for example my desk, for now the Arduino is powered from my computer, and the 12v side is powered from a benchtop power supply. but both are plugged into the same 120v electrical outlet. I know thats a stretch, but short of a battery they are never really fully separated. Or i am just over thinking it?
Once the power has been through a transformer it has been separated. Your computer and the benchtop power supply outputs are separate.
The problem you may face with a common ground in an automotive situation, is that you don''t actually have a direct connection to the chassis. If you are passing a heavy load current through a wire between the Arduino module and the chassis, then a load current will generate a voltage drop and transients across that wire and if you are trying to assess other external signals, particularly from analog sensors, then that voltage will be impressed (negatively) on the signal.
So you will want separate ground connections from the Arduino circuitry to ground, and from any control device such as a transistor or FET that is switching a significant load, to ground. That is where you may well want an opto-isolator.