Search found 2043 matches

by jph
Sun Sep 25, 2022 3:32 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

It's called a 'back of a fag packet' design -I think that may translate badly to yank speak as 'fags' are cigarettes in the UK - and they are something else in yank land :lol: Just a small edit, change the pull up resistor to 1K. (not critical), but it lowers any time in the non linear area at switc...
by jph
Sun Sep 25, 2022 3:05 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

https://www.digikey.com/en/products/detail/vishay-siliconix/SUP90P06-09L-E3/2623132 will do the job. Much better Rds on. Colloquial English 'bugger all current' means it wont draw any noticeable current from your arduino as it isn't a relay coil. It will draw a small amount for a fraction of a secon...
by jph
Sun Sep 25, 2022 2:34 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

Also, see if you can find a p channel mosfet with a lower Rds on value - that is a bit high...

Something <=20 mOhms (milli ohms) Rds on at around 10 to 13 V ..

Which is your preferred supplier, I will have a look
by jph
Sun Sep 25, 2022 2:31 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

Just a quick 2 points - you are running the meanwell at 15 yes ? also, take t as read that the ground on the meanwell is connected to the same ground as the ULN Darlington and the Arduino - which I know it already is, but I didn't show it on my amazing ultra modern schematic and it take hours to edi...
by jph
Sun Sep 25, 2022 2:27 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

Yup ;)
That would be marvellous.

Have you built it yet ? ;)
by jph
Sun Sep 25, 2022 2:19 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

That won't work.

Anyway, after loads of toil - here is the schematic (it MUST be P channel )- you can open it in your favourite schematic editor - it takes bugger all current to drive it. The arduino micro port is protect from 15V via the ULN darlington output.
p channel mosfet  uln.jpg
by jph
Sun Sep 25, 2022 2:10 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

Oh goodie :) :mrgreen: ;)

It MUST be a P Channel... can you check what you have and give me the part number ?

Meanwhile I will draft a detailed schematic with my schematic editor....
by jph
Sun Sep 25, 2022 2:03 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

Correct, but the relay coil needs power. Sometimes up to 100 mA. That is pushing it on USB 2 - or a lot of USB 2 ports. You could use a P Channel power mosfet and an output from the darlington array to switch it, that would work.... and it would take bugger all current. A P channel mosfet, a 4.7K (i...
by jph
Sun Sep 25, 2022 1:48 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

also, if you power the arduinos from USB then is it usb 2 or 3 ?
by jph
Sun Sep 25, 2022 1:47 pm
Forum: Lua and API Scripting Help
Topic: Real battery switch turning off Real gear lights
Replies: 30
Views: 174

Re: Real battery switch turning off Real gear lights

Kaellis991 wrote: Sun Sep 25, 2022 1:44 pm Let's pretend this is not even part of my sim and I want to just shut off the 15v side with any of the arduinos I have.
No , lets not :lol: .... it is best done with either a mechanical or solid state relay and both require power - and not from the meanwell. ;)