Device to play card games using a Virtual Field via NFC tags on the card sleeves and sensors to detect positions.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
MonsterZoneDetection_IR.inoino - 1.64 kB - 04/01/2020 at 21:40 |
|
I wanted to show you some basic field Monster position detection, for it I built a simple prototype using IR sensors. The code for detection can be found named "MonsterZoneDetection_IR". As you can see a transparent sheet serves as a place for the card to lay down and since IR light passes through this sheet it does not get detected as a card. When a card is placed on top of a sensor it gets triggered and outputs a digital high signal.
This alternative version of the Duel Disk uses buttons to detect card positions and zones. This makes the prototype much lighter and portable without compromising functionality.
I use the Adafruit Library to connect both devices. It is pretty clear and has really clear examples on how to do this. In some cases an extra wire for IRQs is needed. See diagram below
The zones of the field are detected by means of Photo-diodes present in certain spots on the Duel Disk. This Photo-diodes are activated by light outputing a certain voltage. This voltage can be read by an ADC on the Arduino and processed via a threshold or by a digital pia as either a HIGH or a LOW.
There are 17 Photo-diodes to detect in the 12 zones in the field.
Additional coding has been made to accommodate the timing of how the player places the card, since one player can take more time to place the card.
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates
heeey kan je mij misschien alles toesturen ben ook met dit project bezig
Dmpshyco@gmail.com