Тёмный

#how 

FTmodels
Подписаться 138
Просмотров 68
50% 1

fischertechnik TXT 4.0 version of ball on a plate with details about hardware design and programming details.
Camera from the top over the board gives x/y coordinates of the ball from -21 to 21 in each axis.
3 fischertechnik servos define the board hight and angle.
The board only tilts around a calculated zero hight of the center of the board, but it can also bump to make the ball bounce.
Besides the calculation of the servo positions, the algorithm uses only P and D of a simple PID algorithm.
The P calculates a predicted position to compensate for the time lag of a the camera. Px = px + dx
Px is the predicted as-is position of the ball which takes the last ball movement into account:
dx = Px - old_Px
old_Px is the Px of the previous thread execution.
To give the TXT4.0 connected camera enough time to provide the next picture in 30 fps mode, we pause 9ms between each positioning calculation.
Enjoy and try yourself!

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Electromagnetic Aircraft Launcher
15:09
Просмотров 1,1 млн
COMMUNISM vs CAPITALISM: Who Made Better Power Tools?
24:39
Bacon на громкость
00:47
Просмотров 63 тыс.
Что думаете?
00:54
Просмотров 369 тыс.
The coolest robot I've ever built!
19:40
Просмотров 4,6 млн
3 Hours vs. 3 Years of Blender
17:44
Просмотров 4,8 млн
Fischertechnik Robot Balancing on a Ball
2:41
Просмотров 48 тыс.
I Built My Dream Keyboard from Absolute Scratch
21:52
Просмотров 751 тыс.
A 90-year-old Unsolved Telephone Question
28:45
Просмотров 78 тыс.
Bringing GLaDOS to life with Robotics and AI
13:04
Просмотров 864 тыс.
Bacon на громкость
00:47
Просмотров 63 тыс.