Search found 171 matches

by Kelju
Sun May 04, 2025 2:08 pm
Forum: Batteries and Charging
Topic: Rich mans ChaDeMo charger (3-phase)
Replies: 37
Views: 34366

Re: Rich mans ChaDeMo charger (3-phase)

Okay, I'll look into that to get that issue sorted.
In the meantime I read the STM32 reference manual section on the timers and specifically the PWM settings.
The idea was to understand the meaning of the code in the hwinit.cpp.
I started experimenting with replacing some of the settings and finally ...
by Kelju
Sat May 03, 2025 9:03 am
Forum: Batteries and Charging
Topic: Rich mans ChaDeMo charger (3-phase)
Replies: 37
Views: 34366

Re: Rich mans ChaDeMo charger (3-phase)

Python 3.10.12 is installed as confirmed by "python3 -V"
by Kelju
Sat May 03, 2025 7:44 am
Forum: Batteries and Charging
Topic: Rich mans ChaDeMo charger (3-phase)
Replies: 37
Views: 34366

Re: Rich mans ChaDeMo charger (3-phase)

Not sure if this is in anyway related, but when I cloned the repository, the magical "make get -deps" command resulted in some errors, so I just copied all the internals of the related libopencm3 and libopeninv folders from a working Zombie project. At least the compiling started working like that ...
by Kelju
Fri May 02, 2025 4:55 pm
Forum: Batteries and Charging
Topic: Rich mans ChaDeMo charger (3-phase)
Replies: 37
Views: 34366

Re: Rich mans ChaDeMo charger (3-phase)

Moving on from obsticle to another. Now the inputs seem to work, but I get no PWM output.
I have active low setting, so in off-mode the PWM1-TOP is high. When the system goes to run-mode, PWM1-TOP goes low and stays there.
It even stays there if I artificially generate a current sensor value higher ...
by Kelju
Thu May 01, 2025 7:13 pm
Forum: Batteries and Charging
Topic: Rich mans ChaDeMo charger (3-phase)
Replies: 37
Views: 34366

Re: Rich mans ChaDeMo charger (3-phase)

So, as the precompiled FW was acting strange, I reverted to playing around with the one that I compiled myself.
I was suspecting the IIR filter function and took it out from the current value.
Sure enough, I started seeing values in RUN mode. Then I noticed that for some reason, I had a negative ...
by Kelju
Thu May 01, 2025 3:48 pm
Forum: Batteries and Charging
Topic: Rich mans ChaDeMo charger (3-phase)
Replies: 37
Views: 34366

Re: Rich mans ChaDeMo charger (3-phase)


Binary attached.


Flashed in that FW and now my Web interface is showing strange things:
When I apply voltage to IN_START -> din_emcystop goes "on" in the spot values.
When I apply voltage to IN_EMCYSTOP -> din_ocur goes "on" in the spot values.
soc is showing the LV supply voltage.
I have 10V ...
by Kelju
Sun Apr 27, 2025 4:00 pm
Forum: Batteries and Charging
Topic: Rich mans ChaDeMo charger (3-phase)
Replies: 37
Views: 34366

Re: Rich mans ChaDeMo charger (3-phase)

Is it possible that something goes wrong in my compiling?
Can somebody attach here a precompiled bin?
by Kelju
Sun Apr 27, 2025 12:26 pm
Forum: Batteries and Charging
Topic: Rich mans ChaDeMo charger (3-phase)
Replies: 37
Views: 34366

Re: Rich mans ChaDeMo charger (3-phase)

As I wrote. Goes to run mode and there are no errors, but still no current reading.
by Kelju
Sun Apr 27, 2025 11:23 am
Forum: Batteries and Charging
Topic: Rich mans ChaDeMo charger (3-phase)
Replies: 37
Views: 34366

Re: Rich mans ChaDeMo charger (3-phase)


Code is here: https://github.com/jsphuebner/stm32-charger


I am trying to make a buck charger with this code, but I cannot get any reading from IL1 nor IL2 to the spot values.
I have IL1 and IL2 connected together and I am just supplying a variable voltage from a benchtop PSU to verify that I ...
by Kelju
Mon Feb 10, 2025 6:13 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM


Perfect :) please continue to do some testing and let me know if you can break it ;)


I think I found some sort of a bug...
During a long charging session, the charging power stops following the request intermittently, for a very long time and then at some point it starts following the request ...
by Kelju
Mon Jan 20, 2025 4:31 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM


Bench test confirms errors in my population of voltage and current into the BMS spoof message, will fix now.

EDIT
Update for fixing the mapping issue, will review logs to see if anything else is not behaving. But if you get a chance it be good to test with this change.

https://github.com/Tom ...
by Kelju
Tue Jan 14, 2025 6:23 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM


This is captured in your log? I will compare this situation to my code log and analyze.


No, it is not in the previous log of your V2.22A, but I went and took a datalog for you.

This is the datalog of the Main branch V2.20A FW with my changes to the Stm32.ccp to execute the Inverter 10ms task ...
by Kelju
Tue Jan 14, 2025 4:21 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

Good evening. I hate to bring bad news, but after testing a bit further, I have to say we still have issues.
Now the charging mode activates consistently and the charging power starts to flow, but only at a very low level and the power does not follow the request according to the parameter Pwrspnt ...
by Kelju
Sat Jan 11, 2025 7:27 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

I was too curious to know, so I had one more go at it now, that I am actually compiling the correct version...
And sure enough - Driving and Charging both work! :D
Here is a datalog of the operation.
- Starting the datalog first and then applying the permanent 12V power
- Going into RUN-mode and ...
by Kelju
Sat Jan 11, 2025 6:14 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

I am really a Github n00b and for that reason I made a mistake in the cloning.
I was compiling the default branch, hence missing the whole LeafMng...
Now I cloned with the -b extension and double checked that I have all the newly added files.

Not sure if I still have time to test today, but just ...
by Kelju
Sat Jan 11, 2025 3:56 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

Now I just cloned and directly compiled your V2.21A without any changes.
The first log is...
- Going into RUN-mode and spinning the motor (works fine)
- Going into OFF-mode and waiting a few seconds (>10 sec)
- Plugging in the charger and waiting a few seconds (System goes into charging mode, but ...
by Kelju
Sat Jan 11, 2025 3:01 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

Okay. I'll make a new test, but this time without my changes.
by Kelju
Sat Jan 11, 2025 2:36 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

Okay, I will do that.
How long should I wait after switching off from RUN mode, before I plug in the charger?
by Kelju
Sat Jan 11, 2025 2:04 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

Thanks for taking the time to investigate this issue, Tom.
I cloned your latest FW and made my changes to cope with my setup, then went ahead and tested.
Driving works, then I went to off-mode and wait several minutes to make sure all units are sleeping.
Then plugged in the charging. Pre-charge ...
by Kelju
Thu Jan 09, 2025 8:49 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

I think you are on the right track on this issue.
I forgot to mention in my earlier post, but the problem seems to only be the startup of the PDM into charging mode. Once the EVSE relay is closed and charging power is flowing, the PDM does not need the inverter 10ms task. I confirmed this by ...
by Kelju
Thu Jan 09, 2025 7:17 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

Here is a datalog of a successful charging event after a hardware reset with the above described code modifications:
20250109_V200A_MAINmod_charging.zip
(463.21 KiB) Downloaded 451 times
by Kelju
Thu Jan 09, 2025 7:13 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

I have found an intermediate solution to my issue of not charging.
This is how my Ms10Task in the stm32VCU.cpp looks like:

if (Param::GetInt(Param::opmode) == MOD_RUN) //!!!THROTTLE CODE HERE//
{
torquePercent = utils::ProcessThrottle(ABS(previousSpeed)); //run the throttle reading and checks ...
by Kelju
Sun Jan 05, 2025 1:00 pm
Forum: Projects
Topic: Project RX-8 w/ GS450h Drivetrain
Replies: 21
Views: 4639

Re: Project RX-8 w/ GS450h Drivetrain

Probably your issues are originating from these (which have already been pointed out):
1. Improper fixing of the diff (this however is propably not the source of vibration)
2. Universal joint fixed onto a rubber bushing (U-joints should always be used in pairs and the alignment of the input and ...
by Kelju
Sat Jan 04, 2025 6:46 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

Here you go. The PDM wakeup is there in the log.
by Kelju
Sat Jan 04, 2025 6:24 pm
Forum: Vehicle Control (VCU)
Topic: Zombiverter not switching to charge mode with Leaf PDM
Replies: 78
Views: 24042

Re: Zombiverter not switching to charge mode with Leaf PDM

tom91 wrote: Sat Jan 04, 2025 4:25 pm Can you please turn off the Inverter parameter (only change besides the nissanPDM.cpp) and grab me a log of trying to charge?
I went ahead and did this, but as I suspected, with the Leaf INV required for DC-link voltage measurement in my setup, I get a pre-charge fail.