-
Notifications
You must be signed in to change notification settings - Fork 0
GPIO
Giovanni Bruno edited this page Apr 27, 2019
·
12 revisions
This node supports two modes:
- Digital Output, true/false output
- Digital Input, true/false input
You can run this node by typing:
rosrun upboard_ros gpio_node
To turn on pin 22:
rostopic pub /upboard/gpio/write upboard_ros/ListGpio "{header: auto, gpio:[{pin: 22, value: 1}]}" --once
To turn off pin 22:
rostopic pub /upboard/gpio/write upboard_ros/ListGpio "{header: auto, gpio:[{pin: 22, value: 0}]}" --once
rostopic echo /upboard_ros/gpio/read
Used GPIO are set to 0 when gpio_node is killed.
Max voltage for digital input is 3.3 volts.
Copyright (c) 2019 Giovanni di Dio Bruno under MIT license