Hi there! I have 15 pucks here and I've been toying around with getting them all to communicate with one another like a mesh network. The problem is that flashing all 15 of them is quite cumbersome and I was wondering if anyone has made a custom jig to flash the pucks. I would assume @Gordon may have had made some while developing Puck.js as well. Does anyone know if there are jigs for sale or even better, have there been schematics/board designs of any jig for the puck released? Thanks in advance!
Hi! A while ago I played around with some OTA mass deployment of a puck swarm.
This is what I did: https://github.com/Whizzard/puckjs-fanout
Maybe you can evaluate and/or improve on that?
Oh wow! This is quite neat! Unfortunately I went through a different route and built a custom binary for the puck :c (wish I found this wayyy earlier lol). So they could only be programmed via the SWCLK SWDIO pins. But thanks for the share! I will definitely consider porting the code over to vanilla puck.js bootloader and giving it a shot :D
Hi! I do have a jig for programming Pucks here, but it's very hacky - involving a few pogo pins glued in the right places - just what I needed for debugging. It's something you could reproduce with a bit of protoboard and some pogo pins, but it wouldn't be pretty! The manufacturer has their own jig that they make, but it's way more expensive.
Do you have an nRF52DK? Realistically you'd need one of those to handle the interface via SWD easily. If you do then I could definitely come up with a design for you as it's an issue I think a few people will be having!
Just to add - what OS do you use? If there were a tool that would automatically flash a firmware over Bluetooth LE to any device that was in bootloader mode, that might do what you want?
Then you'd just have to run the tool, put each Puck.js into bootloader mode and wait until all the LEDs on them went out after maybe 10 minutes.
I'm using MacOS atm. The tool you mentioned sounds fantastic! Although for the time being, I'm actually looking for a physical jig mentioned in your earlier post. I've started on designing a PCB for a jig to use with the Puck, based on the nRF52DK actually xD, but figured I probably didn't need to reinvent the wheel. In that case I'll finish up the design, although it might take me a while since it's a on and off project.
Would you be willing to share it when it's done? That's basically what I had planned as well - just 'shield' with pogo pins.
Personally, I'd copy the Puck.js board files from https://github.com/espruino/EspruinoBoard/tree/master/Puck.js/eagle into your design first, then you can use those to make sure you position the relevant pins.
On mine, I added Pogos for 3V, GND, D28 and D29 (D28/29 can provide serial comms if needed, but the positioning also makes it easy to sit the Puck down nicely), then SWIO and SWCK - reset isn't really needed.
Certainly! Will keep you posted along the way :D
Yeah, I started with the reference board files to make sure the positions are spot on.
Are there any specific features you'd like me to add? I'll see if I can slip it in while designing it.
PS. Would you mind sharing a picture of your current setup? Some pogo pins are insanely long, I might opt for shorter ones kind of like the one for ruuvitag
There should be a picture below. I forget where I got the Pogo pins I used, but they're quite delicate (and around 16mm long). I just took an old Puck prototype PCB and drilled out the SWD pads to fit pins - then manually wired on the back, and connected to the 0.1" headers on the nRF52. You need to connect to one of the Arduino headers too since amazingly there's no GND on that header!
DirtyPCBs sell super-cheap and quite nice Pogo pins (although they are quite long) - so if you used those then you could order your PCB at the same time as the pins :)
But those are just random ideas - for most people it's the programming that'll be the most useful.
Hi there! Sorry this is long overdue, but here's a rough design of the PCB that I've been using. Hope others are able to make it better than I am xD. Thanks again for all the help :D
The pogo pins used are available here:
That looks great - thanks! So it gets the power from a USB-TTL converter that you attach to the horizontal contacts?
Does it all work ok? It looks like the pogo pins for 'SWIO' and 'RST' might be mixed up?
It gets power from the DK itself, however I routed them over to the header pins so that if you don't have a DK and want to use it just for USB-TTL, the programmer can power it too. To reduce the cost I didn't add in a power switching circuit, so I would not advise connecting to USB-TTL programmer if you have the jig plugged into the DK.
Also SWIO and RST are not mixed up, this design is meant for the pogo pins to point 'upward' from the DK and the Puck is meant to be placed face down on the DK. Let me know if you would like any adjustments :D
Ahh - thanks! Sorry about that - for some reason I was imagining the board 90 degrees out from where it should be.
This looks amazing. I'll send off and get one made for myself - it should be miles better than my current hot glue contraption :)
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem