Skip to content

klkl140/dokoro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dokoro

a roboter for playing cards

##idea: This device should replace a normal player. It will be possible to play doko without having 4 people at the same table. The device could act like a normal player, playing with its own intelligence or as an interface for an external player, for example sitting in timbuktu. In addition it can be used for many different card games. Only a software problem.....

dokoro openscad

##how it should work: A human player is distributing the cards. The dokoro gets its cards placed in the cardholder. It starts scanning its cards. For this purpose it has minimalistic hardware. One motor, one servo and a camera. The cards a placed one by one in front of the camera and an image-recognition is used. Here a small animation.

After all the cards are recognized the play could start. A camera watches the playfield. This second view might be part of the first camera view using a mirror. For the intelligence the project FreeDoko is planed to be used.

##the OpenSCAD construction uses:

###public libraries

ParametricHerringboneGears.scad
pibase.scad
Font/font_DesignerBlock_lo.scad
ISOThreadCust.scad

###included files

CameraAdapter.scad, based on piCameraMicroscopeAdapter.scad
kugellager.scad
9g_servo.scad

##additional used parts:

  • 4 ball-bearing 625
  • 2 ball-bearing 683
  • 2 rubber-bands 130*4mm
  • gear motor 12V, 200 U/min
  • mini servo 9g SG90 with some parts
  • a metal axis 70*3mm
  • threaded rod M2*40
  • Raspberry Pi with camera
  • electronic for driving the motor and the servo (adafruit motor HAT)
  • some screws and washers
    • screws countersunk (4x M3x6)
    • screw nuts (13x M3)
    • screws, flat (8x M3x10, 1x M3x24)
    • washers M3

##electronics: An Adafruit Motor HAT circuit instructions is used for driving the DC-motor and the servo. The DC motor is connected to M3, the servo is driven by the PWM of the Raspi with an aditional 5V regulator.

##other ideas: A monitor could be used to show informations, a speaker for giving valuable comments. When the dokoro is used as an interface, these parts could be used to get a real connection to the remote player.
The main focus is an easy to use device without any unnecessary interface. Speach recognition could be a good way to make some necessary inputs like anouncing solos, wedding, ...

##current status: The hardware seems to work. Cards could be moved by the driven rubber bands. The servo is mechanically able to move the cards and the whole flow of scanning the cards seem possible.
FreeDoko could be compiled and the place of the missing interface is clear.
Next step is connecting the raspbi to drive motor and servo. Im searching for help in every project part. Help is given when someone tries to build his own example for development.
There is no working example available (up to now).

##challenges: The reliability of the mechanic is not easy. All moving parts are constructed with ball bearings. The separation of cards might be difficult, especially when dirty cards will be allowed.
Getting the interface to the Freedoko source might be easy. There is a network-player option which matches perfectly. The server has to the changed in the way that cards are not in the program but on the table.
The use as an interface for external players will be a big place for software development.

##licensing The project is licenced using GPL2.

Enjoy it.... Klaus

About

a roboter for playing cards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published