Close

ITS ALIVE!!!

A project log for TinyFET

just a simple tiny power switch

mooseprmoosepr 09/15/2017 at 09:562 Comments

so I eventually got round to building the board, and started testing the software side of things. After a very disappointing start (ws2812b + heat = no light!) I eventually got it running some basic code.

A few hours later and some searching, I have some basic switching going on. Its a mash up of random example code and a neopixel library all in arduino code (I can hear the screams from here). We have some basic functions:

Im sure the code is shockingly bad, but its a start

https://github.com/moosepr/TinyFET/blob/master/tinyFET.ino

Discussions

deʃhipu wrote 09/15/2017 at 10:48 point

Nice. It would be nice if it could send a signal to the pi to shut down, and wait for it to do it, instead of switching the FET off right away. There is a million ways to tell the pi to shut down on a gpio signal.

  Are you sure? yes | no

moosepr wrote 09/15/2017 at 12:57 point

well i have 2 spare pins, i was going to experiment with i2c, so the pi can actually request the current voltage, and signal shutdowns too. they could also be used for normal signalling too :)

  Are you sure? yes | no