Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Autonomous Sudoku Solving Robot

Components and supplies

Autonomous Sudoku Solving Robot
Raspberry Pi 3 Model B
×1
Autonomous Sudoku Solving Robot
Raspberry Pi Camera Module
×1
Autonomous Sudoku Solving Robot
Arduino UNO
×1

Necessary tools and machines

Autonomous Sudoku Solving Robot
3D Printer (generic)

Apps and online services

Autonomous Sudoku Solving Robot
TensorFlow
Autonomous Sudoku Solving Robot
OpenCV
python

About this project

A robot that solves and fills alone a Sudoku' grid!

Sudoku are digital puzzles that computers can solve automatically because they obey some simple mathematical rules.

Autonomous Sudoku Solving Robot
Autonomous Sudoku Solving Robot

The main objective of this project was to build a rudimentary and autonomous robot, like plotting table base on 3D printer idea, which will be able to:

  • analyze the grid of sudoku to be filled
  • solve the Sudoku problem
  • fill the grid

That means the robot must be able to process the grid to be solved in order to detect the boxes already filled,their values and then proceed to filling just like the filled grid show bellow.

How it works?

The hardware of the robot consist at using a Raspberry Pi 3 with a camera. A photo of the grid is taken at the beginning of the process.

Autonomous Sudoku Solving Robot
Autonomous Sudoku Solving Robot
Autonomous Sudoku Solving Robot

The grid is then pre-processed using image processing methods to suppress artefact. It is then redress to obtain a picture focused only on the grid.

Once the Sudoku grid obtained, we segment the grid to extract each box and proceed to image recognition using a neural network. At the end of this process we have a numerical representation of our grid which can then be solve.

Once solve the raspberry pi is again used to control the motors of the robot in order to fill the grid.

To sum up,

Autonomous Sudoku Solving Robot
  • 1 - redress the grid
  • 2 - estimate the grid contours
  • 3 - enhence the contour ( by multiplying 1 by 2)
  • 4 - segment the grid to extract boxes
  • 5 - proceed to image recognition

The result

Required skills

  • computer vision
  • Images processing
  • Programming skills
  • Electronic
  • Mechanical

Useful tools and API

  • Python
  • tensorflow for neural network
  • opencv for image processing

References

  • https://en.wikipedia.org/wiki/Sudoku
  • https://github.com/Sanahm/TensorFlow-Tutorials

For more information about the project don't hesitate to contact me on Github.

Code

Github
https://github.com/Sanahm/Sudoku-robothttps://github.com/Sanahm/Sudoku-robot

Manufacturing process

  1. Build a Smart Robot with the Bridge Shield – Raspberry Pi & Arduino Integration
  2. Build Your Own Raspberry Pi Robot with the MonkMakes RRB2 Kit – A Detailed Guide
  3. Building the XMP‑1: A Low‑Cost XMOS‑Raspberry Pi Mobile Platform
  4. DIY Wall‑E Inspired Raspberry Pi CD‑Box Robot
  5. Build a Bluetooth‑Controlled Raspberry Pi Robot with Audio Feedback
  6. Build a Raspberry Pi Webcam Robot – Step‑by‑Step Video Streaming Guide
  7. Gesture‑Controlled Robot Powered by Raspberry Pi
  8. gatoBot: Raspberry Pi Zero W Web‑Controlled Robot with Live Video Streaming
  9. Build a Wi‑Fi‑Controlled Raspberry Pi Robot with Python – Step‑by‑Step Guide
  10. Build Your Own Raspberry Pi Robot: A Beginner‑Friendly Guide