But that wouldn't make sense. The transmitter is the actual lazer beam.Switch it around. Have multiple IR LEDs on each player that transmit a code to identify the player and have receivers in the guns.
Don't use RS232 as it will get framing errors. Use some kind of Manchester encoding with a suitable preamble.
It almost sounds like you want the hardware for all 50-players to be synchronized in time and interpret shooting and hits decipher who is doing the shooting based on the time slot of when someone is hit?
It is based on the reasoning that a gun can only shoot one target at a time, but a target can be hit by many guns at the same time. Since you can only process one shot at a time, you don't process whether a target has been hit, you process whether the gun has hit something. That means the receiver is on the gun.But that wouldn't make sense. The transmitter is the actual lazer beam.
Thats different.
I experimented in the past with both lazers and IR emitters and sensors, and I find with IR you need more power for more range. When I tested maximum range between an IR emitter and IR receiver with the best possible gain based on fresh batteries, I'd be lucky to get 20 feet at best. With lazer, a larger range can be achieved.
Now the real question is what kind of speed limitations are there in cheap lazers that I ordered from china? (sample image of them shown below)
Ebay listing URL: https://www.ebay.ca/sch/i.html?_from=R40&_sacat=0&_nkw=5mw+laser+module&_blrs=spell_check
Because one time before I was able to transmit data from my PC over serial with these lazer modules at only 300bps to a PT334-6C phototransistor with a 470k pull-up resistor connected to it. but now I want to try to achieve something higher than that.
Now I just thought of another option that might work with my system. A one-bit window for each player as opposed to a 2-byte window, but if I use that option, then I'll have to depend on timing to determine which player made the shot, and communicate with the server to let it know who made the shot and who got shot.
Then again, I wonder if microcontroller clock drift can affect this badly. I mean I use the largest traces possible on my PCB and other functions in the same microcontroller work as expected but I don't rely on time to use them.
Microcontroller in question is an AT89C4051 and the crystal is no more than 5mm away from the microcontroller. I also use 33pF ceramic capacitors to ground the pins of the crystal but the ground leads are a tad bit long because I need to get the routing to go smoothly. Yes my trace widths are 12mils minimum. I think I'll throw in a picture
But they do each have FOUR! atomic clocks, accurate to one second in 32,000 years...GPS satellites and even those just blindly transmit a signal that assumes it's synchronized with all the others rather than cooperate.
Do you not research or plan things out before you start?
Your laser modules are for "5V" rather than being bare diodes with feedback sensors and presumably have current regulators in them that will have capacitors for stability.
They are not really suitable for high speed modulation.
The only place I have ever heard of this being done is GPS satellites and even those just blindly transmit a signal that assumes it's synchronized with all the others rather than cooperate.
You research how they are made and what the internal electronics are.There is nothing on the internet that points out to me the capacitance value in such modules
So then you have to handle radio network data formatting where each burst needs a run-in and error detection codes, collision detection & re-sending any lost data, all with delays involved.1. Player sends to network that he is making the shot.
2. Network tells player its ok to make a shot.
going to guarantee a hit is registered anywhere within a fairly large body area.
What kind of radio modules do you have? Point to point? Or networked (i.e. mesh?).
ps. And note that it is LASER - Light Amplification through Stimulated Emission of Radiation.lazer beam
That is just a regular narrowband radio so it doesn't have the spread spectrum stuff I was talking about. There is nothing there to alleviate collisions.I did make 12 points of reception for each large body plate and I plan to buy some special glass that would help scatter the lazer beam so more light can enter the electronics. I can make my points of reception very sensitive. Even a normal LED light can make the sensor go off.
The model is HM-TRP UART radio module because its simple to use. I did transmit data on it between my unit and the computer at 38400bps but at a distance of 10 feet but I didn't test further though the maual to the module claims I can transmit as far a 1km but I wont need that range.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?