Introducing: Raspberry Pi Official Magazine
Hello there, it’s Rob from… well, from Raspberry Pi Official Magazine now! I will need to get a new hat.
As you may have seen, The MagPi magazine, including HackSpace, has been reborn under one official umbrella. We’ve always been the official Raspberry Pi magazine, and now that’s a bit more evident in our new name: Raspberry Pi Official Magazine. Or RPOM (ar-pom) for short.

Getting a makeover
We have a new, smarter look handcrafted by designers at Raspberry Pi Towers themselves, with the same excellent content over 132 pages. Community projects, build guides, product reviews, and cool 3D prints: that’s not changing.
If you have a subscription, that will stay the same too. No updates needed. And we’re also keeping the price of subscriptions the same — speaking of which, if you’d like to start a print subscription, head over to rpimag.co/subscribe to see our excellent offers. They’re available worldwide too!

Otherwise, you can still grab the latest issue from our online store or the Raspberry Pi Store in Cambridge, and in WHSmith, Tesco, Sainsbury’s, Asda, and all good newsagents. Here’s a taster of what issue #151 has in store:
Raspberry Pi Chess Board
California high school student Tamerlan Goglichidze has been coding and building projects since he was 11, teaching himself essential skills using online videos and tutorials before progressing from virtual to physical creations once his knowledge base gave him the confidence. This early focus would be impressive enough in itself, but Tamerlan was also busy taking on all-comers as a chess player who travelled extensively to compete in International Chess Federation matches. His Raspberry Pi Chess Board combines the two interests.

Winning strategy
He chose Raspberry Pi 4 as “the brain of the system, bridging the digital chess world with physical movements on the board”, noting its ability to handle advanced and complex systems as well as the versatile OS and accessible GPIO pins. Tamerlan felt it “was the best choice to handle both the chess engine calculations and stepper motor movements.”
His Raspberry Pi Chess Board project built on his experience of creating a Raspberry Pi–based MARS rover with a robot arm and a small JARVIS (from Iron Man) mechatronic simulation with animatronic servo eyes that move around, and also integrated voice recognition and artificial intelligence.

Pure magnetism
Seeing DIY but expensive automated chess boards online motivated Tamerlan to create a functional, budget-friendly version with similar capabilities that would capitalise on his growing engineering skills. He designed most aspects using Fusion 360 and used a standard chess board, cutting wooden boards as a base in his parents’ garage.
Challenges for the automated chess system included accurately weighing each chess piece so the XY stepper motor mechanism and magnets could seamlessly move them across the board. Tamerlan tracked down an algorithm to minimise the stepper motor’s power consumption. He used a servo linear actuator with a magnet to move each chess piece, rather than an electromagnet, having calculated it would be more power-efficient. “To generate a strong enough magnetic field to lift or attract objects, high current is typically required, demanding a robust power supply and generating heat, which must be managed,” he explains. “In contrast, a servo linear actuator needs power primarily during movement, with significantly lower standby power consumption.”

Using magnets moved by a stepper motor rather than a robot arm allowed Tamerlan to make the chess board as compact as possible. He wrote Python code to control each piece, translating the coordinates for each of the board’s 64 squares into steps the stepper motor could execute. Raspberry Pi calculates the best moves according to player input and translates text such as ‘b3b5’ into moves. “Castling is straightforward and can be handled by writing two different functions to cover the four possible cases and executing them accordingly.” He also needed a way to move pieces without pushing others out of the way, in particular the knight’s dog-leg movements. His solution has the knight do a half-step between squares, follow its move, and then reverse the half-step.
Peer approval
Players can specify difficulty levels and whether to play as black or white pieces against the computer chess engine, and there is a web option for remote play against other chess fans. The project quickly garnered interest and plaudits online. Buoyed up by the success of his Raspberry Pi Chess Board, which “gained remarkable attention” and, after being featured by a number of tech hobbyist sites, led to 40,000 visits to his own website, Tamerlan has set his sights on a computing or engineering career.
Raspberry Pi Official Magazine #151 out NOW!

Buy your copy of Raspberry Pi Official Magazine now from our online store, subscribe, or grab one from any of the shops I mentioned above, and let us know what you think of our new look!
The post Introducing: Raspberry Pi Official Magazine appeared first on Raspberry Pi.
from News - Raspberry Pi https://ift.tt/HoxzYMV
Comments
Post a Comment