Code Monkey home page Code Monkey logo

esp32-evse's People

Contributors

dzurikmiroslav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32-evse's Issues

Run esp32-evse report1

Hi, Long time no see. I have report about your evse-ciruit.
I just trying your evse for my car. But in your circuit something problem.
When I was supply with DC regulated power supply that direct current have 3A.
I make prototype 2 which diffrence in Diode and Capasitor. but the both have same direc current about 3A.
then when I check with oscilloscope Waveform is still triangle wave not sqaure triangle.
Was it intentionally made? I little bit scarry for charging my real car when if that pcb and car are burn.

CP not reaching -12V

Hello, this project is amazing! I have tried multiple EVs, and it is working fine, but with a Skoda Plug-In, the car is throwing an error. The EVSE is at -9V State B.

I used an oscilloscope and the TL081CP is not reaching the low supply voltage. Instead of being at -12V it is at around -10.7V. Everything else looks fine, the rise and fall time is under 2us and the PWM frequency is at 1kHz. Maybe it is because of the TL081 not being a rail-to-rail OpAmp (it is a genuine one).

I have read the EN61851-1:2011 standard and the only value that is not within the tolerances is the negative voltage.

Any clue about what the problem may be?

Flashing problem...

Hello. Great project. But I have a problem to flash DevKIt from esp32s2-evse.bin. Everything seems to be ok, no error on flashing. But after I have such error in logs. Does it matter that my board is different from one on GitHub?
Obrazek
att UQuX4cS8CXDEQ038XJZ_9qzgrmriPe74SgEMuN86spc (1)

Cp fault state e

I (119219) evse: Set max charging current 32A
I (119219) evse: Set charging current 76A10
I (119219) evse: Set default charging current 100A
10
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."

Crash after Flash

Hello I get this loop crash and de device can't boot.

Test Board: ESP32S2 ESP32S3 ESP32-PICO-V4

SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6108,len:0x17cc
load:0x4004b000,len:0x4
load:0x4004b004,len:0xaa0
load:0x4004f000,len:0x3128
entry 0x4004b1c0
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x8 (TG1WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4002fb74
0x4002fb74: _xt_context_save at /Users/brunohorta/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/xtensa_context.S:126

SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6108,len:0x17cc
load:0x4004b000,len:0x4
load:0x4004b004,len:0xaa0
load:0x4004f000,len:0x3128
entry 0x4004b1c0

Could you tell me how to compile to ESP32?

Nice to meet you . My name is Adrian Zulnedi . Thanks to make it Evse ESP32 , I really Like it.
But I don't know how can I compliing in my ESP32. Cloud you tell me to get detalis Informations?
Because it's doesn't have information details. Thank you for your reading.

Charging scheduler

Hi Miroslav.
Some countries have two-tariff meters. The price of electricity at night is significantly lower than during the day. I really wanted to add a real-time charging scheduler (of course, the time must first be set via the NTP server). You did a wonderful job, thank you.

ADC calibration fails on chips without factory ADC calibration fuse burned.

ADC calibration fails on chips without factory ADC calibration fuse burned. Those should be quite old chips.
logs:
I (840) adc: Calibration scheme version is Line Fitting
E (840) adc_cali: adc_cali_create_scheme_line_fitting(186): default vref didn't set
E (850) adc: No calibration scheme

From documentation on docs.espressif.com:
There is also a configuration adc_cali_line_fitting_config_t::default_vref. Normally this can be simply set to 0. Line Fitting scheme doesn’t rely on this value. However, if the Line Fitting scheme required eFuse bits are not burnt on your board, driver will rely on this value to do the calibration.

Nominal value is such case is - 1100mV. Adding this value to adc_cali_line_fitting_config_t cali_config solved the issue:

components/peripherals/src/adc.c

#if ADC_CALI_SCHEME_LINE_FITTING_SUPPORTED
    if (!calibrated) {
        ESP_LOGI(TAG, "Calibration scheme version is %s", "Line Fitting");
        adc_cali_line_fitting_config_t cali_config = {
            .unit_id = ADC_UNIT_1,
            .atten = ADC_ATTEN_DB_11,
            .bitwidth = ADC_BITWIDTH_DEFAULT,
            .default_vref = 1100,

Not compiling after last update #de2fd29

Hello!

I ran 'git pull' after last changes #de2fd29 and now i see the following:

In file included from D:/esp32-evse/components/script/src/be_mqtt_client_lib.c:8:
D:/esp32-evse/components/script/src/be_mqtt_client_lib.c: In function 'm_subscribe':
C:/esp/esp-idf/components/mqtt/esp-mqtt/include/mqtt_client.h:464:84: error: '_Generic' selector of type 'const char *' is not compatible with any association
464 | #define esp_mqtt_client_subscribe(client_handle, topic_type, qos_or_size) _Generic((topic_type),
| ^
D:/esp32-evse/components/script/src/be_mqtt_client_lib.c:226:26: note: in expansion of macro 'esp_mqtt_client_subscribe'
226 | int sub_id = esp_mqtt_client_subscribe(ctx->client, topic, qos);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[1010/1062] Building C object esp-idf/script/CMakeFiles/__idf_script.dir/lib/berry/src/be_byteslib.c.obj
ninja: build stopped: subcommand failed.

I have the latest update of esp-idf v.5 and the rest I did not touch.

What to update to make it compiling?

Regards,
Alfred

ADC Reading

Hello, I having problems when I use the ENERGY_METER_L1_CUR_ADC_CHANNEL=4 and PILOT_ADC_CHANNEL=1.
When I get consumption the Pilot return Error.. It's strange how different IO's can interfere with each other.
I'm using ESP32. Any Ideas?

Question about AUX

Hi,
The configuration https://github.com/dzurikmiroslav/esp32-evse/blob/master/cfg/esp32devkitc/board.cfg says

#AUX
AUX_IN_1=y
AUX_IN_1_NAME=IN1
AUX_IN_1_GPIO=4

AUX_IN_2=y
AUX_IN_2_NAME=IN2
AUX_IN_2_GPIO=21

....

AUX_OUT_2=y
AUX_OUT_2_NAME=OUT1
AUX_OUT_2_GPIO=5

Вut in the electrical circuit https://oshwlab.com/dzurik.miroslav/esp32-devkit-evse these contacts GPIO=4,5,21 are not used.
These are optional functions, I think, but I want to clarify what role they play and how to correctly connect external connections to the board. I want to repeat the electrical circuit, first single-phase, then three-phase .... The software was reproduced, and everything works. Thank you.

OTA Update

Hello!

I tried to update from version 0.5.0 to 0.6.0 by air. I push the button (System::Firmware::Check for update) but nothing happened. I see red popup error "Cannot be fetch latest version info"

Error log is the following:
E (819032) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x2700
I (819032) esp-tls-mbedtls: Failed to verify peer certificate!
E (819032) esp-tls: Failed to open new connection
E (819032) transport_base: Failed to open a new connection
E (819042) HTTP_CLIENT: Connection failed, sock < 0
E (819042) http_rest: Failed to open HTTP connection: ESP_ERR_HTTP_CONNECT
W (819042) httpd_txrx: httpd_resp_send_err: 500 Internal Server Error - Cannot be fetch latest version info
W (819042) httpd_uri: httpd_uri: uri handler execution failed

Also I noticed that I receive 404 for https://dzurikmiroslav.github.io/esp32-evse/firmware/

Or OTA feature is not working? Local update by bin file is working...

Regards

ESP32-S3-N8R2 not working/not compiling

Hello!

I'm new in this field - ESP and so on.

I bought ESP32-S3-N8R2 thinking that there will be no problem compiling for this chip. But nothing good happened. Its compiling, but after flashing chip rebooting with error "system_internal.c:158 esp-idf".

I google that a lot of people have problems compiling on s3 or moving from s2 to s3.

I tried a lot on menuconfig \ github and esp-idf forums etc but no chance to make it working.

Is it better to buy S2 as you use or maybe you know some hints why its not compiling?

Regards

How to Compile Project?

Hi everyone, thanks for project @dzurikmiroslav .
I have used only Arduino IDE before.
Now, i have eclipse with esp tools for this project.
I did examples project blink etc.
I open this project in eclipse and I couldn't do anything else.
thank you for your help

ADC_ATTEN_DB_11 is deprecated. New warning after #de2fd29 update

Also after #de2fd29 update I receive errors like below:

51 | ADC_ATTEN_DB_11 attribute((deprecated)) = ADC_ATTEN_DB_12, ///<This is deprecated, it behaves the same as ADC_ATTEN_DB_12
| ^~~~~~~~~~~~~~~
[983/1062] Building C object esp-idf/peripherals/CMakeFiles/__idf_peripherals.dir/src/energy_meter.c.obj
D:/esp32-evse/components/peripherals/src/energy_meter.c: In function 'energy_meter_init':
D:/esp32-evse/components/peripherals/src/energy_meter.c:280:5: warning: 'ADC_ATTEN_DB_11' is deprecated [-Wdeprecated-declarations]

I need to change all to ADC_ATTEN_DB_12 in your code?

Regards,
Alfred

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.