Community
cancel
Showing results for 
Search instead for 
Did you mean: 
GVasi
Beginner
1,247 Views

Power On/Off an Intel Edison Based board with a physical button.

Hello guys,

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.

product page: https://emlid.com/reach/ https://emlid.com/reach/

product documentation: https://docs.emlid.com/reach/ https://docs.emlid.com/reach/

I have found a connector pin-out from the device as shown here:

  • GPIO46, GPIO77, PWM, SCL, SDA, TX, RX are connected to Intel Edison via buffers and are 3.3 V logic level, 5 V tolerant.
  • TX and RX belong to UART1 on Intel Edison
  • SCL and SDA belong to I2C1 on Intel Edison, I2C1 also could be used to communicate with internal magnetometer in MPU9250.
  • PWM belongs to PWM3 GPIO183 on Intel Edison
  • Time Mark input is connected directly to U-blox chip for low latency, it includes an over-voltage clamp, pull up and current limiting resistor.

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?

Thanks,

George Vasilikos

0 Kudos
8 Replies
GVasi
Beginner
41 Views

Any help guys?

idata
Community Manager
41 Views

Hello Georgios,

 

 

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.

 

 

Regards,

 

Octavian
GVasi
Beginner
41 Views

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. (??)

idata
Community Manager
41 Views

Hello Georgios,

 

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.

https://github.com/intel-iot-devkit/mraa https://github.com/intel-iot-devkit/mraa

/docs/DOC-111103 https://communities.intel.com/docs/DOC-111103

/thread/83189 https://communities.intel.com/thread/83189

 

Regards,

 

Octavian
GVasi
Beginner
41 Views

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.

idata
Community Manager
41 Views

Hello Georgios,

 

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 board

The 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.

 

 

Regards,

 

Octavian
idata
Community Manager
41 Views

Hello Georgios,

 

 

Do you still require assistance with this issue?

 

 

Regards,

 

Octavian
GVasi
Beginner
41 Views

Hello Octavian,

You can mark this request as closed.

Thank you very much for your help!

Reply