Besides the RPi itself we will also need a power supply, a microSD card loaded with NOOBS (the software that installs the operating system), a keyboard, a mouse and also a USB cable to connect the Raspberry Pi to the LSS Adapter board (the LSS arm already comes with this cable). In this project, we will be using the Raspberry Pi 4 as the robot's brain. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Python and Scratch. The Raspberry Pi runs Linux, but it also provides a set of GPIO (general purpose input/output) pins that allow you to control electronic components for physical computing. In case you are not familiar with it, the Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. These servos can be controlled using standard RC PWM or the human-readable LSS serial protocol which makes configuring the servos extremely easy and intuitive. "Smart" means that the servo parameters are user modifiable and configurable, so you can easily change the properties of each servo anything from setting the maximum speed to the holding stiffness and more, you can even query a wide variety of real-time values, including position, current, voltage and temperature. The arm uses the LSS Adapter Board to communicate with and power the Lynxmotion Smart Servos which are the stars of the show. However, in this tutorial we will be using the original arm with no modifications, only the foam on the inside of the gripper was trimmed a little so that it wasn’t necessary to open it so much to grab the pieces as this could cause adjacent pieces to move by accident. This project was built around the new LSS 4 DoF Robotic Arm, which is a Lynxmotion’s articulated arm designed around the fully configurable Lynxmotion Smart Servos and the modular construction system Servo Erector Set V2, which facilitates customization and expansion, so adding additional degrees of freedom or changing the gripper is very easy. It does not require any special chess board or pieces in fact, the GUI allows you to enter the dimensions of your board so you can play without making any changes to the code or having to make a custom board. It uses Stockfish as chess engine to validate the human player's moves and decide which move the robot will make, then it uses all this information to transcribe the game in a graphical user interface that shows the game state and allows you to configure all the aspects of it, for example, at the start of the game it allows you to calibrate the camera and choose which color you would like to play with. It uses a camera and a visual recognition system running on a Raspberry Pi to detect the movements of chess pieces in the game. And don’t worry! It's very easy to set up, the code is written in Python, and every step of the project is explained in this tutorial series, so it's perfect for those who don't have much experience in the field. Then this project is perfect for you!Ī robotic arm that plays chess! This project integrates aspects of robotics, computer vision, and of course chess. Have you ever wanted to play chess but don't know anyone who knows how to play? Or perhaps your opponent is not at your level and you want a bigger challenge? Or maybe you just want to impress your friends with a very smart robot (maybe even smarter than them).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |