getting_started:tutorials:oneaxis_bbb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| getting_started:tutorials:oneaxis_bbb [2026/05/29 11:22] – [Encoder Inputs] ursgraf | getting_started:tutorials:oneaxis_bbb [2026/06/02 16:55] (current) – [Experimental Setup with a Beaglebone Blue Board] ursgraf | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Use a [[https:// | Use a [[https:// | ||
| + | {{: | ||
| ===== Testing the Hardware ===== | ===== Testing the Hardware ===== | ||
| Line 10: | Line 11: | ||
| There are 4 connectors denoted with //DC Motors//. Connect number 1 with the motor. Before testing plug in the 12V DC power supply or the Li-Po battery, otherwise the motors won't run. ssh into the Beaglebone blue board and run | There are 4 connectors denoted with //DC Motors//. Connect number 1 with the motor. Before testing plug in the 12V DC power supply or the Li-Po battery, otherwise the motors won't run. ssh into the Beaglebone blue board and run | ||
| < | < | ||
| - | ost@bblue: | + | ost@bblue: |
| </ | </ | ||
| - | //-m 1// selects the first motor while //-d 1// specifies a duty cycle of 1. The motor should run in positive direction. If the motor turns in the opposite | + | Open two other shells and run |
| + | < | ||
| + | ost@bblue:$ sudo gpioset | ||
| + | </code> | ||
| + | and | ||
| + | < | ||
| + | ost@bblue:$ sudo gpioset | ||
| + | </code> | ||
| + | Changing the polarity | ||
| + | < | ||
| + | ost@bblue:$ echo 0 | sudo tee /sys/class/pwm/pwmchip2/export | ||
| + | ost@bblue:$ echo 1000000 | sudo tee /sys/ | ||
| + | ost@bblue:$ echo 200000 | sudo tee / | ||
| + | ost@bblue:$ echo 1 | sudo tee / | ||
| + | </ | ||
| ==== Enable Signal ==== | ==== Enable Signal ==== | ||
| Line 27: | Line 43: | ||
| ost@bblue: | ost@bblue: | ||
| </ | </ | ||
| - | Turning the motor in positive direction must lead to the encoder counting upwards. If not, change the A and B signals. | + | Turning the motor in positive direction must lead to the encoder counting upwards. If not, change the MDIR_1A |
| ==== Ready Signal ==== | ==== Ready Signal ==== | ||
| The ready signal signals to the controller that the motor controller has powered up. As there is no external motor controller on the Beaglebone blue we simply put this signal on a digital input pin which is connected to the on board push button // | The ready signal signals to the controller that the motor controller has powered up. As there is no external motor controller on the Beaglebone blue we simply put this signal on a digital input pin which is connected to the on board push button // | ||
| + | < | ||
| + | ost@bblue:$ sudo gpioget -c gpiochip1 MODE_BTN | ||
| + | </ | ||
| ==== Emergency Signal ==== | ==== Emergency Signal ==== | ||
| The emergency signal is used to bring the application in a safe mode. We put this input signal on a digital input pin which is connected to the on board push button //Pause//. Later when the application runs we can cause the safety system to switch to an emergency state by pressing the //Pause// button. | The emergency signal is used to bring the application in a safe mode. We put this input signal on a digital input pin which is connected to the on board push button //Pause//. Later when the application runs we can cause the safety system to switch to an emergency state by pressing the //Pause// button. | ||
| + | < | ||
| + | ost@bblue:$ sudo gpioget -c gpiochip1 PAUSE_BTN | ||
| + | </ | ||
| =====Run Application===== | =====Run Application===== | ||
getting_started/tutorials/oneaxis_bbb.1780046545.txt.gz · Last modified: by ursgraf
