Reader small image

You're reading from  Learning BeagleBone

Product typeBook
Published inDec 2014
Publisher
ISBN-139781783982905
Edition1st Edition
Right arrow
Author (1)
Hunyue Yau
Hunyue Yau
author image
Hunyue Yau

Hunyue Yau is an electrical engineer who graduated from the California Institute of Technology. He has worked with Linux since the early '90s, starting with the Soft Landing System. He created one of the first embedded Linux devices in 1996 with a custom-made distribution. He has worked on various products such as embedded Linux appliances, embedded BSD-based devices, and embedded Linux mobile devices. As an active member of the BeagleBoard community, he has volunteered at numerous community events, from Maker Faire to Google Summer of Code mentoring. Today, Hunyue synergizes his electrical engineering skills with embedded Linux software skills to provide turnkey embedded Linux consulting services through HY Research LLC (http://www.hy-research.com/), a company founded by him.
Read more about Hunyue Yau

Right arrow

Connecting switches to the BeagleBone


So far, we have mostly looked at outputs from the BeagleBone. Let's look at getting the physical input. The switches that we are talking about here are simple mechanical devices that can open or close a circuit. They can be push button switches such as the user or reset button on the BeagleBone, or they can be slide switches. They can also be sensors. For example, you can detect tilt by having a metal ball sitting between two wires in a box. When the box is tilted, the ball rolls away and opens the circuit. All of these are interfaced similarly. One important thing to remember is that these switches are passive. They do not have power. The following diagram shows a sample switch connection (SW1) to a GPIO:

A passive switch can be connected to the BeagleBone's GPIO by connecting one terminal of the switch to ground and the other end to 3.3V through a resistor. The GPIO is connected to the resistor on the side connected to the switch. The resistor is large...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning BeagleBone
Published in: Dec 2014Publisher: ISBN-13: 9781783982905

Author (1)

author image
Hunyue Yau

Hunyue Yau is an electrical engineer who graduated from the California Institute of Technology. He has worked with Linux since the early '90s, starting with the Soft Landing System. He created one of the first embedded Linux devices in 1996 with a custom-made distribution. He has worked on various products such as embedded Linux appliances, embedded BSD-based devices, and embedded Linux mobile devices. As an active member of the BeagleBoard community, he has volunteered at numerous community events, from Maker Faire to Google Summer of Code mentoring. Today, Hunyue synergizes his electrical engineering skills with embedded Linux software skills to provide turnkey embedded Linux consulting services through HY Research LLC (http://www.hy-research.com/), a company founded by him.
Read more about Hunyue Yau