test
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| test [2026/05/19 16:55] – [LEDs and buttons] ursgraf | test [2026/05/20 11:35] (current) – ursgraf | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| ==== Encoders ==== | ==== Encoders ==== | ||
| - | ssh into the BeagleBone blue board and enable | + | Enable |
| < | < | ||
| ost@bblue:$ echo 1 | sudo tee / | ost@bblue:$ echo 1 | sudo tee / | ||
| - | ost@bblue:$ echo 1 | sudo tee / | + | ost@bblue:$ echo 1 | sudo tee / |
| - | ost@bblue:$ echo 1 | sudo tee / | + | ost@bblue:$ echo 1 | sudo tee / |
| </ | </ | ||
| 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: | ||
| </ | </ | ||
| 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 on pin GPIO3_2 with | ||
| < | < | ||
| - | ost@bblue: | + | ost@bblue: |
| </ | </ | ||
| - | The password is " | + | Do the same with the red led on pin GPIO1_17 |
| - | < | + | |
| - | root@bblue: | + | |
| - | </ | + | |
| - | and add the pins involved to the gpio array with | + | |
| - | + | ||
| - | The blue led should light up with | + | |
| - | < | + | |
| - | root@bblue: | + | |
| - | root@bblue: | + | |
| - | </ | + | |
| - | and stop lighting with | + | |
| - | < | + | |
| - | root@bblue: | + | |
| - | </ | + | |
| - | Do the same with the red led | + | |
| < | < | ||
| ost@bblue:$ sudo gpioset -c gpiochip0 17=1 | ost@bblue:$ sudo gpioset -c gpiochip0 17=1 | ||
| </ | </ | ||
| - | And the green led | + | And the green led on pin GPIO3_20 |
| < | < | ||
| - | root@bblue: | + | ost@bblue: |
| - | root@bblue: | + | |
| - | root@bblue: | + | |
| </ | </ | ||
| Read the state of the blue button with | Read the state of the blue button with | ||
| < | < | ||
| - | root@bblue: | + | ost@bblue: |
| - | root@bblue: | + | |
| </ | </ | ||
| - | Repeat the last command with the button pressed. Do the same with the red button | + | When the button |
| < | < | ||
| - | root@bblue: | + | ost@bblue: |
| - | root@bblue: | + | |
| </ | </ | ||
| And the green button | And the green button | ||
| < | < | ||
| - | root@bblue: | + | ost@bblue: |
| - | root@bblue: | + | |
| - | </ | + | |
| - | Exit root mode with | + | |
| - | < | + | |
| - | root@bblue: | + | |
| </ | </ | ||
test.1779202535.txt.gz · Last modified: by ursgraf
