News for hackers. Stuff that matters.
Re:Show HN: GreenPiThumb – A Raspberry Pi Gardening Bot by zild3d on Tuesday June 27, 2017 @11:18AM (#14646166)
Why not use a relay? Less to worry about for a side project like that. If you don't need sub-millisecond switching then you gain complete isolation, constant voltage output, and AC or DC switching
Re:Show HN: GreenPiThumb – A Raspberry Pi Gardening Bot by setq on Tuesday June 27, 2017 @11:31AM (#14646300)
Relay has a considerably lower drive impedance than a MOSFET for switching so you end up having to drive the relay with something anyway because the 555 will probably die. Might as well skip the middle man and use a MOSFET which has a crazy high source impedance.

(you need to stick a transistor between the 555 and the relay anyway so you might as well just use a MOSFET)

Re:Show HN: GreenPiThumb – A Raspberry Pi Gardening Bot by HeyLaughingBoy on Tuesday June 27, 2017 @01:49PM (#14647564)
Nope. 555 has drive capability of over 100mA. More than enough to drive a small relay directly. Just make sure you have a spike suppression diode in circuit.
Re:Show HN: GreenPiThumb – A Raspberry Pi Gardening Bot by setq on Tuesday June 27, 2017 @02:17PM (#14647809)
Take a look at the output switching on different variants of 555s (there are about 6). This isn't always the case. Not only that if you pull lots of current through them, and 100mA is a lot, then the Pd of the sink transistor is pushed a bit hard. I've let the smoke out of a few over the years working on that assumption.

Good tip: measure voltage between the output pin and gnd or Vcc in both states and then have a think.

Plus when you're not an idiot like I was, a MOSFET is cheaper.

Re:Show HN: GreenPiThumb – A Raspberry Pi Gardening Bot by HeyLaughingBoy on Tuesday June 27, 2017 @02:29PM (#14647929)
Fair point.

I sometimes overestimate the ability of the average electronics hobbyist to properly understand a datasheet.

Re:Show HN: GreenPiThumb – A Raspberry Pi Gardening Bot by setq on Tuesday June 27, 2017 @02:53PM (#14648147)
I don't think many people read the data sheets to be honest even some of the professional engineers. It's mainly gluing canned circuits together and see if they work or not. This is a little difficult if you didn't start with analogue and work up.