Support

How can we help you today?

How to link OpenEVSE v4 to Arduino Uno?

G

Glebiys

started a topic
about 1 year ago

Good day! I have OpenEVSE v4. Is it possible to additionally connect Arduino (UNO) and arrange data exchange between them? The garage where I charge the car is outside the WiFI network, so I want to connect the GSM module to the Arduino UNO and control the charging process via mobile communication. Is it possible? I need to know exactly the possibility of connecting OpenEVSE and Arduino. Thank you in advance for your cooperation!

Mark Claussen

If the RAPI commands are enough to do the controls you need, the arduino will communicate using the TX/RX pins. The arduino can be powered by the OE 12 volt supply also.

E

Edson Sanchez

said
8 months ago

I was looking through this example: https://store.openevse.com/blogs/news/15753588-openevse-remote-api-examples to try and figure out how I can get communication going between the OpenEVSE controller and an Arduino. It's not clear from the Arduino file what commands are used to get information from the EVSE controller. The Arduino seems to be waiting for the controller to send data. Is the controller constantly broadcasting information?

OpenEVSE Support

said
8 months ago

Most commands are initiated by the remote device. There are some asymmetric commands, sent by OpenEVSE when a state changes.

I know that the decimal equivalent of '$' = 36, 'O'=79, 'K'=75, ' '=32 , so I am getting the first part of the response: "$OK", but I don't understand the values I am getting after that part. I was just expecting a 0,1,or 2 since I sent the G0 command.

Thanks in advance for your help

E

Edson Sanchez

said
7 months ago

It looks like the problem was because the software serial is at its limit at 115200 bps. I switched to Arduino Mega which has additional hardware serial ports, and it seems to be working fine.