dzurikmiroslav / esp32-evse

ESP32 EVSE firmware
GNU General Public License v3.0
56 stars 21 forks source link

Cp fault state e #44

Open demirs1 opened 4 months ago

demirs1 commented 4 months ago

I (119219) evse: Set max charging current 32A I (119219) evse: Set charging current 76A10 I (119219) evse: Set default charging current 100A10 I (119229) evse: Set require auth 0 I (119229) evse: Set socket outlet 1 I (119229) evse: Set rcm 0 I (119229) evse: Set temperature threshold 60dg.C I (120819) evse: Enter A state I (120819) ac_relay: Set relay: 0 I (120819) pilot: Set level 1 I (120879) evse: Enter E state I (120879) evse: Error bits 1 I (120879) ac_relay: Set relay: 0 I (120879) pilot: Set level 0

"I am getting 0V from the cp leg of the esp32-s2, it writes pilot error. When I check the circuit and measure the voltage, I see 1.45V at the tl081cp output. PILOT_PWM_GPIO=33 I get 0V PILOT_ADC_CHANNEL=3 I get 3.3V."

demirs1 commented 4 months ago

I am still seeing 1.45V at the cp_term output." It's not giving an error at the moment (red light is off), but it doesn't recognize when I connect the device. The error status persists on the interface, and changing the threshold value doesn't fix it.

When the device is connected, I receive 0.368V for cp-pe and 0.604V for pp-pe. How should I calculate the threshold based on these values? I only have these values, how should the calculation be for other scenarios

demirs1 commented 4 months ago

Why is the voltage output from the tl081cp opamp so low? Vout is 1.65V, there is no gain. The issue is that the op-amp isn't amplifying. The circuit works correctly on the Proteus simulation, but it doesn't work on the actual board. What could be the reason for this, and do you have any suggestions for another op-amp?

dzurikmiroslav commented 4 months ago

Was the operation amplifier bought from china (many fakes parts are on AliExpress)? I recommended you try buy operational amplifier from local shop. It doesn't have to be only TL081CP, it can be replaced with another that is suitable for the voltage and handle the frequency of 1kHz (for example LF353). Have you connect on CP output TVS diode? try simulate without it.

demirs1 commented 4 months ago

I tried without TVS, but the result is the same. I think the op-amp I have might be fake. I will try with a new op-amp. Thank you.

demirs1 commented 4 months ago

"Opamp replaced and the issue is resolved. Thanks. Can you assist with another matter? Currently, I can perform the charging process, but when I try to start or stop the charging process on the interface, my vehicle encounters an error and doesn't stay in standby. It gives an error shortly after stopping the charging process, around 2 seconds. How can I put the vehicle into standby mode when there is no charging process? Is there a setting for this on the interface?"

dzurikmiroslav commented 4 months ago

Enabled switch on main screen should be used to pause and resume charging process. Also in Settings / System / Charging available switch are set to EVSE to not available state (when is connected EV not socket lock will be acquired, session will be interrupted). I tried to implement this scenario: image EN input is like Enabled switch in dashboard, C1/C2 is AC relay output Source: https://www.phoenixcontact.com/en-il/products/ac-charging-controller-em-cp-pp-eth-2902802 in Downloads / Manual

If something doesn't fit according to this scenario, let me know.

If I may ask, what kind of EV are you trying it on? My EV also reports an error that it cannot charge, but after enabling charging, the charging process starts again.