test
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| test [2026/06/03 14:09] – [Motors] ursgraf | test [2026/06/03 15:14] (current) – [Mouse] ursgraf | ||
|---|---|---|---|
| Line 40: | Line 40: | ||
| Check the third motor with | Check the third motor with | ||
| < | < | ||
| - | ost@bblue:$ sudo gpioset -c gpiochip0 MDIR_2A=1 | + | ost@bblue:$ sudo gpioset -c gpiochip1 MDIR_3A=1 |
| </ | </ | ||
| and | and | ||
| < | < | ||
| - | ost@bblue:$ sudo gpioset -c gpiochip3 MDIR_2B=0 | + | ost@bblue:$ sudo gpioset -c gpiochip1 MDIR_3B=0 |
| </ | </ | ||
| - | Changing the polarity of MDIR_2A | + | Changing the polarity of MDIR_3A |
| < | < | ||
| - | ost@bblue:$ echo 1 | sudo tee / | + | ost@bblue:$ echo 0 | sudo tee / |
| - | ost@bblue:$ echo 1000000 | sudo tee / | + | ost@bblue:$ echo 1000000 | sudo tee / |
| - | ost@bblue:$ echo 500000 | sudo tee / | + | ost@bblue:$ echo 500000 | sudo tee / |
| - | ost@bblue:$ echo 1 | sudo tee / | + | ost@bblue:$ echo 1 | sudo tee / |
| </ | </ | ||
| ==== Encoders ==== | ==== Encoders ==== | ||
| Line 60: | Line 60: | ||
| 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 |
| < | < | ||
| - | ost@bblue:$ watch -n 0.5 cat / | ||
| ost@bblue:$ watch -n 0.5 cat / | ost@bblue:$ watch -n 0.5 cat / | ||
| ost@bblue:$ watch -n 0.5 cat / | ost@bblue:$ watch -n 0.5 cat / | ||
| Line 73: | Line 72: | ||
| The blue led should light up on pin GPIO3_2 with | The blue led should light up on pin GPIO3_2 with | ||
| < | < | ||
| - | ost@bblue:$ sudo gpioset -c gpiochip2 | + | ost@bblue:$ sudo gpioset -c gpiochip2 |
| </ | </ | ||
| Do the same with the red led on pin GPIO1_17 | Do the same with the red led on pin GPIO1_17 | ||
| < | < | ||
| - | ost@bblue:$ sudo gpioset -c gpiochip0 | + | ost@bblue:$ sudo gpioset -c gpiochip0 |
| </ | </ | ||
| And the green led on pin GPIO3_20 | And the green led on pin GPIO3_20 | ||
| < | < | ||
| - | ost@bblue:$ sudo gpioset -c gpiochip2 | + | ost@bblue:$ sudo gpioset -c gpiochip2 |
| </ | </ | ||
| Read the state of the blue button with | Read the state of the blue button with | ||
| < | < | ||
| - | ost@bblue:$ sudo gpioget -c gpiochip2 | + | ost@bblue:$ sudo gpioget -c gpiochip2 |
| </ | </ | ||
| When the button is pressed it will return //" | When the button is pressed it will return //" | ||
| < | < | ||
| - | ost@bblue:$ sudo gpioget -c gpiochip0 | + | ost@bblue:$ sudo gpioget -c gpiochip0 |
| </ | </ | ||
| And the green button | And the green button | ||
| < | < | ||
| - | ost@bblue:$ sudo gpioget -c gpiochip2 | + | ost@bblue:$ sudo gpioget -c gpiochip2 |
| </ | </ | ||
| Line 102: | Line 101: | ||
| < | < | ||
| - | sudo cat /dev/input/event1 | + | sudo cat /dev/input/event0 |
| </ | </ | ||
| If you move the mouse you should see some characters on the screen. This shows that the mouse inputs are received by the BBBlue. | If you move the mouse you should see some characters on the screen. This shows that the mouse inputs are received by the BBBlue. | ||
| + | |||
| ===== Adjust Hardware Configuration File ===== | ===== Adjust Hardware Configuration File ===== | ||
| - | Check the direction of the encoders. Lower your TCP and run | + | Check the direction of the encoders. Lower your TCP and run watch your encoder values.When raising the TCP the encoder values should be positive. Change each negative encoder in the // |
| - | < | + | |
| - | ost@bblue:$ rc_test_encoders | + | |
| - | </ | + | |
| - | on your target. When raising the TCP the encoder values should be positive. Change each negative encoder in the // | + | |
| < | < | ||
| " | " | ||
test.1780488573.txt.gz · Last modified: by ursgraf
