Hi, I'm doing a project for myself and my fencing group, the project is a wireless fencing scoring machine, the "fencing scoring machine"is done, my problem is the wireless part, not quite the communication, but the analogRead.
So, my project works detecting changes in analog pins
(https://www.instructables.com/id/Arduino-Fencing-Scoring-Apparatus/) it's based in this project, in step 5 has a image that show how the analog pins are connected with resistors. Btw, my problem is, I have 2 arduinos nano, each one have 3 pins ( two with resistor to gnd and 1 to 5v), the code is basic an analogRead, but it's not detecting when i touch the other arduino, I know that's the ground issue, it's a way to solve that? code or even harware?
the pins 1 - 2 - 3 are Guard (sword guard) - Weapon - Lamé (clothes)
in Epee the tip close the pins 2 and 3 to make a "touch" (epee works fine, it's not reading anything from other arduino)
in sabre we use 2 pins, one for clothes, and one for weapon, the weapon touch the clothes from the opponent, the weapon drops from 1023 to around 512 anaog read. the clothes raise from 0 to 510
in foil is the complex that i dont want to do it now.
the problem is, when powered with the same psu, all runs fine. But when powered with bat, it's not reading. I've red about the common ground issue, it's 2 boards, different battery.
Thanks!
So, my project works detecting changes in analog pins
(https://www.instructables.com/id/Arduino-Fencing-Scoring-Apparatus/) it's based in this project, in step 5 has a image that show how the analog pins are connected with resistors. Btw, my problem is, I have 2 arduinos nano, each one have 3 pins ( two with resistor to gnd and 1 to 5v), the code is basic an analogRead, but it's not detecting when i touch the other arduino, I know that's the ground issue, it's a way to solve that? code or even harware?
the pins 1 - 2 - 3 are Guard (sword guard) - Weapon - Lamé (clothes)
in Epee the tip close the pins 2 and 3 to make a "touch" (epee works fine, it's not reading anything from other arduino)
in sabre we use 2 pins, one for clothes, and one for weapon, the weapon touch the clothes from the opponent, the weapon drops from 1023 to around 512 anaog read. the clothes raise from 0 to 510
in foil is the complex that i dont want to do it now.
the problem is, when powered with the same psu, all runs fine. But when powered with bat, it's not reading. I've red about the common ground issue, it's 2 boards, different battery.
Thanks!
Attachments
-
145.5 KB Views: 151
-
146.3 KB Views: 145