Hi all,
Having a look around the code and came across what looks like a documentation error.
BTW Is there another / better way of feeding these misc issue back?
The Readme.md for shutdownpi
https://github.com/openenergymonitor/emonpi/tree/master/shutdownpi
says that GPIO 16 is connected to the mega's dig5 pin.
But the shutdownpi code says it uses pin 11 GPIO 17, and the diagram on the main emonpi page says is dig8
Re: emonPi shutdownpi documentation error?
BTW Is there another / better way of feeding these misc issue back?
Hello Ian,
Trystan made a thread for submitting emonPi issues. It's at:
http://openenergymonitor.org/emon/comment/reply/10762
Regards,
Bill
Re: emonPi shutdownpi documentation error?
The shutdown button is connected to the ATmega328 dig 8 which then (in software) toggles ATmega328 dig 5 which is connected to Raspberry Pi gpio 17 pin 11 on the Pi. I will fix documentation. Thanks. Definitive guide is here http://wiki.openenergymonitor.org/index.php?title=EmonPi#Port_Map
Re: emonPi shutdownpi documentation error?
Glynn,
Thanks for the clarification.
I've no idea yet why you need / want to map dig8 to dig5 yet but my knowledge of Arduino is limited right now.
Lots to read, learn etc.
Thanks again.
Re: emonPi shutdownpi documentation error?
The reason for this is that it gives us flexibility to reprogram the unit in software to control the function of the switch. I.e it's not a hardwired shutdown button, if you wanted you could reprogram it to do something totally different.