• 1) switch is not the switch you want to use... you can use it for testing... but for real, you would just some kind of touch/hit sensor/switch that is read by a pin. Btw, whether it is called Btn or pinX, the code is the same.
    2) the internal 4 leds (r,g,b,infrared) are not for bright ligth, more a control. Therefore you just connect a pin to a N FET and switch with that a LED bank or a 1..3W LED that gives more light. To drive that bright light you need anyway some more power capacity than what the puck has built in.

    3) Line of sight and no obstructions, BLE makes it to 100+ meters... so no worry for run that in a room... may be not across a soccer/Football field, but for sure in a gym it is good enough.]
    4) the concept is that all pucks in a set are known to a hub - an extra device that understands BLE.

    5) Depending the concept, you are not really limited to the number of pucks... but an overcrowding in the RF space

    6) Writing the cod for a puck is not that difficult. A bit more work is needed for the hub, last but not least you want the hub to be able to program/select profiles of activation patterns, and make it select. I would not combine that with the puck. Most likely, this should be a device that can do Wifi and BLE - like a bridge (a puck though connected to the pc can do as well). A wifi enabled and connected device can even send the data to a google spreadsheet document, from which all kinds of reports and graphs can be produced with plain spreadsheet formulas/programming.

    The outline for the pucks an hub application is something like that:

    One way is:
    The pucks all start out in advertising mode, in which they advertise their ID and that they are ready for connect. The hub then sends the light on command (delay to turn on the light, how long the light and how long to sense a hit). The puck executes the commands and reports back the hit time. The hub waits for that response, closes the connection, stores this information, and then moves on the the next randomly (or profile defined) puck's advertisement, and so on.

    ...more at later time.

About

Avatar for allObjects @allObjects started