Tetris on a PIC

Post here to let others know of a project you're working on.

Moderators: Chuckt, Garth, bitfogav

MrDEB
I practically live here!
I practically live here!
Posts: 372
Joined: Fri Feb 18, 2011 4:24 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Tetris on a PIC

Post by MrDEB » Wed Sep 05, 2012 8:41 pm

Been planning this for awhile and a recent post over at DDIY about board size is impossible using the 38mmx38mm LED matrix as I assume they are referring to. 38 * 2 = 76mm plus the switches which are 12mm across 76 + 24 = 100 but no room for space in between as I see it.
Have been working on a board but using SMT for all except the LED matrixs. Looking for right size so entire project can fit on a very small board from Itead studios.
http://digital-diy.com/forum/electronic ... tml#p14671
anyone who wishes to get involved with this is welcome.

W4GNS
newbie
newbie
Posts: 6
Joined: Wed Feb 23, 2011 10:02 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by W4GNS » Thu Sep 06, 2012 5:28 am

I'm curious, as I'm THE KING of fat fingers. How small do you think this board can go, and still be practible ? I understand making it small cost wise, but looking at the picture it already appears to be small considering it's a game to play, press buttons, etc. If it was an occasional button press I can see smaller. But the main point of the game is pressing buttons, and small would be more difficult,for me anyway.

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by brad » Thu Sep 06, 2012 7:46 am

How about you mix it up a bit and put in an accelerometer. That way you can move the pieces around by tilting :)

Speaking of small designs - I should be receiving my latest order from itead studio. These boards are the same size as the bi-color led matrix displays (32mm x 32mm) It's something I plan on selling real soon now!
screen-capture-24.png
screen-capture-24.png (51.06 KiB) Viewed 18115 times
screen-capture-23.png
screen-capture-23.png (53.19 KiB) Viewed 18115 times
The board holds:
:arrow: 18f43k20 microcontroller
:arrow: mini usb socket
:arrow: lithium polymer battery charger chip
:arrow: 2 x capacitors
:arrow: push button
:arrow: on / off switch
:arrow: 8 x 2n2222 transistors
:arrow: 27 x resistors
:arrow: 2 x photodiodes
:arrow: bi-color led matrix

MrDEB
I practically live here!
I practically live here!
Posts: 372
Joined: Fri Feb 18, 2011 4:24 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by MrDEB » Thu Sep 06, 2012 1:30 pm

Curious about your Itead boards?
Exactly what does it do with only one 32 x 32 display.
This is very similar to a project I started, got sidetracked and now back to it.
A schematic and/or description of this upcoming project.

MrDEB
I practically live here!
I practically live here!
Posts: 372
Joined: Fri Feb 18, 2011 4:24 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by MrDEB » Thu Sep 06, 2012 10:14 pm

After retiring to bed I got to wondering why you used transistors instead of say a ULN2803? I redid my Tetris board design using individual 1206 resistors instead of 16pin smd resistor paks. Layout looks cleaner but more components.
THANKS to Jon for changing coarse instead of moving switches around and suggesting rotating the board 45 degrees, the board can then be 100mm x 100mm.
If I used smaller LED matrix blocks I think could make this fit on a 50 x 50 board and fit in ones pocket. The switches are then a real issue but then look at how small a cellphone has switches.

MrDEB
I practically live here!
I practically live here!
Posts: 372
Joined: Fri Feb 18, 2011 4:24 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by MrDEB » Fri Sep 07, 2012 2:00 am

transistors w/ bias resistors built in!!
http://www.mouser.com/ProductDetail/NXP ... 0RPw%3d%3d
never heard of this but might be easier to use than the ULN2803 as I am having issues with traces.

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by brad » Fri Sep 07, 2012 7:37 am

Nice find with those transistors! that would save a lot of extra soldering (not to mention space on your PCB)

I used transistors instead of the ULN2803 because the LED matrix is a common anode variety. If they were common cathode then the ULN2803 would be perfect :)

MrDEB
I practically live here!
I practically live here!
Posts: 372
Joined: Fri Feb 18, 2011 4:24 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by MrDEB » Fri Sep 07, 2012 11:08 pm

planning on using http://www.mouser.com/ProductDetail/Pan ... NAKhw6c%3d
has a 2.2k resistors.
Laying out the board using a uln2803 gets impossible.

MrDEB
I practically live here!
I practically live here!
Posts: 372
Joined: Fri Feb 18, 2011 4:24 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by MrDEB » Fri Sep 07, 2012 11:28 pm

It shouldn't make to much of a difference common Anode or common Cathode. The uln2803 could be used for either I would think. Just change the output level.

User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

Re: Tetris on a PIC

Post by bitfogav » Sat Sep 08, 2012 2:23 am

MrDEB wrote:It shouldn't make to much of a difference common Anode or common Cathode. The uln2803 could be used for either I would think. Just change the output level.
The UNL2803 uses eight NPN Darlington transistors?! :roll:
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by brad » Sat Sep 08, 2012 12:59 pm

MrDEB wrote:It shouldn't make to much of a difference common Anode or common Cathode. The uln2803 could be used for either I would think. Just change the output level.
What do you mean exactly?

MrDEB
I practically live here!
I practically live here!
Posts: 372
Joined: Fri Feb 18, 2011 4:24 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by MrDEB » Sun Sep 09, 2012 9:42 pm

I was thinking out loud that maybe a ULN2803 could be used as a "high side" switch by using a pull down resistor or ?.
Perhaps have the PIC output a high then go low for switching or ???

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by brad » Sun Sep 09, 2012 11:08 pm

Unfortunately not. It was a bit annoying actually because I originally designed my circuit with a ULN2803 and didn't realise that it wouldn't work until it was basically complete!

MrDEB
I practically live here!
I practically live here!
Posts: 372
Joined: Fri Feb 18, 2011 4:24 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by MrDEB » Mon Sep 10, 2012 7:13 am

Talk about annoying, I realized that I designed my present schematic using a common anode instead of common cathode matrix. My latest project I have some help from Kingbright concerning matrix block size etc. Working on getting a sample of 8 x 8 Led matrix w/ 10mm LED dots in RED and Green if they even have such a beast.
Received samples of 5 x 7 bi color matrices.
To add to my problems when I printed the board design to copper I failed to disable the silk screen layer. Spent time scratching away unwanted black lines on one side. Tomorrow after I print the bottom layer, back to scratching.
Back to it tomorrow is the best solution to avoid going from bad to worse.

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Tetris on a PIC

Post by brad » Mon Sep 10, 2012 7:23 am

Scratching copper off is no fun, can you post a pic of how the board turned out?

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 4 guests