I own an Intel Edison based RTK GNSS Module (paired by emlid), that I want to power on/off via it's available GPIO pins.
I have found a connector pin-out from the device as shown here:
I power this puppy with a powerbank.
Can you suggest me a way or point me an example of how to power this device via a powerbutton + script without damaging the device?
Thank you for your patience,
There is a schematics document for the breakout board available, based on the document the power signal is labeled as GPI_PWRBTN_N.
This should be a good start for the power button. You can find the schematic in the following link on page 7 : https://www.intel.com/content/dam/support/us/en/documents/edison/sb/mini_edison_breakout_hvm_8_26.pd... https://www.intel.com/content/dam/support/us/en/documents/edison/sb/mini_edison_breakout_hvm_8_26.pd...
Hope this helps.
Thank you Octavian,
According to the schematic, it's a typical configuration of a switch. I understand that.
My question is if i can use one of those 2 available GPIO, my board has, to achive that button configuration. (??)
I don't think you will be able to power on Edison just by using any of those 2 GPIOs, you will only be able to power it off.
If you are attempting to shut-off Edison when pressing a button you can do it in SW. A way to do this would be to create a system service that starts up a program (a language of your choice). In the program set the GPIO46/GPIO77 as input and monitor it, when there is an event, command Edison to shut off.
You can look at mraa library and the examples provided so you can get started, as well as how to create a system service. Hope these pointers help.
Thank you very much for your answer Octavian.
Can you explain why it's not possible? Is there another way of powering on these pupies with a button? via a controller?
Although I must avoid buying abroad due to customs, I found this controller (https://lowpowerlab.com/guide/atxraspi/ ATXRaspi | LowPowerLab) that can power on/off a rpi. The developer says that it can be used with a Edison too.
Breakout board has two LEDs to check power status.http://kiir.net/blog/wp-content/uploads/2014/11/leds.png
2 LEDs and 1 button of mini breakout boardThe button, SW1, is for changing power mode of Edison. When you press the button momentarily, Edison will be sleep state. By pressing it again, you can wake Edison up. If you press the button for some seconds(>7 secs), Edison will be turned off. You can see DS2 is also off. To turn on Edison module, press the button for some seconds(>7 secs) again.
Also the Intel Edison kit for Arduino has a power button (SW1UI2) which functions on the same principle.
The issue here is that your board has a different architecture from a standard Edison board and we've never tested the module from Emlid. We also can't guarantee the RPI controller you linked above will work either as we haven't tested it on an Edison board.
It might help you to contact Emlid, they may have more information.