Hi, I am having trouble finding an example to reference and understand how they choose the values of resistors to make the circuit function. As I am creating this post, I've looked to the right on the screen, and it shows there's a few posts it shows are similar, but none seem to answer the question.
The project:
I am wanting to control an automotive relay from an Arduino Nano. The relays coil resistance is about 120Ω and draws about .125ma if I remember correctly when I used a dewalt 12v battery to test.
Ultimately, this will be like a 3 relay shield you can buy on amazon/ebay etc, but with automotive relays. The coil resistance of the automotive relays is too low and will draw more current than the optocoupler can handle. The project needs to use automotive relays as the current is probably more than 10a, maybe 15... safe than sorry for this project.
I've attached a picture of the schematic Ive drawn using the free version of Eagle. I have only about 2 weeks experience with the program . I've found several different schematics of using an optocoupler and transistor and drew up the sketch based off of what I found, but I don't understand how to read the data sheets to find the values to drive the gate, and if the gates current will exceed the optocouplers transistor limit.
I can find the octocouplers limit on the data sheets, understand how to calculate the Arduino Nano to octocoupler resistor value (so it doesnt burn out the internal led of opto but that's where my lack of circuit design ends.
the mosfet part number is correct in the sketch, I found it when researching, it has a current capacity of .8ma which is way more than I need, but again, I do not know what is ideal for this project.
Other thing I don't know is if I should drive the optocoupler output off of the 5v feed from the Arduino 5v power supply or use the 12v and add the (I'm guessing additional resistors or circuity to make the transistor function properly)
The Nano will be powered by an Adafruit 12v to 5v buck converter that has max current rating of 1.2a. To me it seems like a simple solution, incorporate a pre built component to my project board and has high efficiency vs a voltage regulator
If you have the patience to help and or point me to a link that explains how to do this, I will be very grateful as I am stuck once again with this project.
Thanks in advance,
Clint