Hey there i have an arduino uno, and ive been working on making a fencing scoring machine. I'm an engineer with only a beginners level of electronics knowledge and passable programming skills. So to my project.
The electronic fencing scoring systems work on the idea that each fencer has three wires running to them gernerally referred to A,B and C (or more speficing Ra, Rb,Rc, and La,Lb,Lc, for the fencer on the right and the on on the left) and there is a third wire for the grounded metal strip. For each weapon the wiring works a little different.
Epee - There are essentially 4 conditions
Rest - all connections are open
Touch - the A and B lines are connected for either side (Ra + Rb, or La + Lb) meaning the button on the top of the epee has been depressed - that sides colored light turns on.
Grounded Weapon - A and B are connected but also connected to the C of the other side (ie Ra+Rb+Lc) meaning the tip is depressed but is aso touching the other fencers weapon - nothing happens
Grounded - A and B are connected but also connected to the grounded strip no touch
Foil - 5 conditions
Rest - B+C are connected on both sides
Offtarget Touch - the B and C lines are disrupted for either side, meaning the button on the top of the foil has been depressed, and no other connections,, that sides white light turns on.
Touch - the B and C lines are disrupted for either side, and the B line is connect to the opposite A line, meaning the button on the top of the foil has been depressed, and is touching oppening on his conductive jacket, that sides colored light turns on.
Grounded Weapon -the B and C lines are disrupted for either side, and C is connected to the opposite sides C meaning the tip is depressed but is aso touching the other fencers weapon - nothing happens
Grounded - the B and C lines are disrupted and B is connected to grounded strip no touch
Sabre - not worried about yet
I can get a program that works for both individually, beicase i can do fun things with the ground and it all makes sense, but when i try to make a program that works for both foil and epee and just switches modes i get lost in the wiring. Any help at all would be great!
Edit: im working on a diagram that might help as well



