CaptainTuna
Member
Hi guys. I did some research before posting but there was no thread that seemed to talk about setting up a circuit for a laser tag project. And i didn't post it in the Projects section because i still have to understand what exactly i want to build.
So i am here to show you some of my ideas, thought you could give me a hand pointing out which, according to you, is the best of the setups i've thought about. For those who don't know what laser tag really is: well, basically it's a game where every player has its own "pistol" and sensors on his body. The players use their pistols, which shoot IR signals, to try to hit other player's sensors. It's basically an IR firefight.
..and these are a few ideas i came up with: (not sure which one is the best)
SETUP 1
(those 3 legged squares are IR sensors)
-3 SERIN MCUs at the top, each one runs the SERIN command and as soon as they get something they tell that to the master. (these are used to receive signals sent by other pistols)
-Master: receives data from the top MCUs, decides if the shooter MCUs can operate (eg: if the player has still some hit points then let him shoot OR if there are bullets in the mag)
-Shooter: shoots, that's all. (aka: uses two of its outputs, one for PWM and one will be the SEROUT pin, to send the signal)
SETUP 2
-3 SERIN MCUs at the top, each one runs the SERIN command and as soon as they get something they tell that to the master.
-Master MCU: gets data from the other MCUs and does the shooting. The frequency of the shooting might not be totally precise as in the previous setup
SETUP 3
- Master: has 3 interrupts (28X2), goes to SERIN mode as soon as one of the 3 interrupts gets activated by one of the sensors. Tells the SHOOTER MCU whether it can shoot or not.
- Shooter: shoots. May substitute the master in magazine checking (eg:checking if the mag has enough bullets for the shooting, even if the master will still need to tell the shooter if it can shoot or not, since it is the master that calculates the remaining hit points.
That's all for now
So i am here to show you some of my ideas, thought you could give me a hand pointing out which, according to you, is the best of the setups i've thought about. For those who don't know what laser tag really is: well, basically it's a game where every player has its own "pistol" and sensors on his body. The players use their pistols, which shoot IR signals, to try to hit other player's sensors. It's basically an IR firefight.
..and these are a few ideas i came up with: (not sure which one is the best)
SETUP 1
(those 3 legged squares are IR sensors)
-3 SERIN MCUs at the top, each one runs the SERIN command and as soon as they get something they tell that to the master. (these are used to receive signals sent by other pistols)
-Master: receives data from the top MCUs, decides if the shooter MCUs can operate (eg: if the player has still some hit points then let him shoot OR if there are bullets in the mag)
-Shooter: shoots, that's all. (aka: uses two of its outputs, one for PWM and one will be the SEROUT pin, to send the signal)
SETUP 2
-3 SERIN MCUs at the top, each one runs the SERIN command and as soon as they get something they tell that to the master.
-Master MCU: gets data from the other MCUs and does the shooting. The frequency of the shooting might not be totally precise as in the previous setup
SETUP 3
- Master: has 3 interrupts (28X2), goes to SERIN mode as soon as one of the 3 interrupts gets activated by one of the sensors. Tells the SHOOTER MCU whether it can shoot or not.
- Shooter: shoots. May substitute the master in magazine checking (eg:checking if the mag has enough bullets for the shooting, even if the master will still need to tell the shooter if it can shoot or not, since it is the master that calculates the remaining hit points.
That's all for now