great race great project for school

Post here to discuss The Great Race.

Moderators: Chuckt, Garth, bitfogav

bman2309
newbie
newbie
Posts: 5
Joined: Mon Oct 18, 2010 6:38 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

great race great project for school

Post by bman2309 » Tue Oct 19, 2010 8:06 pm

hey guys
i've just completed this as my school pic programming project
i had heaps of fun doing it

ill upload a video of my completed project on youtube here...



I used my schools laser cutter to make and raster the box.

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: great race great project for school

Post by brad » Tue Oct 19, 2010 9:01 pm

That is the best looking housing I have seen! Very nice work indeed :)

You said it was for a school pic programming project - does this mean that everyone in your class made something aswell? I would have loved to have gone to a school where we got to work with microcontrollers!

bman2309
newbie
newbie
Posts: 5
Joined: Mon Oct 18, 2010 6:38 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: great race great project for school

Post by bman2309 » Tue Oct 19, 2010 10:01 pm

i was the only one to make this, the rest of the class made a 'ruldoph' pic kit thing using a simple Pic microcontroller (model?) with 8 pins. We were taught how to do simple programming.
Definitely my best project yet.

bman2309
newbie
newbie
Posts: 5
Joined: Mon Oct 18, 2010 6:38 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: great race great project for school

Post by bman2309 » Sun Oct 24, 2010 7:12 pm

brad wrote:That is the best looking housing I have seen! Very nice work indeed :)

You said it was for a school pic programming project - does this mean that everyone in your class made something aswell? I would have loved to have gone to a school where we got to work with microcontrollers!
Hi Brad,
On my project i just made, the red dot that moves is only red if you disconnect the green vertical column. I noticed on your pictures of 'the great race' you have a fully red dot (not orange) along with that row of green. All i did to get rid of the orange to make it red was disconnect pin 10 on the led display.

Can you possibly edit you 'the great race.asm' on you great race page that fixes this...It would be very much appreciated, but it doesn't matter if you cant.
Thanks heaps , great project.

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

Re: great race great project for school

Post by bitfogav » Sun Oct 24, 2010 8:32 pm

bman2309 wrote:Hi Brad,
On my project i just made, the red dot that moves is only red if you disconnect the green vertical column. I noticed on your pictures of 'the great race' you have a fully red dot (not orange) along with that row of green. All i did to get rid of the orange to make it red was disconnect pin 10 on the led display.

Can you possibly edit you 'the great race.asm' on you great race page that fixes this...It would be very much appreciated, but it doesn't matter if you cant.
Thanks heaps , great project.
Hi bman2309, Im not sure that Brads .asm code needs fixing as Brads track actually goes into the last row with the RED dot car. Correct me if im wrong but if the red dot car turns Orange then this indicates that the car as crashed?. But are you saying bman2309 that your Red dot car was always Orange untill your disconnected pin 10?

bman2309
newbie
newbie
Posts: 5
Joined: Mon Oct 18, 2010 6:38 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: great race great project for school

Post by bman2309 » Sun Oct 24, 2010 9:10 pm

yes the dot is always orange, even after i crash (which it then goes to score)

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: great race great project for school

Post by brad » Sun Oct 24, 2010 9:13 pm

Let me double check the code and get back to you. But it should be just fine. have you checked your hardware?

is there any other sort of ghosting? I.E. pixels lighting up when they shouldnt?

bman2309
newbie
newbie
Posts: 5
Joined: Mon Oct 18, 2010 6:38 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: great race great project for school

Post by bman2309 » Wed Oct 27, 2010 8:45 pm

Usually no, but one time i was playing it there was a green dot that mirrored the red dot on the other side. But i just turned it on then off and it stopped.

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

Re: great race great project for school

Post by bitfogav » Thu Oct 28, 2010 1:37 am

bman2309 wrote:Usually no, but one time i was playing it there was a green dot that mirrored the red dot on the other side. But i just turned it on then off and it stopped.
I would double check your hardware, could be a slight bit of solder touching somewhere else on the board or even a little bit of the copper track on the board, espically where you have made a cut to split the circuit into two?.

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: great race great project for school

Post by brad » Thu Oct 28, 2010 5:23 pm

Hmm, I have checked the code and it all looks good. Unfortunately there's something not quite right with your circuit.

Just as bitfogav said, double check everything to make sure you don't have shorts where there shouldn't be shorts :)

User avatar
sdudley
Moderator
Moderator
Posts: 337
Joined: Sun Mar 28, 2010 1:33 pm
Location: Florida, U.S.A.
[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: great race great project for school

Post by sdudley » Wed Nov 17, 2010 11:38 am

Hey bman2309,

That's a great looking cover you made. Now wrap some surface mount LED's around the edges of the top plate and those Mario images will light up like crazy!

See here:
viewtopic.php?f=17&t=292

Stacy
Any time you deviate from sequential consistency, you increase the complexity of the problem by orders of magnitude.

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: great race great project for school

Post by brad » Wed Nov 17, 2010 9:48 pm

I didn't think of that, it would look cool!

Mike M
decided to stick around...
decided to stick around...
Posts: 27
Joined: Thu Dec 13, 2012 3:19 am
Location: Michigan, USA
[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: great race great project for school

Post by Mike M » Thu Dec 20, 2012 7:12 am

brad wrote:Hmm, I have checked the code and it all looks good. Unfortunately there's something not quite right with your circuit.

Just as bitfogav said, double check everything to make sure you don't have shorts where there shouldn't be shorts :)
I haven't built the 16F648A+7442 Great Race project but I did wonder if there is an error or oversight in the schematic (which might explain those symptoms). With the 7442 "D" input (pin 12) wired to ground, one of the green rows on the 7442 "0" through "7" outputs will ALWAYS be enabled, yes? If that's the case, then when you set RA3 low in the software to enable the red row, one of the green rows is still enabled, and that means whenever you light a red dot you'll also light a green dot. Now I haven't seen this phantom green + red dot in any of the Great Race videos I've come across so far, so I was wondering if my analysis is incorrect?

If my circuit and software analysis is correct however, then couldn't you eliminate the problem by using all four of the input address lines on the 7442 to fully decode and enable only "1 of 9" outputs for all nine rows (8 green rows + 1 red row)? That is, why not drive the 7442 "D" input from the RA3 line and use the 7442 "8" output line to drive the red row? Perhaps something like the circuit below?

Cheerful regards, Mike
Attachments
the_great_race_schematic.png
the_great_race_schematic.png (129.1 KiB) Viewed 25685 times
Last edited by Mike M on Thu Dec 20, 2012 8:37 pm, edited 2 times in total.

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: great race great project for school

Post by brad » Thu Dec 20, 2012 9:09 am

You will get ghosting if you don't first ensure that you are sending all 1's out to cathodes of the Green LED's. If you do this then there is no way that any of the green LED's can light up because you have 5v connected to all of the Cathodes :)

Mike M
decided to stick around...
decided to stick around...
Posts: 27
Joined: Thu Dec 13, 2012 3:19 am
Location: Michigan, USA
[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: great race great project for school

Post by Mike M » Thu Dec 20, 2012 10:57 am

brad wrote:You will get ghosting if you don't first ensure that you are sending all 1's out to cathodes of the Green LED's. If you do this then there is no way that any of the green LED's can light up because you have 5v connected to all of the Cathodes :)
Hi Brad,

I agree with you 100%. Unfortunately, I don't see any way you can set all of the green cathodes to 5v on your schematic. With pin 12 grounded on the 7442 in your circuit (the A3 input in the table below), there are only eight possible combinations of outputs and one of those outputs (all connected to green cathode rows) will always be low.
Attachments
7442 truth table.png
7442 truth table.png (15.98 KiB) Viewed 25683 times
Last edited by Mike M on Thu Dec 27, 2012 6:56 am, edited 5 times in total.

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 7 guests