Previous in Forum: How Do I stop my net from repeating?   Next in Forum: selecting actuators and sensors
Close
Close
Close
4 comments
Rate Comments: Nested
Participant

Join Date: May 2008
Posts: 2

How To Build a "Ping-Pong" Using any of (8251, 8255, LED'S)?

05/18/2008 11:25 AM

I would like to build a Ping-Pong game as follows:

Switch A sends a pulse that propagates through LED's(any number of LED's), the LED's should carry the pulse in sequence(as to simulate the tennis ball). Switch B should re-send the pulse as soon as it reaches the final LED without any delay. Two counters are provided with each switch, which increments automatically if the opposite timer reply was late, or a head of time.

When any of the counters increment, the game resets, and the pulse (ball) is given to the winning switch. A game consists of 10 strikes, then the counters are cleared.

No microcontrollers are allowed.

Register to Reply
Pathfinder Tags: 8251 microprocessor
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Re: How To Build a "Ping-Pong" Using any of (8251, 8255, LED'S)?

05/18/2008 4:41 PM

"No microcontrollers are allowed."

What's the point of this exercise? The 825x devices you mention in the thread title are designed to work with microcontrollers/microprocessors.

To design this system these days without using a microwhatever would be idiotic. Is this a college project?

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Participant

Join Date: May 2008
Posts: 2
#3
In reply to #1

Re: How To Build a "Ping-Pong" Using any of (8251, 8255, LED'S)?

05/19/2008 4:39 PM

As weird as it sounds, Microprocessor (8088) is allowed, microcontrollers are not! The main point is to use as simple and "old-fashion" techniques as possible.

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#4
In reply to #3

Re: How To Build a "Ping-Pong" Using any of (8251, 8255, LED'S)?

05/19/2008 5:13 PM

OK, got it! I'll have a think.

Away to Italy tomorrow for a couple of days, so don't hold your breath!

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru

Join Date: May 2007
Location: Geelong, Australia
Posts: 1084
Good Answers: 54
#2

Re: How To Build a "Ping-Pong" Using any of (8251, 8255, LED'S)?

05/19/2008 2:19 AM

I suggest using a shift register based circuit. Standard chips provide Left & Right shifts, simple logic can detect when the pulse is at the last LED and then lach the direction to move it backwards.

Alternatively, you could load the LED pattern for 10 bounces into a ROM 80, 40, 20, 10, 08, 04, 02, 01, 02 ,04 ,08 ,10 etc (hex numbers) and clock through the address. If there is no "return" signal when the output is 80 or 01h the jump to the end.

There are many other posibilities even without a micro. What about doing it in analog?

This sound like a fun school project.

__________________
If there's something you don't understand...Then a wizard did it. As heard on "The Simpsons".
Register to Reply
Register to Reply 4 comments
Copy to Clipboard

Users who posted comments:

ffej (1); JohnDG (2); Mshoosh (1)

Previous in Forum: How Do I stop my net from repeating?   Next in Forum: selecting actuators and sensors

Advertisement