It is currently Fri May 24, 2013 7:10 pm

All times are UTC + 10 hours




Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: 8*8 game system modifications
PostPosted: Fri Jul 02, 2010 4:52 pm 
Offline
semi-newbie
semi-newbie
User avatar

Joined: Fri Jul 02, 2010 4:54 am
Posts: 22
Location: Switzerland
As i was making the 8*8 game system i tough of some neat upgrades but i didn't know how to makes them. and i came up to some questions.

1-Can I use a prototype board instead of a bread board.
2-Is it possible to use a 3 color display instead of a 2 color.
-If yes how.
3- Where do i make the PICkit2 plug in on the board.
-And how.

Thank for reading.

-Nicolo86-


Top
 Profile E-mail  
 
 Post subject: Re: 8*8 game system modifications
PostPosted: Fri Jul 02, 2010 6:05 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
Quote:
1-Can I use a prototype board instead of a bread board.


Yes you can. Breadboard is just very handy for experimenting, but prototype board is perfect for when you have a working circuit.

Quote:
2-Is it possible to use a 3 color display instead of a 2 color.
-If yes how.


Yes, but you would only connect two of the three colours for the 8x8 game system games. My new LEDBOY uses an RGB three colour matrix, which one day I will get around to posting details of.

Quote:
3- Where do i make the PICkit2 plug in on the board.
-And how.


There are five connections on the pickit 2 that you will need to connect.

1. MCLR
2. VDD
3. VSS
4. PGD (data)
5. PGC (clock)

here's the pinout for the 16f648a or 16f628a
Image

you just need to connect the five pickit 2 connections to the same five connections on the microcontroller.


Last edited by brad on Sat Jul 03, 2010 1:20 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Thanks
PostPosted: Fri Jul 02, 2010 8:21 pm 
Offline
semi-newbie
semi-newbie
User avatar

Joined: Fri Jul 02, 2010 4:54 am
Posts: 22
Location: Switzerland
Thanks a lot you have been very useful. And one more thing i forgot to ask.

Which batteries should i use and were do i place them

Thanks for all.

-Nicolo86-


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Sat Jul 03, 2010 1:19 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
If you wanted to use batteries then there are basically three options.

1. Use a 9Volt battery and a 7805 voltage regulator to regulate the voltage to 5volts.

2. Use four AA batteries and then connect it to the pic through a 1n4001 diode (the diode will prevent you from damaging the pic if you were to connect to batteries around the wrong way and will also reduce the voltage from 6volts to around 5.3volts)

3. Use 3 AA batteries and run the pic at 4.5volts (it will still work just fine like this)

In any case, the positive goes to the VDD pic on the microcontroller and the Negative goes to the VSS pin on the microcontroller


Top
 Profile  
 
 Post subject: Re: 8*8 game system modifications
PostPosted: Mon Jul 05, 2010 10:29 pm 
Offline
semi-newbie
semi-newbie
User avatar

Joined: Fri Jul 02, 2010 4:54 am
Posts: 22
Location: Switzerland
Before you said

Quote:
Yes, but you would only connect two of the three colors for the 8x8 game system games.


but i can also hook up red and blue or blue and green, or only green and red.

Thanks

-Nicolo86-


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Mon Jul 05, 2010 10:51 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
You can hook up any two of the three colours and have it work with the 8x8 game system.

The LEDBOY uses all three colours and so just by turning each one on / off in various combinations, it is capable of 8 different colours (with black being all off)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 12, 2010 6:18 pm 
Offline
semi-newbie
semi-newbie
User avatar

Joined: Fri Jul 02, 2010 4:54 am
Posts: 22
Location: Switzerland
Would it be the same if i replace the 4 buttons which are used for the movement in the games with a small joystik or would i need to reprogram the programs and change the circuit.


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Mon Jul 12, 2010 7:28 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
That would work fine, you just need to replace the two push button connections with the two connections from the switch inside the joystick.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2010 5:13 am 
Offline
semi-newbie
semi-newbie
User avatar

Joined: Fri Jul 02, 2010 4:54 am
Posts: 22
Location: Switzerland
Hey Brad while making the system which i just got all the components i stumbeled on a problem which is:

what are the pins for the RED, GREEN, and COLUMN.

Tanks

-nicolo86-


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Fri Jul 23, 2010 6:14 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
nicolo86 wrote:
Hey Brad while making the system which i just got all the components i stumbeled on a problem which is:

what are the pins for the RED, GREEN, and COLUMN.

Tanks

-nicolo86-


Good question,

The pins are arranged like this:

GRAGRAGRAGRA
---------------------
|O O O O O O O O|
|O O O O O O O O|
|O O O O O O O O|
|O O O O O O O O|
|O O O O O O O O|
|O O O O O O O O|
|O O O O O O O O|
|O O O O O O O O|
---------------------
GRAGRAGRAGRA

A = Common Anode
R = Red Cathode
G = Green Cathode

so if you have the LED's facing you (so all pins are underneath), the bottom right pin is common anode 0, then the next pin is red cathode 0, and then green cathode 0.

So all in all, you have eight common anodes for eight rows, then you have eight cathodes of red for eight columns and then eight cathodes of green for eight columns.

One thing to note is that if you rotate the screen around 180 degrees that the pin connections will be out.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2010 7:10 am 
Offline
semi-newbie
semi-newbie
User avatar

Joined: Fri Jul 02, 2010 4:54 am
Posts: 22
Location: Switzerland
So practically the circuit would be like:

G-74373 chip-PIC
R-Resistor-Transistor-Resistor-74373 chip-PIC
A--Resistor-Transistor-Resistor-74373 chip-PIC

G-74373 chip-PIC
R-Resistor-Transistor-Resistor-74373 chip-PIC
A-Resistor-Transistor-Resistor-74373 chip-PIC

G-74373 chip-PIC
R-Resistor-Transistor-Resistor-74373 chip-PIC
A-Resistor-Transistor-Resistor-74373 chip-PIC

And so on. Right?

Thanks

-Nicolo86-


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Fri Jul 23, 2010 8:55 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
You want to use eight NPN transistors for the common anodes like this:

Image

These eight connections to the base of each transistor is driven by the microcontroller (or a 74373 depending on how you want to do it)

Then the common anodes are again controlled by either the microcontroller or they can connect to their own 74373.

because this is a common anode display, you need a logic 0 to turn on a cathode. the easiest way to do this is to still use logic 1's in your data. but just before you send the data to the cathodes, you invert the data.

e.g. if you wanted to send this data to the LED's

00110110

you would first invert, then send to the LED's like this:

Code:
movf data, w
xorlw b'11111111'
movwf PORTB


so the data stores the byte of data going to the LED's and the LED's are connected to PORTB. You copy the contents of data into the w register, then you invert all the bits by xor'ing them with all 1's then you send to the LED's.


Attachments:
common_anodes.PNG
common_anodes.PNG [ 7.22 KiB | Viewed 3196 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 24, 2010 2:19 am 
Offline
semi-newbie
semi-newbie
User avatar

Joined: Fri Jul 02, 2010 4:54 am
Posts: 22
Location: Switzerland
So confused.

So wait only the common anode gets the 2 resistors and the transistor, and the red and green cathode goes to the 74373 chip right away. Right?


Thanks for your help but i got a bit confused with the shcematics.

-nicolo86-


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Sun Jul 25, 2010 9:50 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
You just need to repeat this circuit until you have all eight outputs of both 74373's connected. One of them controls the transistor to provide VCC to the anode. The other one provides a ground to the cathode. (when you place a logic 0 on the 74373 output. If you are using a bi-colour display you just need to add an extra 74373 and connect it to the other colour cathodes (because they are common anode)

Image


Attachments:
74373 matrix setup.PNG
74373 matrix setup.PNG [ 1.8 KiB | Viewed 3172 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 25, 2010 10:20 pm 
Offline
semi-newbie
semi-newbie
User avatar

Joined: Fri Jul 02, 2010 4:54 am
Posts: 22
Location: Switzerland
Now i am rally confused. Sorry but i am not that great with curcuits.

So in your schematics you showed that the red and green cathodes connects to the resistor, then the transistors, again the resistor, and finally the chip. as shown int the schematics, but where i got lost is when you told me that the common cathode gets one resistor and one transistor, and the red and green cathode doesnt gets the 2 resistors and the one transistor.

So exuse my ingnorance, and please can you recap what connects to the different pins.

Tanks for all

-nicolo86-


Attachments:
Immagine.png
Immagine.png [ 180.41 KiB | Viewed 3166 times ]
Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme made by Keenen Wheeler