Beaglebone: GPIO Programming on ARM Embedded Linux
Note: This video was made before the Linux device tree was implemented on the beaglebone (beaglebone black uses Linux ). I have a new video coming in a few days that explains how to do the same thing on the beaglebone black using device tree overlays.
In this video I extend my series on introducing the Beaglebone and developing applications using embedded Linux to demonstrate how we can build an application that uses its GPIOs (General Purpose Input/Outputs). The example demonstrates a simple LED output circuit and a simple pushbutton input circuit that we can connect to the Beaglebone GPIOs directly. I then go through the steps on how we can configure and access these GPIOs using Sysfs in embedded linux and then demonstrate how we can write a C/C program that works directly with these pins. Finally I demonstrate how we can use polling to wait for a GPIO input such as a button press or key press. This application is relevant to all flavours of embedded Linux.
The code that the final application is
6 views
181
43
3 years ago 00:26:31 29
SPI in Embedded Linux - Quick Reference Guide
3 years ago 00:47:28 2
Beaglebone: An I2C Tutorial - Interfacing to a BMA180 Accelerometer
3 years ago 00:26:34 1
Beaglebone: Driving Stepper Motors in Embedded Linux using the EasyDriver Board
3 years ago 00:46:06 6
Beaglebone: GPIO Programming on ARM Embedded Linux
3 years ago 00:18:04 17
The Beaglebone - Unboxing, Introduction Tutorial and First Example
6 years ago 00:19:04 16
BeagleBone: GPIO Linux Loadable Kernel Module (LKM) Development Demonstration
6 years ago 00:45:53 1
Beaglebone: Introduction to GPIOs - Using Device Tree Overlays under Linux 3.8+