Wow, thanks! Especially Ian.M, and to tpowell1830 for the warm welcome.
Re: @rstofer "Your -> description doesn't really make much sense (to me)." - sorry! There's no actual project here (yet) - I am just learning and wondering how you might control (say) a 500mA motor from a login pin which can only draw 40mA. There are a million applications I'm sure. Also my description may well be a bunch of crap and I have misunderstood something fundamental... but that's why I'm here! Tell me if/why I'm wrong!
I've only been getting "back" into this stuff VERY recently (working in software at an IoT company and spending a little time in the EE lab inspired me), and for example the soldering iron I found in my old bits box is nearly 20 years old and I'm only 34
(yes I bought a shiny new one)
Everyone PLEASE do correct me on anything I get wrong or if I say something dumb. Feel free to use maths and diagrams etc - I should understand it immediately or pick it up quickly.
Re: @Ian.M "There is plenty of idiocy in 'Arduino-land' usually caused by lack of understanding of fundamental concepts of circuit design and implementation."
Indeed. The thing is, the device allows you to run 'electronics' with C code, which is
extremely attractive to programmers. I could write (say) autonomous robot collision avoidance code without a problem, but until relatively recently I would have had to outsource the hardware. Now I can set high/low on pins and control a component sometimes without any linear circuitry at all and build the hardware myself. Obviously this is a massive over-simplification, but it's where programmers often start. Same as EEs trying to write code. Usually a complete code testing/maintenance disaster.
Re: @Ian.M "The basic problem is ground bounce... [snip]"
So you're a bit ahead of me in you knowledge of these things so bear with me... I read up on ground bounce...
I read I need to connect the ground (emitter?) of the switching device to the same ground as the Arduino - @rstofer mentioned this - I assume it is correct?
I understand that if some voltage comes back off the high voltage side to the same ground as the Arduino, current will flow into the Arduino with explosive effects. So... it seems to me, I need to connect the ground of the high power device directly to the ground pin of the DC input, but
before the Arduino power supply. Is this correct?
I would also add the decoupling caps you mentioned, along with a large ground plane... and what about a diode?
I know this is a stupid question, but... if I hook up a 50V supply to a component that can handle it, will there be 50V or ~0V on the ground line? If ~0V all I need to do is control noise/ripple/etc.
People have mentioned relays as opposed to transistors/MOSFETS for switching and isolation. Would you recommend a relay? Pretend we're not working at high frequencies here... I'd be interested to know what would happen if we were though...
Re: @rstofer "I would think that opto isolators and a MOSFET Driver would be the way to go." - excuse my ignorance, but what advantage is there to a MOSFET driver? I thought, like other transistors, you just have to apply a voltage to the gate and current will flow. Please correct me.
I understand that the high power circuit needs to be isolated in some way, but need we go as far as 'opto' (presumably using lasers... I am unfamiliar with this component) to decouple? Can we not use a purely electronic device? Or just a diode so the current can only flow into the main ground not the Arduino ground? Please excuse my my lack of expertise if this is a load of crap...
... Actually on that note, is there a book anyone can recommend? Maybe something for other scientists and engineers getting into EE... I don't need Ohm's law explained etc
Thanks again everyone!