Igor's Blog

My file server project using an Odroid XU4 is coming along nicely and since it's all going into a HDD enclosure that I already have, the XU4 board will not be accessible and along with it, its power button. This article shows how I've added an external power button to the XU4.

This is what I was going to use for my new power button. It's a 3 pole rocker switch that goes back to the off position when the lever is released. It's mounted on a piece of acrylic and protrudes out the front of the HDD enclosure.

IMG_0970.jpg IMG_0971.jpg


I looked up the XU4 schematics and found that its existing power button has a couple of it's pins wired together...
wiring.png


Using a multimeter I found which of these pins were connected on the board...
IMG_0973.jpg




Since the rocker switch went up and down and I only needed it to work as a momentary switch in either one of these up/down positions, I decided to connect both the up and down poles together so it didn't matter which way the lever was positioned.
IMG_0975.jpg


After the wiring on the switch part was completed, I soldered the other end of the wires onto the XU4 board to the non-connected contacts of the XU4 power switch.
IMG_0976.jpg



This is what it looked like with everything in place...
IMG_0977.jpg


...and here's a video of the rocker switch in action. It shows that when the lever is pulled up or down, the shutdown dialogue box pops up, as expected.



-i

comments powered by Disqus
Other posts you may like...
Programming, DIY, Games, Hacks, Tech and more.

Recent Blog Posts

Learn How to Add Disclaimer to All Outgoing Emails in Office 365

How to securely host your web site for free with Google Cloud and CloudFlare (part 3)

How to securely host your web site for free with Google Cloud and CloudFlare (part 2)

How to securely host your web site for free with Google Cloud and CloudFlare (part 1)

Beware of the subtle difference in date format strings between MySQL and SQLite

Postman reporting Unexpected 'N' error in response body

Adding extra shelves to the Ikea Detolf display cabinet

Posting array data from a web form to a Jersey REST service

How to avoid double encoding XML entities with Apache Commons StringEscapeUtils

Add your commonly used fonts to macOS Mail font drop down

Recent Galleries

Space Food - Chocolate Ice Cream with Chocolate Chips

Legeod Star Wars AT-DP kit

DIY spare parts computer build with a RAIDMAX Anura case

Fake 'Lepin' brand Lego packaging

Hardwood garden bench with clear resin void filler

Fixing a 3D printer extruder that stopped heating up

Easily increase disk space in a Lenovo Ideapad 100S 14" laptop with an M.2 SSD

Making a multi-piece 3D printed solder spool holder stand

DIY indoor apartment grow light wiring

Good Friday Electronics fun Easter Bunny LED PCB Kit IBEABU-01.0

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
300 George St Blogumentary

My Online Tools

UUID to OID Converter
Guru JSON-RPC Tester
Extrudifier Object Designer
Travel ┬ÁBlog

Blogs and Friends

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity
Please follow me for more great content!
     
Don't show this again