Does the Raspberry Pi need to be configured for a standalone Mightyhat?

Started by Joshua, January 28, 2018, 12:00:39 PM

Joshua

Hello,

Does my pi need to be configured to interface with the mightyhat? Other than fixing the serial/bluetooth port settings. I'm running Node Red on a raspberry pi and not the gateway pi software.

I would love to have the function of the mightyhat work with my pi and this answer will help me understand how to work through the setup. I have someone that is going to help me update the mightyhat sketch to have it transmit RFM instead of receive. I'll be sure to share my results.

Felix

The MightyHat has only a few simple connections to the Pi and all are hardware agnostic. You can even cut some jumpers and reroute those connections.
However I think the most important is the serial connection, which is connected to the Pi's serial GPIO pins. So as long as you have your Pi's serial enabled for that, you can just open a minicom session (or other serial monitor/tool) and interact with the MightyHat (see serial coming in etc).

The Pi does *not really* need anything special.
BUT if you want to control power to your Pi then you have to have some kind of script (same as the shutdown shell script used for ATXRaspi) that listens to inputs from your MightyHat.
Among the principal features of MightyHat is to give power and also be able to shutdown/reset from a physical button (and also power backup etc).
The default example is given for RFM69 modules. It shows how you can control the power to your Pi, and enable shutdown/reset when a shutdown script is running on the Pi to listen to shutdown/reset commands. See the atxraspi guide for how that part works.

Not sure what you mean by sending "RFM", but assuming you are using the MightyHat with a transceiver (either RFM69 or LoRa modules)... you can achieve what you need, you might just need to code your own sketch, the MightyHat example is a good starting point.