Wiki: The Queen’s Gambit
For agents: Markdown version · Wiki index · Explore
- Speaker: Uri Nativ
- Event: Reversim Summit 2024
- Video: https://www.youtube.com/watch?v=5o7UNB4eptk
- Transcript: /transcripts/2024/29-5o7UNB4eptk.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: IoT, Software Engineering, Infrastructure, Productivity
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker shares their journey of building a smart digital chess board from scratch as a weekend hardware and software project. The talk covers designing the physical board using reed switches and a key-pad matrix to detect piece positions, overcoming communication and state-management challenges, and integrating it with a web application. Through this process, the speaker highlights the complexity of hardware development and the importance of keeping software logic on the server side. Ultimately, the project demonstrates how developers can bridge the physical and digital worlds using simple IoT components.
Key points
- 3:31 The speaker outlines the three main requirements for the project: reading the board state, sending data to a server, and calculating the chess moves.
- 4:35 Magnetic reed switches are chosen over computer vision to detect piece positions without requiring external cameras or setups.
- 9:52 A key-pad matrix wiring technique is implemented to reduce the required connections from 64 down to 16 for an 8-by-8 board.
- 14:20 Initial HTTP POST requests introduced high latency, prompting a switch to the MQTT protocol tailored for low-power IoT devices.
- 19:32 A complex state machine is developed on the server side to handle missing intermediate states and accurately track special moves like captures and castling.
- 22:55 Using magnets inside wooden pieces required manual drilling and custom placement since standard magnetic chess pieces did not interact correctly with a wooden board.
Takeaways
- Keep as much logic and processing as possible on the server side to make debugging and iterating easier compared to working with hardware.
- Adopt appropriate communication protocols like MQTT rather than standard HTTP when building Internet of Things (IoT) applications.
- Break complex multidisciplinary projects down and solve one challenge at a time iteratively.
Questions this talk answers
- How can you read a 64-square chessboard using fewer GPIO pins on a microcontroller?
- What is the best way to handle network latency and state tracking in IoT hobby projects?
- How do you reconstruct game moves when intermediate state information is lost by simple hardware sensors?
Technologies
Arduino, ESP32, MQTT, Redis, Node.js, Next.js, Vercel, React
Tags
embedded systems, full stack, hardware, iot, side project, state machine