Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 4.13 KB

build_tsdz2_board.md

File metadata and controls

79 lines (55 loc) · 4.13 KB

How to build the TSDZ2 wireless board

Before you start you need to decide how you want to attach buttons and brake sensors and whether you want the option to have fewer wires on your ebike.

Both options require the use of the Android app to configure the bike. Android app connection is not required to control the bike when riding - but can be used to provide real-time statistics; speed/motor current etc.

  • Wireless Controller & Wired Remote - this option you build one board:

    • Button keypad connects to the board directly.
    • Brake sensors connect direct to the motor.
    • Board connects to the motor via 6/8 pin cable.
    • You can mount the board either on the handlebars (so you can see LED signals easily) or you can mount closer to the motor if preferred.
  • Wireless Controller & Wireless Remote - this option you build two boards:

    • Button keypad and Brake sensors connect to the Wireless Remote.
    • Wireless Remote is battery powered so can be mounted on the handlebars with no cables.
    • Wireless Controller connects to the motor via the 6/8 pin cable.
    • Wireless Controller is mounted close to the motor.

You will need the following components:

  • nRF52840 Nordic USB Dongle


  • 60V -> 5V power board - EBike buck dd7818ta 80V -> 5V 1A: costs 4€ and can be bought in many online shops like EBay, just search for "EBike buck dd7818ta 80". Other DC-DC converters can be used, like the Traco power TEC-2-4811WI. Please note that any DC converter that you choose must have a voltage input of at least 60V and a 5V output.

    EBike buck dd7818ta 80V:


    Traco power TEC-2-4811WI:


  • Power switch BTS4140N: costs 2€, can be bought on EBay or other shops.


  • Transistor BSP296: costs 2€, can be bought on EBay or other shops.


  • TSDZ2 display extension cable: costs 6€, can be bought on EBay or other shops.


Step by step instructions

1 - Flash bootloader on the nrf52840 board - see the page: How to Flash the Wireless Bootloader on a Nordic Dongle

2 - Build your board - solder all the components following the next schematic. For instance, you can use a perfboard to solder the components and the wires.

2.1 - You can cut your nRF52840 board with a metal saw by hand and this way it will be smaller - here a picture as example:

Schematic: Standard Controller (also need to build Wireless Remote)

Schematic: Wireless Controller with Wired Buttons (Wired Remote)

Wire multiple brake sensors in parallel.

nrf52840 board pinout: Pinout

Pictures of a board that you can take as example - note that the nrf52840 board on the pictures were a different version as also one of the mosfets:

A perfboard were used to keep the nrf52840 board in place as also the mosfets and wires:

Here the mosfets soldered (note the smaller one is now a different one, with the size of the other):

And on the other side the DC-DC converter (this is one on the picture is one that need to be adjusted for 5V output - not recommended):

Now with all the wires and the cable to connect on the TSDZ2 display connector:

Final assembly:

And inside of a 3D printed box:

3 - Flash firmware on the nrf52840 board - see the page: How to Flash the Wireless Remote and Motor Controller Firmware

4 - Test - when the board is powered up and running the firmware, you should see the "TSDZ2" Bluetooth device on your mobile phone.