Connect 4 With Strip Led Arduino and 3d Print
by jean philippec in Circuits > Arduino
784 Views, 5 Favorites, 0 Comments
Connect 4 With Strip Led Arduino and 3d Print
We created a connect 4 game using a ws2811 Led strip and an arduino, the box is 3d printed.
This game is very fun to play
Supplies
We modeled the parts in fusion 360
the matrix that will support the leds is 7 by 7, (1 line for the waiting pawn). It is printed in black to better absorb the light.
The screen is white to diffuse the light well.
A box that will contain all the LEDs, you can print it in the color of your choice (we printed it in red).
A base to receive the screen and the arduino which can also be printed in the desired color (we printed it in blue).
It is then necessary to insert the leds in the holes of the matrix, it is then absolutely necessary to follow the mapping plan (present in the attached excel table)
The map map allows you to tell the Arduino which led to light up with its position on the led strip.
We have attached a .csv table to indicate the order in which the LEDs should be installed, otherwise here is the order starting from the top left.
0 1 2 3 4 5 6
43 42 31 30 19 18 7
44 41 32 29 20 17 8
45 40 33 28 21 16 9
46 39 34 27 22 15 10
47 38 35 26 23 14 11
48 37 36 25 24 13 12
0 symbolizes the first led of the strip led
So that the leds are stable, we add a lot of hot cole.
Then we put the screen in front of the matrix.
We incorporate everything in the box of the screen.
Finally we put this screen on the base and block everything with small clips.
Downloads
Connect the wires to the arduino
the strip must be connected to ground, +5v and data to pin 3 of the arduino.
The move button to the right on pin 13
The move button to the left on pin 12
The validation button on pin 11
Finally the other terminal of each button must be connected to the +5v of the arduino
Next the code...