# I can not control beaglebone black GPIO

**URL:** https://discourse.nodered.org/t/i-can-not-control-beaglebone-black-gpio/40480
**Category:** General
**Created:** [6 February 2021 07:22 UTC](https://discourse.nodered.org/t/i-can-not-control-beaglebone-black-gpio/40480 "2021-02-06T07:22:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lpj669](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lpj669/32/68589_2.png) [@lpj669](https://discourse.nodered.org/u/lpj669)
#### Post date: [6 February 2021 07:22 UTC](https://discourse.nodered.org/t/i-can-not-control-beaglebone-black-gpio/40480/1 "2021-02-06T07:22:43Z")

</div>

I am a new user either with beagleboard black and node-red, I want to control beaglebone black GPIO using node-red-contrib-johnny5, my flow was listed as follows:  
`[{"id":"f5e61d75.93bc1","type":"tab","label":"流程1","disabled":false,"info":""},{"id":"5aada02c.0fd5","type":"inject","z":"f5e61d75.93bc1","name":"ON","topic":"x","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":200,"wires":[["4a75b5cb.32488c"]]},{"id":"4a75b5cb.32488c","type":"gpio out","z":"f5e61d75.93bc1","name":"P9-15","state":"OUTPUT","pin":"48","i2cDelay":"0","i2cAddress":"","i2cRegister":"","outputs":0,"board":"cc553fd0.3e82a","x":650,"y":180,"wires":[]},{"id":"6551b710.a6e528","type":"inject","z":"f5e61d75.93bc1","name":"OFF","topic":"x","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":320,"wires":[["4a75b5cb.32488c"]]},{"id":"cc553fd0.3e82a","type":"ioplugin","z":"","name":"","username":"","password":"","boardType":"beaglebone-io","serialportName":"","connectionType":"local","mqttServer":"","pubTopic":"","subTopic":"","tcpHost":"","tcpPort":"","sparkId":"","sparkToken":"","beanId":"","impId":"","uuid":"","token":"","sendUuid":"","samplingInterval":"100"}]`

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/51b559d647fbc9a2935764e23e0b2c03235e0cb9.png)  
msg : error "TypeError: Cannot read property 'index' of undefined". when I change PIN 48 into P9\_15, return msg : error"Error: EACCES: permission denied, open /sys/devices/platform/ocp/ocp:P9\_15\_pinmux/state'"  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/6/f612ac410c77f441ff80701699cf54c77e099d68.png)  
I have only node-red-contrib-johnny5,I don't know how to do,I hope someone help me,Some advise?  
Thank you in advance

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [7 April 2021 07:23 UTC](https://discourse.nodered.org/t/i-can-not-control-beaglebone-black-gpio/40480/2 "2021-04-07T07:23:27Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
