Put ESP32 on Tesla LDU and SDU board Topic is solved
- johu
- Site Admin
- Posts: 5842
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 164 times
- Been thanked: 1062 times
- Contact:
Put ESP32 on Tesla LDU and SDU board
I lately did a version of the Nissan Leaf adapter board with the ESP32-WROOM module placed by JLCPCB. This should get rid of the pesky issues that the pluggable ESP8266 module has.
Now I'd like to do the same to he two Tesla boards but I don't have and don't want to learn the PCB design software that they were done in.
If anyone feels like helping out, speak up. I'll link to/attach the needed design files here in the coming days.
https://github.com/jsphuebner/Tesla-Fro ... /master/V7
https://github.com/jsphuebner/Tesla-Dri ... /master/V5
Now I'd like to do the same to he two Tesla boards but I don't have and don't want to learn the PCB design software that they were done in.
If anyone feels like helping out, speak up. I'll link to/attach the needed design files here in the coming days.
https://github.com/jsphuebner/Tesla-Fro ... /master/V7
https://github.com/jsphuebner/Tesla-Dri ... /master/V5
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- catphish
- Posts: 955
- Joined: Fri Oct 08, 2021 11:02 pm
- Location: Dorset, UK
- Has thanked: 94 times
- Been thanked: 179 times
Re: Put ESP32 on Tesla LDU and SDU board
Since it's not Kicad I'm afraid I can't be much help, but I'd like to nag instead.
If anyone updates the SDU board, please consider addressing this at the same time! https://github.com/damienmaguire/Tesla- ... t/issues/7
If anyone updates the SDU board, please consider addressing this at the same time! https://github.com/damienmaguire/Tesla- ... t/issues/7
-
- Posts: 3283
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 80 times
- Been thanked: 239 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
Hm... i have a design in ESP32 done for my VCU/BMS board. I made it in design spark.johu wrote: ↑Wed Nov 09, 2022 11:14 pm I lately did a version of the Nissan Leaf adapter board with the ESP32-WROOM module placed by JLCPCB. This should get rid of the pesky issues that the pluggable ESP8266 module has.
Now I'd like to do the same to he two Tesla boards but I don't have and don't want to learn the PCB design software that they were done in.
If anyone feels like helping out, speak up. I'll link to/attach the needed design files here in the coming days.
https://github.com/jsphuebner/Tesla-Fro ... /master/V7
https://github.com/jsphuebner/Tesla-Dri ... /master/V5
I made design for 38 pin version. Pinout can be found here: https://www.studiopieters.nl/esp32-pinout/
Do you want to change Tesla board or make an interface for ESP32? What kind of interface do you need?
Which pins would you want to use?
-
- Posts: 221
- Joined: Sun Feb 20, 2022 4:23 am
- Location: N. Wiltshire. UK
- Has thanked: 17 times
- Been thanked: 109 times
Re: Put ESP32 on Tesla LDU and SDU board
I am willing to have a go as long as it's only a few hours work. I have not use DesignSpark before but it seems fairly straight forward to use.
I have loaded one of the designs and have the footprint for ESP-WROOM loaded. Picture bellow as proof!
I am a electronics engineer although not working at the moment. I have a lot of schematic experience but most PCB layout was supervising someone else.
I have just completed a simple STM32 board and sent for manufacture so now I have a bit of free time until the boards arrive
I have loaded one of the designs and have the footprint for ESP-WROOM loaded. Picture bellow as proof!
I am a electronics engineer although not working at the moment. I have a lot of schematic experience but most PCB layout was supervising someone else.
I have just completed a simple STM32 board and sent for manufacture so now I have a bit of free time until the boards arrive
-
- Posts: 3283
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 80 times
- Been thanked: 239 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
There are some limitations in using just bare ESP32 foot. Namely power draw.
See excerpt from design guide:
https://www.espressif.com/sites/default ... nes_en.pdf
See excerpt from design guide:
You could try just adding just minimal TTL serial circuit, but from my experience when transmitting the thing can draw quite a bit of power. Full guide can be found here:It should be noted that the sudden increase in current draw, when ESP32 is in transmission mode, may cause a
power rail collapse. Therefore, it is highly recommended to add another 10 µF capacitor to the power trace, which
can work in conjunction with the 0.1 µF capacitor. LC filter circuit needs to be added near VDD3P3 pins so as to
suppress high-frequency harmonics. The inductor’s rated current is preferably 500 mA and above. Refer to Figure
6 and place the appropriate decoupling capacitor near the other analog power pins.
https://www.espressif.com/sites/default ... nes_en.pdf
- johu
- Site Admin
- Posts: 5842
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 164 times
- Been thanked: 1062 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
Great, thanks for speaking up. It took me about an hour to do it with FreePcb:royhen99 wrote: ↑Fri Nov 11, 2022 2:34 am I am willing to have a go as long as it's only a few hours work. I have not use DesignSpark before but it seems fairly straight forward to use.
I have loaded one of the designs and have the footprint for ESP-WROOM loaded. Picture bellow as proof!
I am a electronics engineer although not working at the moment. I have a lot of schematic experience but most PCB layout was supervising someone else.
I have just completed a simple STM32 board and sent for manufacture so now I have a bit of free time until the boards arrive
I omitted the extra filtering as it has a dedicated LDO but on the Tesla board I'd prefer the same like on V3 mainboard: https://github.com/jsphuebner/inverter- ... rdv3.4.pdf (10 uH, 500mA inductor plus 10uF cap).
I have routed GPIO0 to a pin header next to a GND pin, so for programming I just put a jumper on there and a serial cable with 5V output. So it's GPIO0, GND, GND, 5V, RX, TX . RX/TX as seen from the STM32 processor!
Yes, even the ESP8266 has that issue.
Ah yes good shout. royhen, could you?catphish wrote: ↑Thu Nov 10, 2022 6:47 pm Since it's not Kicad I'm afraid I can't be much help, but I'd like to nag instead.
If anyone updates the SDU board, please consider addressing this at the same time! https://github.com/damienmaguire/Tesla- ... t/issues/7
Please pick any item from the shop for some compensation. Instead I can also send you the modified boards once manufactured.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 221
- Joined: Sun Feb 20, 2022 4:23 am
- Location: N. Wiltshire. UK
- Has thanked: 17 times
- Been thanked: 109 times
Re: Put ESP32 on Tesla LDU and SDU board
Both are done. The LDU was a bit tight but I managed to squeeze it in. Not sure how well these work mounted like this, but I cleared the planes under the antenna which should help. Also added 10k resistor arrays on PWM and clock output driver. Not sure if they are needed on the clk. What file name/version should I used for the update files? I can produce gerber and other output files, and pdf/png for schematic and layout if needed for checking. DesignSpark is fairly horrible so you made a good decision not to use it.
- johu
- Site Admin
- Posts: 5842
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 164 times
- Been thanked: 1062 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
Wow, are you serious that was quick!
Just name them V6 and V8, respectively.
No pull down needed on the clock line. Just attach the files (design, gerber, pdf) here if that's fine for you.
Just name them V6 and V8, respectively.
No pull down needed on the clock line. Just attach the files (design, gerber, pdf) here if that's fine for you.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 221
- Joined: Sun Feb 20, 2022 4:23 am
- Location: N. Wiltshire. UK
- Has thanked: 17 times
- Been thanked: 109 times
Re: Put ESP32 on Tesla LDU and SDU board
Ok, i'll fix the clock lines. The other thing I was not sure about was the enable pin on the esp32. I think you have just connected it to 3.3V on your deisgn but have read it should have a c-r so that it is enabled after the power supply has stabilised.
- johu
- Site Admin
- Posts: 5842
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 164 times
- Been thanked: 1062 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
So far it works well with enable tied to 3v3. In doubt follow the appnote though
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 221
- Joined: Sun Feb 20, 2022 4:23 am
- Location: N. Wiltshire. UK
- Has thanked: 17 times
- Been thanked: 109 times
Re: Put ESP32 on Tesla LDU and SDU board
Johannes can you confirm the part number for ESP module ( ESP32-WROOM-32E-N4, C701341 has the highest stock level ). I am updating the BOMs, which is a manual process, and while checking the data sheet for the ESP32 I noticed that the footprint I am using is not quite correct.
- johu
- Site Admin
- Posts: 5842
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 164 times
- Been thanked: 1062 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
I use this one: C82899. Only two requirements were PCB antenna and solderable in economy process (not standard process)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 221
- Joined: Sun Feb 20, 2022 4:23 am
- Location: N. Wiltshire. UK
- Has thanked: 17 times
- Been thanked: 109 times
Re: Put ESP32 on Tesla LDU and SDU board
Ok I will put that in the BOM but as it is not recommended for new designs they may run out of stock.
- rstevens81
- Posts: 355
- Joined: Sun Dec 22, 2019 10:36 am
- Location: Bristol, UK
- Has thanked: 23 times
- Been thanked: 92 times
Re: Put ESP32 on Tesla LDU and SDU board
i would make sure that you have a large cap on the 3.3v rail (as well as ones very close to the chip) as the power spike when the wi-fi is enabled, caused me a great del of pain on some of my projects as its caused reboot loops! in had to bodge on some big caps rather than the smd ones.
i typically just go over kill now and put 470uF (through hole or smd) caps on the 12v,5v&3.3v lines, the esp32 dev board reference design is good for inspiration as well. personally i would just put a esp32 dev board footprint on there as you can buy them for sometimes less than you can source the parts for from jlc, also the genuine expressive ones aren't that expensive in the grand scheme4 of things.
for ref my typical psu arrangement i have been using with the esp32 (dev boards)
i typically just go over kill now and put 470uF (through hole or smd) caps on the 12v,5v&3.3v lines, the esp32 dev board reference design is good for inspiration as well. personally i would just put a esp32 dev board footprint on there as you can buy them for sometimes less than you can source the parts for from jlc, also the genuine expressive ones aren't that expensive in the grand scheme4 of things.
for ref my typical psu arrangement i have been using with the esp32 (dev boards)
Rule 1 of EV Club is don't buy a rust bucket....
Which rule does everyone forget
Which rule does everyone forget
-
- Posts: 221
- Joined: Sun Feb 20, 2022 4:23 am
- Location: N. Wiltshire. UK
- Has thanked: 17 times
- Been thanked: 109 times
Re: Put ESP32 on Tesla LDU and SDU board
Files attached. I hope they are OK, I can change anything if necessary. The placement and rotation data files are not very good but no worse than the previous versions.
- Attachments
-
- Tesla_FDU_V8.zip
- (411.95 KiB) Downloaded 79 times
-
- Tesla_V6.zip
- (449.29 KiB) Downloaded 85 times
- johu
- Site Admin
- Posts: 5842
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 164 times
- Been thanked: 1062 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
Awesome, thanks, will check it out later.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 221
- Joined: Sun Feb 20, 2022 4:23 am
- Location: N. Wiltshire. UK
- Has thanked: 17 times
- Been thanked: 109 times
Re: Put ESP32 on Tesla LDU and SDU board
Here are the PDF files of the schematics. I forgot to add them earlier.
- Attachments
-
- Tesla_V6 - Schematic.pdf
- (695.61 KiB) Downloaded 101 times
-
- Tesla_FDU_V8 - Schematic.pdf
- (652.55 KiB) Downloaded 91 times
- johu
- Site Admin
- Posts: 5842
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 164 times
- Been thanked: 1062 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
Just ordered 5 of each kind. Lets see how they come out
Thanks very much for your work, will send quick PM also.
Thanks very much for your work, will send quick PM also.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- catphish
- Posts: 955
- Joined: Fri Oct 08, 2021 11:02 pm
- Location: Dorset, UK
- Has thanked: 94 times
- Been thanked: 179 times
- johu
- Site Admin
- Posts: 5842
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 164 times
- Been thanked: 1062 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
An enormous truck pulled up here this morning and delivered
Update: programmed fine and works
Update: programmed fine and works
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- catphish
- Posts: 955
- Joined: Fri Oct 08, 2021 11:02 pm
- Location: Dorset, UK
- Has thanked: 94 times
- Been thanked: 179 times
Re: Put ESP32 on Tesla LDU and SDU board
This is absolutely beautiful. Thank you mr royhen99!
Bonus points for putting a +5v supply for ESP32 programming with a USB UART cable!
Bonus points for putting a +5v supply for ESP32 programming with a USB UART cable!
-
- Posts: 19
- Joined: Sun Jul 23, 2023 12:28 am
- Has thanked: 2 times
- Been thanked: 1 time
Re: Put ESP32 on Tesla LDU and SDU board
Hi, Newbie here, just purchased a sport LDU and am reading up and planning out how to go from where I am to spinning on the bench with low voltage.
Once I have run through Damien's tests to validate the motor is usable, I am planning to buy the Tesla LDU drop-in logic board (community edition).
But seeing there is an ESP32 version in the works, should I wait until this new ESP32 version is available? Will this be replacing the current board?
Once I have run through Damien's tests to validate the motor is usable, I am planning to buy the Tesla LDU drop-in logic board (community edition).
But seeing there is an ESP32 version in the works, should I wait until this new ESP32 version is available? Will this be replacing the current board?
-
- Posts: 312
- Joined: Mon Jul 03, 2023 3:17 pm
- Location: CT, central shoreline, USA
- Has thanked: 106 times
- Been thanked: 85 times
Re: Put ESP32 on Tesla LDU and SDU board
Do you have a lot of work to do (time) before you need to power up the motor?ImportFanatiK wrote: ↑Sun Jul 23, 2023 12:39 am ...But seeing there is an ESP32 version in the works, should I wait until this new ESP32 version is available? Will this be replacing the current board?
The motor cover blocks EMI, It will also likely block some to all wireless signal. Damien was mentioning doing a plastic cover to allow the wireless signals to pass and would also make a board swap easier. Might be worth waiting to see how this plays out if you have the time.
A simple thin metal cover that screws to the motor cover & is sealed with silicone could be made. Add to that an esp32 with a u.fl connector coupled with a waterproof antenna would be nice. Could also do a small, optional antenna cover to make disassembly easier.
If this is something you guys want to do I can draw up the sheet metal cover(s) and share dxf, pdf drawing, and cut template. I'll need some info to draw it up in Solidworks though.
- johu
- Site Admin
- Posts: 5842
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 164 times
- Been thanked: 1062 times
- Contact:
Re: Put ESP32 on Tesla LDU and SDU board
I have one ESP32 variant for sale, then I need to order new ones.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 312
- Joined: Mon Jul 03, 2023 3:17 pm
- Location: CT, central shoreline, USA
- Has thanked: 106 times
- Been thanked: 85 times
Re: Put ESP32 on Tesla LDU and SDU board
Did these files ever get updated with the larger inductors for the ESP32?