User avatar
49thdiver
Forum Supporter
Posts: 73
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: Stand alone OBC/PDModule EV system Can 2015

Mon Nov 02, 2020 10:08 am

svizpdm wrote:
Sun Nov 01, 2020 1:30 pm

As I understand it, PDM only monitors the current.
I can describe in detail what points I worked on from the photo.

Please forgive me for my translator, I am in Moscow (Russia).
That is my understanding also the OBC/PDM is a Constant Current power supply design.
I look forward to hearing more details about how you are controlling the PWM and managing the feedback.
The English is great, thank you for sharing your information.

I am still working on the CANBUS communication side. I have been distracted with developing a hardware/software interface using ardunino to allow the LEAF BMS to Communicate with a TOYOTA RAV4EV Battery ECU that I have been working on. We have the Leaf Batteries and BMS installed in the original battery pack from the RAV and are hoping to do some road tests this week. Its basically a CANBUS to RS232 interface and data translation, works good on the bench so far.

This work has helped build my knowledge on the LEAF BMS and how it interacts with the charger, I have also reassembled another complete Leaf system into a Kubvan. This is a completely working charging and drive system including the battery pack. I am hoping to finally crack the charging system by modeling the behavior of the working system against my stand alone system.

Stay tuned, thanks for your contribution to knowing more about how the charger works.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

svizpdm
Posts: 7
Joined: Thu Oct 15, 2020 12:03 am
Delivery Date: 20 Oct 2020
Location: Russia,Moscow

Re: Stand alone OBC/PDModule EV system Can 2015

Tue Nov 03, 2020 2:00 am

Hi, I will try to describe in detail how to force the ac-dc converter to work.


The first photo shows a general plan of the rear of the PDM.
For a successful launch, we need to modify the power control board.
https://ibb.co/txx1mzb

The second photo shows the main control board of the PDM, it is located in the upper part.
https://ibb.co/k15ZdB8

We remove the power control board and do the revision from the back. We solder the conductor to the gate of the field-effect transistor, an example in the third photo. If you pull it to the ground then the power corrector starts and the relay is turned on to supply alternating current to the rectifier bridge. CAUTION Do not apply AC power while the relay is on. you can turn on the power corrector only after preliminary charging the capacitors of the power corrector (this happens automatically through a powerful 10 ohm resistor when the AC is turned on)
https://ibb.co/rdVQbBP

Now we start the PWM. The fourth photo shows the revision for starting, in the same way we solder the conductor if it is pulled to the ground, the PWM will start, but there will be no pulse generation on the UCC2895 chip due to the fact that there is no voltage at the input of the error amplifier, it should be higher than 3.6 volts. Look at contact 20.
https://ibb.co/XZWQN90

I ask you not to pay attention to the many wires, I was experimenting)
The fifth photo shows the refinement in order to start the generation of pulses and successfully control the output current.
We need to raise the 6th pin of the MCP4728 microcircuit and solder the conductor to the printed circuit board for the 6th pin and be sure to output GND, since the unit is galvanically isolated from the power key control board.
Now when we supply voltages from 0 to 4 volts, we will change the current of our converter.

https://ibb.co/HxqqM6b
If everything is done correctly, we will see the generation of pulses on pin 18 of the UCC2895 microcircuit as shown in photo # 6
https://ibb.co/RP6GnT0
INCLUDING ORDER
1. Turn on + 12V in a regular way according to the documentation.
2. Directly supply alternating current of 220 volts
3. Turn on the power corrector (tightening on gnd)
4. Turn on the PWM (tightening on gnd)
5. We supply power to the feedback (6 pin of the printed circuit board on the seat of the MCP4728 microcircuit.
https://ibb.co/1vV4QM3

MY THOUGHTS
You can control the MCP4728 using I2C, there is a library in the arduino network) As I understand it, the inverter uses only 1 channel if you apply 4 volts, the inverter will work at full power.
In normal use, the processor gives a command via the I2C interface and the MCP4728 generates a voltage from 0 to 4 volts on channel a. I have not finished the hardware study of the inverter yet, but I'm sure that current and voltage readings are coming to the CPU!
In my project e-baggi will be able to power the consumer with a PDM with a voltage of 220 volts DC from the main battery) and charge too!
Good luck everyone and be careful with high voltage !!!!!!
Last edited by svizpdm on Tue Nov 03, 2020 7:05 am, edited 1 time in total.

svizpdm
Posts: 7
Joined: Thu Oct 15, 2020 12:03 am
Delivery Date: 20 Oct 2020
Location: Russia,Moscow

Re: Stand alone OBC/PDModule EV system Can 2015

Tue Nov 03, 2020 6:44 am

svizpdm wrote:
Tue Nov 03, 2020 2:00 am
Hi, I will try to describe in detail how to force the ac-dc converter to work.
https://ibb.co/txx1mzb

The first photo shows a general plan of the rear of the PDM.
For a successful launch, we need to modify the power control board.
https://ibb.co/k15ZdB8

The second photo shows the main control board of the PDM, it is located in the upper part.
https://ibb.co/rdVQbBP

We remove the power control board and do the revision from the back. We solder the conductor to the gate of the field-effect transistor, an example in the third photo. If you pull it to the ground then the power corrector starts and the relay is turned on to supply alternating current to the rectifier bridge. CAUTION Do not apply AC power while the relay is on. you can turn on the power corrector only after preliminary charging the capacitors of the power corrector (this happens automatically through a powerful 10 ohm resistor when the AC is turned on)
https://ibb.co/XZWQN90

Now we start the PWM. The fourth photo shows the revision for starting, in the same way we solder the conductor if it is pulled to the ground, the PWM will start, but there will be no pulse generation on the UCC2895 chip due to the fact that there is no voltage at the input of the error amplifier, it should be higher than 3.6 volts. Look at contact 20.
https://ibb.co/HxqqM6b

I ask you not to pay attention to the many wires, I was experimenting)
The fifth photo shows the refinement in order to start the generation of pulses and successfully control the output current.
We need to raise the 6th pin of the MCP4728 microcircuit and solder the conductor to the printed circuit board for the 6th pin and be sure to output GND, since the unit is galvanically isolated from the power key control board.
Now when we supply voltages from 0 to 4 volts, we will change the current of our converter.

https://ibb.co/RP6GnT0
If everything is done correctly, we will see the generation of pulses on pin 18 of the UCC2895 microcircuit as shown in photo # 6

INCLUDING ORDER
1. Turn on + 12V in a regular way according to the documentation.
2. Directly supply alternating current of 220 volts
3. Turn on the power corrector (tightening on gnd)
4. Turn on the PWM (tightening on gnd)
5. We supply power to the feedback (6 pin of the printed circuit board on the seat of the MCP4728 microcircuit.
https://ibb.co/1vV4QM3

MY THOUGHTS
You can control the MCP4728 using I2C, there is a library in the arduino network) As I understand it, the inverter uses only 1 channel if you apply 4 volts, the inverter will work at full power.
In normal use, the processor gives a command via the I2C interface and the MCP4728 generates a voltage from 0 to 4 volts on channel a. I have not finished the hardware study of the inverter yet, but I'm sure that current and voltage readings are coming to the CPU!
In my project e-baggi will be able to power the consumer with a PDM with a voltage of 220 volts DC from the main battery) and charge too!
Good luck everyone and be careful with high voltage !!!!!!
Fixed photos not opening (

User avatar
49thdiver
Forum Supporter
Posts: 73
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: Stand alone OBC/PDModule EV system Can 2015

Tue Nov 03, 2020 9:06 am

Hi, I will try to describe in detail how to force the ac-dc converter to work.

MY THOUGHTS
You can control the MCP4728 using I2C, there is a library in the arduino network) As I understand it, the inverter uses only 1 channel if you apply 4 volts, the inverter will work at full power.In normal use, the processor gives a command via the I2C interface and the MCP4728 generates a voltage from 0 to 4 volts on channel a. I have not finished the hardware study of the inverter yet, but I'm sure that current and voltage readings are coming to the CPU! In my project e-baggi will be able to power the consumer with a PDM with a voltage of 220 volts DC from the main battery) and charge too! Good luck everyone and be careful with high voltage !!!!!!
This is Brilliant, well done and what a lot of work. Using I2C to control the charger is a really good alternative to trying to work out the CANBUS.
The PDM has a lot of other potential uses with your method. I think you meant to use a different word than "consumer" perhaps you meant inverter or ? Non the less your english is good I am able to understand exactly what you have done. Keep us up to date with your progress.
Thanks again for sharing this work. I am glad to have met you online. I know how much work this takes to get this deep into something, so I say again well done !! and Thank you.

Image

The forum does not allow russian characters, so here is a picture instead "thank you".

Peter
Whats your first name ?
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

svizpdm
Posts: 7
Joined: Thu Oct 15, 2020 12:03 am
Delivery Date: 20 Oct 2020
Location: Russia,Moscow

Re: Stand alone OBC/PDModule EV system Can 2015

Tue Nov 03, 2020 12:05 pm

49thdiver wrote:
Tue Nov 03, 2020 9:06 am

The forum does not allow russian characters, so here is a picture instead "thank you".

Peter
Whats your first name ?
Thank you) very nice !!!!
You will be surprised but my name is also Peter !!! nice to meet you)
I wanted to implement the ability to power 220 volt household devices from a high-voltage battery using a PDM (collector motors, heaters and light bulbs, switching power supplies and other devices that can work on DC) There are contactors with fast charging and I want to use them to connect the corrector power to the main battery bypassing the diode bridge and add a contactor that will switch to an additional outlet, according to the calculations I can supply 2 kW! And of course, its main function will be to charge my 24 kW battery.
I have already tried charging, everything is fine! It is very convenient because now I do not have a cooling system connected and I limited the power to 1 kW, after an hour of work it warmed up to only 47 degrees Celsius.
Once again glad to meet you !!!! We will work further) If you manage to run on the bus, let me know)
Will you leave the VCM?

User avatar
49thdiver
Forum Supporter
Posts: 73
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: Stand alone OBC/PDModule EV system Can 2015

Fri Jan 01, 2021 9:33 pm

Just want to wish everyone on this thread a Happy New year and provide an update.

I made this extension cable today to allow me to test my old OBC/PD module in the Complete Leaf system that I have now installed and have fully functioning, driving (on jack stands) and charging in my KubVan with a 24KW pack.
http://www.evmotorworks.ca/LEAF/OBC_B24 ... ension.htm

I am planning on getting back on the OBC/PD project tomorrow now that I have completed the first RAV4EV to Leaf battery pack conversion.
Road testing underway. https://photos.app.goo.gl/mUpoEHAJBp8zsw619
Diving into the the complete car especially the Lithium Battery BMS system has really broadened my knowledge of the Can bus communication and OBC/BMS relationship.

Due to the lack of success last year in getting the charger to run stand alone it became obvious I needed to test the OBC/PD module I had in a known working system as it may be damaged from the original accident( Leaf meet telephone pole I think). It took a few months to find another suitable donor car. Of course getting a car then distracted me over to the kubvan conversion project which is now 50% complete. Brakes and steering next. Wiring and cosmetics after that.Here is a sneek peek at that project. https://photos.app.goo.gl/SMXsQ9tdBH5xrTrH8

I also got distracted with an idea out there that the OBC/PD would just run if you powered the relays and sent it the messages I have been sending as documented earlier in this thread. I tried this on the complete car system in the kubvan but I only found that although it appeared to power up it also shut down after a few seconds, it did also turn on the dctodc converter but it also shut down after a few seconds. It was also obvious in this experiment that just bombing the CanBus with messages creates error conditions which require a reset of the car ie remove the 12 volts.

So as you can see lots on the go. I have learned quite a bit about communicating on the CANBUS with the BMS in the last few months on the RAV4 project, I am hoping to apply this knowledge, the arduino due hardware I have developed and the mux bridge to continue my testing on the working kubvan/Leaf system and apply it to the Stand alone OBC project,
I am hoping this year we can finally crack this nut. Stay tuned.

Thanks to all of those that have contributed to the knowledge base here, on github and elsewhere, this would not be possible without the generosity of time, energy and smarts to the deconstruction and repurposing of the Leaf by all of you. You know who you are ;).

Anyone with any further developments on getting this charger to go please chime in.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

nlspace
Posts: 502
Joined: Mon Jun 05, 2017 10:21 pm
Delivery Date: 06 Jun 2017

Re: Stand alone OBC/PDModule EV system Can 2015

Sat Jan 02, 2021 9:23 am

svizpdm wrote:
Tue Nov 03, 2020 2:00 am
Hi, I will try to describe in detail how to force the ac-dc converter to work.


The first photo shows a general plan of the rear of the PDM.
For a successful launch, we need to modify the power control board.
Image

The second photo shows the main control board of the PDM, it is located in the upper part.
Image

We remove the power control board and do the revision from the back. We solder the conductor to the gate of the field-effect transistor, an example in the third photo. If you pull it to the ground then the power corrector starts and the relay is turned on to supply alternating current to the rectifier bridge. CAUTION Do not apply AC power while the relay is on. you can turn on the power corrector only after preliminary charging the capacitors of the power corrector (this happens automatically through a powerful 10 ohm resistor when the AC is turned on)
Image

Now we start the PWM. The fourth photo shows the revision for starting, in the same way we solder the conductor if it is pulled to the ground, the PWM will start, but there will be no pulse generation on the UCC2895 chip due to the fact that there is no voltage at the input of the error amplifier, it should be higher than 3.6 volts. Look at contact 20.
Image

I ask you not to pay attention to the many wires, I was experimenting)
The fifth photo shows the refinement in order to start the generation of pulses and successfully control the output current.
We need to raise the 6th pin of the MCP4728 microcircuit and solder the conductor to the printed circuit board for the 6th pin and be sure to output GND, since the unit is galvanically isolated from the power key control board.
Now when we supply voltages from 0 to 4 volts, we will change the current of our converter.
Image

If everything is done correctly, we will see the generation of pulses on pin 18 of the UCC2895 microcircuit as shown in photo # 6
Image

INCLUDING ORDER
1. Turn on + 12V in a regular way according to the documentation.
2. Directly supply alternating current of 220 volts
3. Turn on the power corrector (tightening on gnd)
4. Turn on the PWM (tightening on gnd)
5. We supply power to the feedback (6 pin of the printed circuit board on the seat of the MCP4728 microcircuit.
Image

MY THOUGHTS
You can control the MCP4728 using I2C, there is a library in the arduino network) As I understand it, the inverter uses only 1 channel if you apply 4 volts, the inverter will work at full power.
In normal use, the processor gives a command via the I2C interface and the MCP4728 generates a voltage from 0 to 4 volts on channel a. I have not finished the hardware study of the inverter yet, but I'm sure that current and voltage readings are coming to the CPU!
In my project e-baggi will be able to power the consumer with a PDM with a voltage of 220 volts DC from the main battery) and charge too!
Good luck everyone and be careful with high voltage !!!!!!
used embed links for photos.

User avatar
49thdiver
Forum Supporter
Posts: 73
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: Stand alone OBC/PDModule EV system Can 2015

Sat Jan 02, 2021 11:07 am

Peter this is fantastic work. Clearly there is a hardware path to getting the charger to run as you are demonstrating.
Once you have it all figured out an Arduino or other micro-controller could easily be set up to manage it.

I am going to continue with the software path until I run out of idea's or you get your s working fully. Then I will follow your route.

I re-coded my software last night to include the "Heartbeat" 0x11A command, I hoping that it might trigger a refresh cycle in the BMS.
It's the only command that looks like it might trigger something It is sent by the VCM, it has 4 states it cycles through. I am guessing that it might be the BMS, OBC/PD, Inverter and possible one or more of the other systems are watching it. 0x11A does not seem to convey much real information. It is just transmitted every 10ms repeating the pattern every 40ms.

0x11A 8 0 80 0 AA C0 0 0 67 // repeated commands from a recording of Al's Car
0x11A 8 0 80 0 55 00 0 1 71
0x11A 8 0 80 0 55 40 0 2 BC
0x11A 8 0 80 0 AA 80 0 3 AA

Indeed be safe, I have had a few minor incidents. One thing I learned is watch the insulation value of your wiring, some of the small gauge hook up wire and even larger gauge have very low insulation voltage at around 125 volts. When working with 400 volts I had two wires from the main pack short thru the insulation and an added rubber insulator after about 5 minutes of low current operation. Lesson learned, rubber is not a good insulator, neither is cat5 cable. unmarked cable is risky, I only use 600 volt cable now but note that even 600 volt rated electrical tape is vulnerable to any kind of impact if you do not have a good number or wraps. With these kinds of high voltage and current situations once something goes wrong usually with a loud crack the burning insulation creates an arc path and turns the whole thing into a beautiful carbon arc light for a moment. Ah yes and your fuses vaporize :). It's best to use high insulation silicone wire and gloves, glasses etc.

Good luck and thanks for the documentation.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

Clanarn
Posts: 1
Joined: Sat Jan 23, 2021 6:02 pm
Delivery Date: 24 Jan 2021

Re: Stand alone OBC/PDModule EV system Can 2015

Sun Jan 24, 2021 8:31 am

Hi! I have been trying to get my gen2 obc/pdm working using svizpdm method without any success yet. The dc/dc works by only supplying 12v+ to pin 16 and 18 on connector B24.

Ive followed the instructions and got the AC relay to close. The pwm on pin 18 on UCC2895 won't start from grounding the component seen in step 4. UCC2895 pin 20 shows 4.5v. Analog signal is supplied to the MCP4728 with a potentiometer. Is there something else that has to be connected or modified to make this work?

User avatar
49thdiver
Forum Supporter
Posts: 73
Joined: Fri Feb 07, 2020 10:14 pm
Delivery Date: 15 Jan 2020
Leaf Number: 305065
Location: CANADA's westcoast
Contact: Website

Re: Stand alone OBC/PDModule EV system Can 2015

Sun Jan 24, 2021 1:58 pm

Wow, well done, nice to see someone else attempting to replicate Svizpdm's significant work. This may turn out to be the best way to use the charger. My work on the software end continues but I am continuing to watch this as well. Good luck.
Peter
Dangerous if left unattended.
1985 Grumman Olsen Kubvan, 2002 Rav4 EV, 2000 Ford Ranger EV, 2015 Nissan leaf, Biktrix LJ

Return to “LEAF CANBus”