User Tools

Site Tools


ntb:build

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
ntb:build [2021/10/06 11:18] – [Test the Hardware] ursgrafntb:build [2026/06/03 15:11] (current) – [Test the Hardware] ursgraf
Line 11: Line 11:
 The same tests as [[..::test|]] can be performed on this robot. Additionally, the following two tests must be performed. The same tests as [[..::test|]] can be performed on this robot. Additionally, the following two tests must be performed.
  
-The NTB version of the Delta has a target tool point (TCP) with a motor and a magnet. The magnet can be operated as follows (run as root)+The NTB version of the Delta has a target tool point (TCP) with a motor and a magnet. The magnet can be operated as follows: 
 <code> <code>
-root@bblue:cd /sys/class/leds +ost@bblue:echo 1 | sudo tee /sys/class/leds/red/brightness
-root@bblue:$ echo 1 > red/brightness+
 </code> </code>
  
-The TCP motor should turn clockwise with the command+The TCP motor should turn clockwise with the commands
 <code> <code>
-ost@bblue:$ sudo rc_test_motors -m 4 -1+ost@bblue:$ sudo gpioset -c gpiochip1 MDIR_4A=1 
 +</code> 
 +and 
 +<code> 
 +ost@bblue:$ sudo gpioset -c gpiochip1 MDIR_4B=0 
 +</code> 
 +Changing the polarity of MDIR_4A and MDIR_4B will change the direction. In a further shell, configure the pwm signal as follows: 
 +<code> 
 +ost@bblue:$ echo 1 | sudo tee /sys/class/pwm/pwmchip4/export 
 +ost@bblue:$ echo 1000000 | sudo tee /sys/class/pwm/pwmchip4/pwm1/period 
 +ost@bblue:$ echo 500000 | sudo tee /sys/class/pwm/pwmchip4/pwm1/duty_cycle 
 +ost@bblue:$ echo | sudo tee /sys/class/pwm/pwmchip4/pwm1/enable
 </code> </code>
  
-Check the direction of the encoder. +The counter0 for the TCP encoder does not have to be enabledWatch the counter with
 <code> <code>
-ost@bblue:rc_test_encoders +ost@bblue:watch -n 0.5 cat /sys/bus/counter/devices/counter0/count0/count 
 </code> </code>
 +If you move the axis you should see counter values changing. Check the direction of the encoder. 
 Turn the TCP clockwise and the encoder values should be positive. If not, change the hardware configuration in //HwConfigBBBlue.json//. Turn the TCP clockwise and the encoder values should be positive. If not, change the hardware configuration in //HwConfigBBBlue.json//.
 ====== Hardware Configuration Files ====== ====== Hardware Configuration Files ======
ntb/build.1633511896.txt.gz · Last modified: by ursgraf