Wireless fencing scoring system - detecting a PWM signal without common ground

TomGeorge:
Hi;
Will you be able to hold the P-CH MOSFET long enough to get a reading with a capacitor driving the gate?
I read the source, it will be interesting to try.
Have you been able to source a Logic Level P-CH MOSFET?

JCs-Grid-page-73.png

I have not tested the circuit yet. According to the source, it takes about 1 to 2 ms to pulse the MOSFET and get a reading. I guess the battery could be tested when you turn the device on and a new reading could be done immediately after a hit is detected and if the battery level comes below a certain level, a message could be sent to the base to get some audio/visual feedback.
I found a very nice project with a very small breakout board that might just do the trick.



Source

Hi,
This;
JCs-Grid-page-73.png
Is not this;


This last one makes more sense.
Logic LOW on EN will give you voltage to read on AN.
Tom.. :slight_smile:

JCs-Grid-page-73.png

Hummm ... I think that with this last circuit, if the battery is left connected while the circuit is powered off by setting the MCU to sleep, the DIO would go to LOW and would also set the gate to LOW, switching on the P-MOSFET and draining the battery. My circuit has no switches to totally disconnect the battery and will be sleeping most of it's time so that would not work. Must rethink this...

HAHA! That's what R3 is for. While the MCU is sleeping, R3 will drive the P-MOSFET gate HIGH keeping it off. So I guess it is a good solution for this project.

The base is completed and is working well. Tomorrow I'll make some tests and a small video.

Hi!
How went the tests? I've been working on some wireless solution for epee 2 years ago but my efforts failed and I abandoned the project. I keep my fingers crossed for your prototype :slight_smile:

Hello. The wireless part of my project was tested with a couple of friends and was a tremendous success. After a while we were no longer thinking about the modules anymore, only enjoying the sport we love. That is, for me, the definition of a good solution: one that you forget about, while using it.
The pairing of the modules is done by passing the module over the left or right side of the base, activating a hall sensor with a small magnet, and after that the module registers hits on its side. The MOSFET battery tester was implement successfully and now the module reports it's battery state to the base when it pairs. There are a lot of other small funcionalities in place to make it truly effective as a training aid, like double hit, dwell time, auto-sleep, battery charging and monitoring.

I'm now working on having the ability to pair a phone with the base and modules with bluetooth to use the module as a testing device with feedback on the phone and to register scores and timing on the base.

Next step, to figure out the lack of common ground to cancel the hits on the hand guard and floor. I'm very, very close to a working solution. I'll post a video today.

Here is the battery sensor to measure a module battery capacity and send its value to the base when a module pair with it.

I designed and 3D printed a module holder to prevent the plug from disconnecting

Another viewpoint

Ready to be used

Hello @luisr320,
I just discovered this thread and also release an arduino base wireless system last week.

You can find it here : GitHub - Yohannfra/Touche: An open source and open hardware wireless fencing system

I'd love to chat with you about ways to improve both systems based on each other work

Yohann

Hello Yohannfra(@yafra7)
I will be happy to share with you my project.
We can discuss it trough WatsApp, maybe.
Please PM me your email
Luis

2 Likes

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.