casainho said:
I had to buy more mosfets for other future builds of the TSDZ2 wireless board and I decided to buy from Ebay the BSP296 in SOT223 - the idea is to try exchange the tiny mosfet for this new one, so the both mosfets will be SOT223 package and easier to solder - I will test on my next build and if it works, then I will updated the schematic:
Ok I'll amend the PCB once we've tested the new mosfet.
* Do we want to accommodate > 60v - e.g. 72v like a poster earlier in the thread?
>> I wondered if anyone knows if the vbatt (in the 6/8 pin cable) going to the motor needs to be full voltage or just above a threshold to switch it on? If the latter then anyone using higher voltages can just lower the voltage on vbatt before the board. Tbh I can't find a suitable mosfet that does >60v anyway so maybe a moot point.
* I thought to include a full 10 pin st-link header on the PCB. So there is the option to easily include a cheap $5 stlink adapter in the enclosure with the pcb connected by a short IDC ribbon. With the SWCLK/SWDIO pins going to the nrf52840 and the SWIM pins being provided as connections to relevant speed sensor wires for motor fw updates. If put the box close enough to the motor you could have in/out connectors for the speed sensor and tap off to SWIM on the PCB.
Then we can have a single USB connection for ebike fw updates - and a single openocd script that programs both the motor and nrf52840 firmware. Getting close to plug-n-play i thought... 8)
* Are we having connections for physical up/down/menu/on/off buttons? Do I need to include wiring points for those?
edit: Other question was - should I include the 5v DC-DC converter from the ESP32 project (or other suggestion) - or keep the PCB simple and assume external 5v DC conversion?