Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beaglebone Black GPIO Mapping
#2
I am not familiar with the model BBB you have but pin mapping is done in the gpio_pins.py file in the SIP folder.

The relay_board plugin is designed to work only on a Pi. You should be able to modify it to work on the BBB by editing the pin assignments in the relay_board.py file.

There are two numbering systems use for the Pi. One is BMC numbering which is based on the processor pin numbering.
The other is board numbering which is based on the physical pin locations on the board.
You can see both using the reference:
https://pinout.xyz/#

The code in gpio_pins.py produces the following pin list for the BBB:
[None, None, None, None, None, None, None, None, None, None, None, 'P9_11', 'P9_12', 'P9_13', 'P9_14', 'P9_15', 'P9_16']

This would be consistent with Pi board numbering.

You might also take a look at the relay_16 plugin witch uses a different pin layout.

Hope this helps.

Dan
<p><br></p>
Reply


Messages In This Thread
Beaglebone Black GPIO Mapping - by blucas986 - 2020 Jul 01, 05:27 PM
RE: Beaglebone Black GPIO Mapping - by dan - 2020 Jul 01, 07:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)