BeagleBone Black Pin-modes
Setting up PWM
To activate the pins the device tree overlays must be added to:
To see what pins can be used go to:
For most applications it would be nice to keep from having to do this manually every time you turn your BBB on. To do this, change the uEnv.txt file inside /media/BEAGLEBONE. An example of what I added to it to run three PWM pins can be seen in Figure 1. Additionally, If you are using a pin that by default is set for HDMI out, you will have to mount the file path manually. Both steps will be in Figure 1.
|Figure 1: Mounting filepath, and changing file|
To make it easier to access my Pins and Slots I made multiple shortcuts by modifying the .profile inside the /etc directory. I did this by exporting the file path into a user defined name, see Figure 2.
|Figure 2: Adding shortcuts in .Profile|
With these modifications everything should be set at boot-up. To check the pins you can set the period and duty cycle to the shortcuts by echoing a value for each. Every servo is a little different, so the values can change. In the first video I show setting the period and duty cycle. The values will be close so they are a good reference.
Derek Molloys BeagleBone Black site