I am planning to control some 5A loads (lights, pump, etc... max. 5A/each) on a car system. A brief resume of what I would like to control is:
8 relay (12v) control
4 lights control (5A max., each light) with the capability to fade in /fade out
Everything will be controlled by arduino mega
The main power will come from the car battery with a DC DC converter for the arduino.
I am thinking to use uln2803apg transistor arrays to control de relays. I have done some trials and it works.
I also would like to use p-channel mosfet FQP47P06 to be able to fade in / fade out the 4 lights and here is where my question is:
As p-channel gate need "0" from the arduino to switch the light on but I would like to use 5V from the arduino to activate the lights, can I just used a channel from the uln2803apg transistor to do so? (see attached diagram)
The reason to do that is to avoid having the lights momentary on every time the arduino is started.
irrintxi:
I am thinking to use uln2803apg transistor arrays to control de relays. I have done some trials and it works.
Mega seems overkill.
I would use something like a TIP6B595 shift register that can switch eight relays directly.
Uses only three Arduino pins, and you can add more chips/relays that use the same three pins.
That chip could also drive P-channel fets.
Leo..
Wawa:
Mega seems overkill.
I would use something like a TIP6B595 shift register that can switch eight relays directly.
Uses only three Arduino pins, and you can add more chips/relays that use the same three pins.
That chip could also drive P-channel fets.
Leo..
I will have a look at it. I have so much to lern......
Why do you think the mega will be overkill? Each pin from the arduino should not have more than 20ma for echa relay to be activated (using the uln2803apg).
Unless you're expecting spikes >25volt on your 12volt (car) supply.
Then a (~18volt) zener diode between 12volt and gate could be wise.
And maybe a (220ohm) CL resistor for that zener and chip between gate and transistor array.
Leo..
Wawa:
Unless you're expecting spikes >25volt on your 12volt (car) supply.
Then a (~18volt) zener diode between 12volt and gate could be wise.
And maybe a (220ohm) CL resistor for that zener and chip between gate and transistor array.
Leo..
Note on the previous diagram, the relays reference are not right. On the diagram, the refefrence corresponds for 3v powered but I will change then for 12v ones (Same size).
Will the 1K resistor, between p-channel mosfet and 12v, be ok? Is it a right value?