Page 1 of 1

How to add a power button to your N2

Posted: Mon Feb 25, 2019 5:33 pm
by odroid
You can add a power button with a few wires soldering.
We've written a guide on this WiKi page.
https://wiki.odroid.com/odroid-n2/appli ... key_wakeup

The blue LED in the button flashes like heartbeat action, if you edit the device-tree file.
You may like this GIF animated image. ;)
Image

Re: How to add a power button to your N2

Posted: Mon Feb 25, 2019 6:41 pm
by rooted
Very nice, thanks for the how-to.

Re: How to add a power button to your N2

Posted: Mon Feb 25, 2019 8:15 pm
by mad_ady
Nice case adjustment. You can leave an opening and it could be used for serial.
Would the power button sold with the h2 work as well?

Re: How to add a power button to your N2

Posted: Mon Feb 25, 2019 9:44 pm
by tobetter
mad_ady wrote:
Mon Feb 25, 2019 8:15 pm
Nice case adjustment. You can leave an opening and it could be used for serial.
Would the power button sold with the h2 work as well?
Technically it is, the problem is the size. In terms of hardware, it would work.

Re: How to add a power button to your N2

Posted: Mon Feb 25, 2019 11:24 pm
by hominoid
Thanks, much appreciated!

Re: How to add a power button to your N2

Posted: Tue Feb 26, 2019 12:45 am
by mad_ady
Out of curiosity, how did you cut through the case evenly?

Re: How to add a power button to your N2

Posted: Tue Feb 26, 2019 4:57 am
by tobetter
mad_ady wrote:
Tue Feb 26, 2019 12:45 am
Out of curiosity, how did you cut through the case evenly?
Simple, cut the surface with a drill and a cutter to make a hole and file until you have an 8 x 8.5mm square.

Re: How to add a power button to your N2

Posted: Thu Apr 11, 2019 12:14 pm
by wallyz21
Momentary or latched switch?

And the button diameter of the specific switch that you used is what, please?

Re: How to add a power button to your N2

Posted: Thu Apr 11, 2019 12:39 pm
by tobetter
wallyz21 wrote:
Thu Apr 11, 2019 12:14 pm
Momentary or latched switch?

And the button diameter of the specific switch that you used is what, please?
Momentary if you follow up the Wiki. Latched switch if you like to control the power at DC jack.
The hole for the switch in the Wiki is about 6-7mm.
https://www.aliexpress.com/item/Led-Lig ... 52543.html

Re: How to add a power button to your N2

Posted: Sun Apr 28, 2019 2:20 am
by sanangel
@odroide Thanks for the tutorial

Re: How to add a power button to your N2

Posted: Sun May 19, 2019 7:01 am
by kardanadm
Hi,
How to do Simple On/Off Odroid N2 Power button/switch.
I'm a beginner, can you teach it simply?
The led heartbeat do not want to led do not want, just power button.

Thank
Edit: I put a button on 9 and 11 GPIO pins, it works.

Re: How to add a power button to your N2

Posted: Sun May 19, 2019 1:35 pm
by mad_ady
For heartbeat led try:

Code: Select all

echo none > /sys/class/leds/blue\:heartbeat/trigger

Re: How to add a power button to your N2

Posted: Sat Jun 15, 2019 3:39 am
by pillemats
Hey

How does it works ?

Only Plug the button cables to gpio and it works ?
I dont Unterstand the tut because my English is Not the best.

I use my n2 with Batocera Linux for emulation!

Should i put the Button to gpio an thats it ?

Thx

Re: How to add a power button to your N2

Posted: Sat Jun 15, 2019 4:00 am
by pillemats
kardanadm wrote:
Sun May 19, 2019 7:01 am
Hi,
How to do Simple On/Off Odroid N2 Power button/switch.
I'm a beginner, can you teach it simply?
The led heartbeat do not want to led do not want, just power button.

Thank
Edit: I put a button on 9 and 11 GPIO pins, it works.
Which Switch did you use ?

In my case it wont works

Re: How to add a power button to your N2

Posted: Sat Jun 15, 2019 5:30 pm
by tobetter
pillemats wrote:
Sat Jun 15, 2019 4:00 am
kardanadm wrote:
Sun May 19, 2019 7:01 am
Hi,
How to do Simple On/Off Odroid N2 Power button/switch.
I'm a beginner, can you teach it simply?
The led heartbeat do not want to led do not want, just power button.

Thank
Edit: I put a button on 9 and 11 GPIO pins, it works.
Which Switch did you use ?

In my case it wont works
How did you connect the switch? And what's the switch you use?

Re: How to add a power button to your N2

Posted: Sat Jun 15, 2019 7:11 pm
by pillemats
This one for testing on Pin 9 + 11

Re: How to add a power button to your N2

Posted: Sun Jun 16, 2019 4:42 am
by tobetter
@pillemats, the switch would work if you wire properly. Also, please double check your boot.ini.
https://wiki.odroid.com/odroid-n2/appli ... ng_bootini

Re: How to add a power button to your N2

Posted: Sun Jun 16, 2019 5:53 am
by pillemats
How do i wired propably?

I think i Need a pic with the connections

Do you have it?

Re: How to add a power button to your N2

Posted: Thu Jul 11, 2019 10:45 pm
by democles
Here is a picture with wat jou have to copy and past in the boot.ini file.
Works great :D
I edit it with WEBMIN.

aangepast.jpg
aangepast.jpg (155.76 KiB) Viewed 124 times

Re: How to add a power button to your N2

Posted: Fri Jul 12, 2019 3:03 pm
by joy
pillemats wrote:
Sun Jun 16, 2019 5:53 am
How do i wired propably?

I think i Need a pic with the connections

Do you have it?
Do you have a PCB layout and circuit description of your button part?

Please refer to this wiki page for the wire connections.
https://wiki.odroid.com/odroid-n2/appli ... are_set-up
https://wiki.odroid.com/odroid-c2/appli ... are_set-up