Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Programming the BeagleBone

You're reading from  Programming the BeagleBone

Product type Book
Published in Jan 2016
Publisher
ISBN-13 9781784390013
Pages 180 pages
Edition 1st Edition
Languages

Table of Contents (21) Chapters

Programming the BeagleBone
Credits
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
1. Cloud9 IDE 2. Blinking Onboard LEDs 3. Blinking External LEDs 4. Controlling LED Using a Push Button 5. Reading from Analog Sensors 6. PWM – Writing Analog Information 7. Internet of Things with BeagleBone 8. Physical Computing in Python 9. UART, I2C, and SPI Programming 10. Internet of Things using Python GPIO Control in Bash BeagleBone Capes
Pinmux and the Device Tree Index

Push button circuit setup


For this exercise, we will need:

  • 4-pin push button: A push button is an electronic component that is attached to two points in a circuit. It is also called a tact switch. When it is pressed, it joins these two points and the circuit is completed. The circuit is disconnected when the button is not pressed.

  • Male-to-male jumper wires: We need jumper wires to connect BeagleBone and components through a breadboard.

  • Half-size breadboard: A breadboard is needed to create a solderless circuit.

Power off the board and attach the components to BeagleBone as shown in the preceding diagram.

Circuit analysis

Let's see the analysis step by step:

  1. The 4-pin push button is divided into two sides. Within the first side, pole 1 and pole 2 are already connected. Another side has pole 3 and pole 4 connected. But these both sides are not connected to each other. When the button is pressed, the pole 1 and pole 2 side gets connected to the pole 3 and pole 4 side.

  2. Pin P9_3 and P9_4 are not regular...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}