ho voluto riprendere un mio vecchio progetto, forse è passato anche un anno, e quel progetto non è mai stato iniziato.
Questo è il momento giusto di realizzare il mio vecchio "sogno".
Posseggo un braccio robotico AL5A Lynxmotion e ho sempre voluto utilizzarlo in un modo divertente e diverso dal solito.
Quindi ho pensato, anche con l'aiuto dei video che girano su Youtube, di utilizarlo per farlo giocare a dama.
Questo è il video che ho visto io:
http://www.youtube.com/watch?v=Gl3CROmtHEU
Soltanto che non so come fare...
- Si può utilizzare la SSC32 o Arduino UNO?
- Quel programma di dama come lo abbino alla webcam?
- Come lo devo programmare?
Queste sono informazioni sul forum (http://www.lynxmotion.net/viewtopic.php?f=6&t=6534)
1. The checkers game: http://www.3dkingdoms.com/checkers.htm
2. The position of the the pieces is determined with a color average algorithm. Every webcam frame is converted to an 8x8 color matrix containing the color average for every square on the board. If that changes it means that there is movement. After the movement stops, the matrix is compared to an already stored one ( obtained by clicking sample at the beginning of the game). Since I'm only interested in the white pieces, I am searching for changes in the amount of "green" (because red pieces don't have any green) .
So, on the square where there is a surplus of green means that is a new white piece, and on the square where there is less green a white piece is missing. When these to conditions are met it means that a piece was moved and the board. The stored color matrix is changed with the new values( the same thing as clicking sample).
3. The arm movement is strait foreword. I have created 64 small projects in RIOS, picking and placing for every black square. So, if i want to pick a piece from square 5 and place it on square 8 for ex. I'm telling RIOS (via socket) to play projects "src5" and then "dst8".
I tried to avoid the troublesome of positioning the arm (from code) for every movement since there are lot of repetitive movements.
Vi prego aiutatemi
Ne sarei grato.
Andrea

Elettrotecnica e non solo (admin)
Un gatto tra gli elettroni (IsidoroKZ)
Esperienza e simulazioni (g.schgor)
Moleskine di un idraulico (RenzoDF)
Il Blog di ElectroYou (webmaster)
Idee microcontrollate (TardoFreak)
PICcoli grandi PICMicro (Paolino)
Il blog elettrico di carloc (carloc)
DirtEYblooog (dirtydeeds)
Di tutto... un po' (jordan20)
AK47 (lillo)
Esperienze elettroniche (marco438)
Telecomunicazioni musicali (clavicordo)
Automazione ed Elettronica (gustavo)
Direttive per la sicurezza (ErnestoCappelletti)
EYnfo dall'Alaska (mir)
Apriamo il quadro! (attilio)
H7-25 (asdf)
Passione Elettrica (massimob)
Elettroni a spasso (guidob)
Bloguerra (guerra)


