If I recall correctly, this driver has an unused pin, pin 3 (a.k.a. PB4). At least, that’s the unused pin on wight’s FET+1 driver. I think he used the same pin layout here, except for not using the second PWM channel.
So, if you configure your firmware to put the switch on PB4, and solder the switch wires to pin 3 and ground, it should work without sacrificing the OTC.
In the OP, it shows pin 3 next to the “W” in “WELLS”.
Or, of course, if you don’t care about the OTC, use those pads instead. OTC isn’t normally used with e-switches, and this will make it a lot easier to flash the driver again later.
Which board revision are you building? You shouldn’t need two 10uF caps but I haven’t tried just one on wight’s board. I use RMM’s boards (from his MTN store) and you only place one 10uF.
The 36k resistor isn’t required if you already have a 22k. It just gives you more options with the ADC calculation for the LVP (low voltage protection). With the 22k and 2S (~8.4V) you end up being in the upper range of the ADC (limit of 255) with 6V LVP. If you wanted to have something higher for your LVP like 6.4V you would need the 36k resistor. You can see the calculations on RMM’s Google sheet that he so nicely shared with us before:
If you look, the 36k brings the ADC values more into the middle rather than the upper limit.
Does anyone happen to know what could be causing one of these drivers to change modes on its own?
I made 50 of these last batch and they all work fine normally. I had even used one of them with an eswitch in the past and it was fine. However recently I tried using JohnnyCs dual switch firmware with them and this is what I get.
https://youtu.be/vw5rxIBh7_M
It will just sit there and skip upward in modes at random on its own. I tried multiple drivers and even assembled a brand new one and the result is exactly the same. I tried both 6 and 12v configs too with no luck.
I tried using the default firmware from JC and TomEs eswitch one and they both skipped. I had used toms before too and did not have this issue so the only thing I can think is that I was shipped a bad batch of components. Problem is I have no idea which part could cause this :(
Hhmm. I watched the video 3X, not sure wut could be goin on. It seems very periodic and relatively slow, I think... What kind of setup to you have there? Think I saw 4 cells in series, so 16V going into the driver? Wow... With an e-switch, I assume you are using an LDO?
The pace seems like LVP is kicking in, but it's going up not down... But if it's acting like a click is happening, I suspect something unreliable bout the switch input, but you are grounding it manually. Dunno, I'm no expert there in electronics. Maybe the voltage the MCUU is getting? If so, maybe the LDO that supposed to regulate that voltage? Again, I'm not sure exactly how an LDO works, but it's supposed to deliver the correct voltage to the MCU. Maybe you can check that voltage level on the MCU VCC pin #8?