User Tools

Site Tools


test

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
test [2026/05/20 08:47] – [LEDs and buttons] ursgraftest [2026/05/20 11:35] (current) ursgraf
Line 13: Line 13:
  
 ==== Encoders ==== ==== Encoders ====
-ssh into the BeagleBone blue board and enable the counters:+Enable the counters with:
 <code> <code>
 ost@bblue:$ echo 1 | sudo tee /sys/bus/counter/devices/counter1/count0/enable  ost@bblue:$ echo 1 | sudo tee /sys/bus/counter/devices/counter1/count0/enable 
-ost@bblue:$ echo 1 | sudo tee /sys/bus/counter/devices/counter1/count0/enable  +ost@bblue:$ echo 1 | sudo tee /sys/bus/counter/devices/counter2/count0/enable  
-ost@bblue:$ echo 1 | sudo tee /sys/bus/counter/devices/counter1/count0/enable +ost@bblue:$ echo 1 | sudo tee /sys/bus/counter/devices/counter3/count0/enable 
 </code> </code>
 The counter0 does not have to be enabled. Then watch the counters with The counter0 does not have to be enabled. Then watch the counters with
Line 27: Line 27:
 </code> </code>
 If you move the axis you should see counter values changing.  If you move the axis you should see counter values changing. 
 +
 ==== LEDs and buttons ==== ==== LEDs and buttons ====
 Next we want to check if all leds and buttons work as desired. Next we want to check if all leds and buttons work as desired.
-The blue led should light up with +The blue led should light up on pin GPIO3_2 with 
 <code> <code>
 ost@bblue:$ sudo gpioset -c gpiochip2 2=1 ost@bblue:$ sudo gpioset -c gpiochip2 2=1
 </code> </code>
-Do the same with the red led+Do the same with the red led on pin GPIO1_17 
 <code> <code>
 ost@bblue:$ sudo gpioset -c gpiochip0 17=1 ost@bblue:$ sudo gpioset -c gpiochip0 17=1
 </code> </code>
-And the green led+And the green led on pin GPIO3_20
 <code> <code>
 ost@bblue:$ sudo gpioset -c gpiochip2 20=1 ost@bblue:$ sudo gpioset -c gpiochip2 20=1
test.1779259652.txt.gz · Last modified: by ursgraf