Replies: 8 comments 7 replies
-
|
Good stuff. One addition could be an optocoupler above/below R3 that is driven by Serial 3.3V. That way if you connect an unpowered adapter to the battery, it won't pull J2 high and increase the charge count. This depends on the serial adapter being able to supply enough current to turn the opto on. There may be a better way to do this, but optocouplers are usually the easiest high-side switch. It might also be worth considering an opto-isolator level shifter, so that we're not linking the 21V, 300-amp-capable battery to the computer. For the problem of bringing J2 high when the script isn't running, maybe we could use the default state of DTR to hold either J2 or Serial-TX low until the script is running. Here's a falstad example. I've set the opamp to output 2V on J1 to show the working of the Spud-isolator™. Sorry it's so messy, I switched J1 and J2 to match the battery layout (I wish Milwaukee had numbered from ground up like everyone else) and falstad isn't very good at moving things around. All the internal stuff (inside dotted boxes) is entirely fictional. Adapter unpowered has J2 at 0V, Adapter powered has J2=3.3V (not enough to increase charge count), then turning on DTR allows TX to put 12V signals on J2. |
Beta Was this translation helpful? Give feedback.
-
|
I picked up a few optocouplers from jaycar today, so i will start prototyping a fully isolated design this week. |
Beta Was this translation helpful? Give feedback.
-
|
Hey all, so I've been kinda watching from a distance, I had a crack at doing a pcb for my batteries. Unfortunately I didn't read about the issues with cp2102's 😂 |
Beta Was this translation helpful? Give feedback.
-
|
so when i run m.idle() J2 = 0.109v and J1 = 0.975v m.high() J2 = 12.6v and J1 = 2.258v |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Please keep us updated this is exactly what I am interested in a stand alone unit to check batteries in field. Custom pcb usually have a minimum quantity you can add me to the short list of buyers when your ready |
Beta Was this translation helpful? Give feedback.
-
|
After working on this on and off for the past few weeks I have the first version of the isolated interface prototyped and tested on the breadboard, I have 5 PCB's on order, once I have confirmed the PCB works I will upload the BOM and gerber files. @Tool-Scientist - I was able to prevent incrementing the dumb charge count when the script is not running, but was unable to prevent it incrementing with the USB interface unpowered, if this version works the next version will include an isolated 3.3v regulator powered from the battery that should eliminate the issue.
|
Beta Was this translation helpful? Give feedback.
-
|
My Interface PCB is complete and tested.
Battery + & - are protected by 1.5A fuses as well as a 50mA PTC fuse To prevent incrementing the Dumb charge count the serial interface must be powered |
Beta Was this translation helpful? Give feedback.












Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been playing around with an interface circuit design to combine the MOSFET level shifter and an NPN transistor network #7 onto a single PCB.
The current layout is designed to plug straight into raspberry Pi GPIO header but I will also look at designing some other layouts, particularly one that can connect directly onto the battery.


Beta Was this translation helpful? Give feedback.
All reactions