Arduino EV J1772 Charging Station

August 26, 2017 | Author: akozy | Category: Operational Amplifier, Power Supply, Electrical Connector, Resistor, Battery Charger
Share Embed Donate


Short Description

Arduino-EV-J1772-Charging-Station...

Description

Food

Living

Outside

Play

Technology

Workshop

Arduino EV J1772 Charging Station by flyguy161 on February 22, 2012

Table of Contents Arduino EV J1772 Charging Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1

Intro: Arduino EV J1772 Charging Station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2

Step 1: Setup ARDUINO Shield . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2

Step 2: Status LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3

Step 3: Relay Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4

Step 4: Pilot DC/DC converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

4

Step 5: Pilot Opamp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5

Step 6: Pilot Voltage Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6

Step 7: GFCI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7

Step 8: Load EVSE firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Step 9: Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Step 10: High Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Step 11: Charging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Intro: Arduino EV J1772 Charging Station Arduino Electric Vehicle Charging Station "Electric Vehicle Supply Equipment" (EVSE) implementing the J1772 protocol. J1772 is used in the current generation of Electric Vehicles and Plug ins such as the Nissan LEAF and Chevy Volt. The EVSE advertises the Maximum current available to the EV with a 1khz pilot signal. The Duty Cycle of the pilot sets the available current the EV may draw. The EVSE also functions as a safety device, the 240V AC lines of the J1772 plug are not hot until the EVSE and EV command the start of charging. The EVSE also functions as A ground fault interrupt device (GFCI). Parts list and Schematics are attached as images.

Image Notes 1. A1 2. R5 - 56k Ohm 5V to A1 3. R6 100k Ohm from A1 to GND 4. R7 200K from A1 to pilot connection 5. R1 1k 1% resistor from opamp pin 1 (pilot output to pilot connection 6. Pilot Output

Step 1: Setup ARDUINO Shield Build and ARDUINO proto shield. I used the Shield from Adafruit. http://www.adafruit.com/products/55 Solder 2 x 8pin and 2 x 6pin headers to the outside holes. Solder 2 x 5mm 2 Position Terminal headers to the protoboard for the Relay and J1772 Pilot

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Step 2: Status LEDs Solder Common Cathode RGB LED to proto board and 1 x 330 Ohm resistor each for Red, Green and Blue. Solder the Common Cathode to Ground. Solder Signal Wires: Red - D5 Blue - D8 Green - D13 LED pinout (CC RGB LED from Sparkfun) Blue - Green - GND (longest lead) - RED

Image Notes 1. 330 Ohm 2. RGB CC LED

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes 1. D5 - LED red 2. D8 - LED Blue 3. D13 - LED Green 4. RGB CC LED

Step 3: Relay Driver 2N2222A NPN transister connects to R11 (330 ohm) then to D8 (also connects to LED blue), GND and the Relay Output.

Image Notes 1. STMicro 2N2222A

Step 4: Pilot DC/DC converter The J1772 Pilot requires a 1khz signal that swings from -12V to +12V. A D107E DC\DC converter from MicroPower Direct converts 5VDC to both positive 12V and negitive 12V. The converter requires a minimum draw so a 2.4k resistor and 1uf capacitor is added from each output to ground. I connected the MPD D107E such that the 5V and GND pin lined up with the central 5V and ground rails on the proto board.

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes 1. Input 5V and GND 2. Output 12V, GND, and -12V

Image Notes 1. -12V 2. 12V 3. GND

Image Notes 1. 2.4k resister from each output to GND

Step 5: Pilot Opamp The Opamp for the pilot is a LF353 which is powered by the DC/DC converter from the last step. The positive +12V output connects to pin8 and negitive -12V connects to pin 4. A voltage divider with 2 100K (R8 and R9) resistors is connected to +5V Gnd and Pin 2 of the LF353. Pin 3 or the Opamp connects to the ARDUINO D10 on the protoshield. The output, pin 1 connects to a 1% 1k ohm resistor and then to the pilot output. A P6KE16CA bidirectional TVS diode is also connected to the pilot output and then to ground. Pins 5, 6 and 7 are not used.

Image Notes 1. -12V 2. 12V 3. GND

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes 1. A1 2. R5 - 56k Ohm 5V to A1 3. R6 100k Ohm from A1 to GND 4. R7 200K from A1 to pilot connection 5. R1 1k 1% resistor from opamp pin 1 (pilot output to pilot connection

6. Pilot Output

Step 6: Pilot Voltage Measurement The Charging station and the car communicate witht he pilot. The Charging station must read the voltage so it can correctly respond. 1. Solder R5 (56k) from 5v to Arduino Analog 1 (A1). 2. Solder R6 (100k) from Gnd to Arduino Analog 1 (A1). 3. Solder R7 (200k) from Pilot output to Arduino Analog 1 (A1). This circuit workis by providing a voltage divider (R6 and R7) to scale down the -12V to -12V levels. R5 provides a bias to keep the voltage positive, the Arduino does not tolerate negitive voltages on the analog inputs. -12v will be 1V on A1 and +12V will be 4.5V on A1.

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes 1. A1 2. R5 - 56k Ohm 5V to A1 3. R6 100k Ohm from A1 to GND 4. R7 200K from A1 to pilot connection 5. R1 1k 1% resistor from opamp pin 1 (pilot output to pilot connection 6. Pilot Output

Step 7: GFCI Ground Fault Inturupt (GFCI) is an important part of a charging station. GFCI works by measuring the differance of current out verses current in. If there is a differance the circuit trips. Standard GFCI trips at 5mA, however EVs need a less sensitive trip point. Most comercial EVSEs use 20mA. This Circuit work by using a Ground Fault Current Transformer (CT) from CRMagnetics (CR8420-1000-G). THe CT creates a small voltage when there is a fault. The small voltage from the CT is first amplified in the first stage then compared to a referance voltage in the second. If the amplified CT voltage is higher than the referance the Opamp goes high and causes the Arduino to register an inurupt on Arduino pin D2. 1. On another protoshield solder a 8pin socket. 2. Solder power wires, pin 4 to 5v and pin 8 to Ground 3. Solder Diodes 1N4148 to the Op-amp outputs pins 3 and 5. Opamp Output A 4. Solder header pins for CT coil. 5. Solder zener diodes to the header. 6. Solder 330 ohm resistor R17 to the header. (the value of this resistor can be changed to change the GFCI trip point) 7. Solder R16 from the CT coil header to Opamp pin2 8. R17, and a .1uf Capacitor from Opamp pin 2 to the diode on pin 1. Opamp Output B 9. Solder R15 (20k) to Gnd and R14 (100k) to 5V, connect resistors together then to Opamp pin 6. 10. Connect Opamp Output pin 7 diode to 10K resistor and the to Arduino Digital 2 (D2), connect other end of resistor to Gnd.

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Step 8: Load EVSE firmware Use the Arduino IDE to load "Open EVSE " firmware to the Arduono board.

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Step 9: Testing The J1772 Pilot is a 1khz +12V to -12V square wave, the voltage defines the state and the duty cycle defines the current available to the EV. The EVSE sets the duty cycle and the EV adds resistance from the pilot the Ground to vary the voltage. The EVSE reads the voltage and changes state accordingly. State Pilot Voltage EV Resistance Description State A 12 N/A Not Connected State B 9 2.74k Connected State C 6 882 Charging State D 3 246 Ventilation Required State E 0 N/A No power State F -12 N/A EVSE Error State A - To test State A, power up the EVSE. The EVSE should go to the ready state. LED should light Green. State B - To test State B, with the EVSE powered connect the EV Simulator (or diode and resistor) with a resistance of 2.74k Ohms. The EVSE should go to the EV Connected - EVSE ready state. LED should light Yellow. State C - To test State C, with the EVSE powered connect the EV Simulator (or diode and resistor) with a resistance of 882 Ohms. The EVSE should go to the EV Connected - EVSE ready state. LED should light Blue. State D - To test State D, with the EVSE powered connect the EV Simulator (or diode and resistor) with a resistance of 246 Ohms. The EVSE should go to the Error Vent required. LED should light Red. State E - To test State F, the EVSE should be disconnected from power. The EVSE should turn off, the LED should go out. State F -To test State F, with the EVSE powered connect the EV Simulator (just a resistor) with a resistance of 2.74k Ohms. The EVSE should go to the Error Diode Check Failed. LED should light Red. Frequency -The Pilot should have a frequancy of 1kHz(1000Hz). The acceptible J1772 tolerance is from 980-1020Hz. Test Frequency by attaching the EV simulator in State C "Charging Mode) (or diode and 882 Ohm resistor). Attach a multimeter or occiloscope from pilot to EVSE Ground. Pilot Duty Cycle - The Pilot Duty Cycle is dependant on the Max current setting of the EVSE. Test Duty Cycle by attaching the EV simulator in State C (Charging Mode). Attach an occiloscope from pilot to EVSE Ground. Duty cycle should match the chart below. Up to 51A Amps = Duty cycle x 0.6 Duty cycle = Amps / 0.6 51 - 80A Amps = (Duty Cycle - 64) 2.5 Duty Cycle Max Current < 3% Error 3% - 7% Digitial Com Required 10% 6A 20% 12A 30% 18A 40% 24A 50% 30A 60% 36A 70% 42A 80% 48A 86% 55A 88% 60A 90% 65A 92% 70A 94% 75A 96% 80A

Image Notes 1. EV simulator set to 2.74k

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes 1. Blue - Charging State C 2. EV simulator set to 882 Ohm

Image Notes 1. Red - Error Vent required - State D 2. EV Simulator set to 246 Ohm

Image Notes 1. Pilot Frequency is right on at 1.0khz

Image Notes 1. Pilot set to 30A (50% on 50% off)

Step 10: High Voltage The Arduino EVSE can charge at any J1772 rate from 6 Amps to 80 Amps. I chose to use a 240V 30A J1772 cable along with a 30A relay and L6-30 twistlock plug. The max charge rate of the Nissan Leaf is 16 Amps so that leaves plenty of margin. WARNING - please do not play with 240V if you are not qualified... 1. L6-30 Strip about 6 inches of outer insulation back to expose Hot (black), Neutral/Hot2 (white or red) and Ground (green) wires. Strip each wire back and solder or crimp the appropriate connectors on the Hot and Neutral wires for your relay. (optional) Add a second set of wires if required to power your Ardrinos power supply. 2. Prepare the J1772 plug by removing about 6 inches of outer insulation exposing 4 or 5 wires. If the 5th wire for proximity is present just fold it over and shrink wrap over it so it cannot short anywhere it is not required for the charging station. strip back about 1/2 inch of the 4 wires Hot (black), Neutral/Hot2 (white or red), Ground (green) and pilot (Orange on my cable but some are blue). Solder or crimp the correct connectors for your relay on the Hot and Neutral wire. 3. Tie all ground wires together. 4. Place both the Hot and Neutral wire of the J1772 cable through the Current Transformer and connect wires to relay. 5. Connect power supply. Note power supply must be 12V output and Input should be universal (from about 90 - 260V). 6. Connect the Pilot Wire to the Arduino shield Pilot output. 7. Connect Relay coil to the shields Relay output. 8. Connect the Power Supply to the Arduino.

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes 1. Hot 2. Hot to power supply 3. Neutral 4. Neutral to power supply 5. Ground

Image Notes 1. L6-30 twist lock

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes 1. Hot Neutral and Ground for power supply

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes 1. Hot from J1772 2. Hot from J1772 3. Neutral/Hot2 from J1772 4. Ground from J1772 5. J1772 Pilot

Image Notes 1. Ground block

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes 1. CT CRMagnetics CR8420-1000G on J1772 Hot/Neutral

Image Notes 1. Universal power supply 90 - 264V

Step 11: Charging After testing its time to charge.... plug in power and test again. Check your relay, did you get the high voltage wiring correct? Plug in the J1772 and your EV should start charging. Future plans... clean up the low voltage wires and put Arduino in proper enclosure.

Image Notes

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

Image Notes

1. J1772 2. Charging... 3. Arduino Charging station

1. Ready 2. Vin (12V) and Ground 3. Pilot 4. Relay 12V coil

Image Notes 1. High Voltage parts 2. I need another shaller box for the Arduino and shields.

Image Notes 1. Charging.....!

Related Instructables

USB Iphone Ipod Dynamo Charger by 2robotguy

008 Part 2Electric Car Conversion: Dodge Neon Batteries and Chargers (video) by bennelson

Ramps for a Low Car by Phil B

Powering the Arduino Mega with a Lithium Battery by inthebitz

008 Part 1Electric Car Conversion: Dodge Neon Batteries and Chargers (video) by bennelson

http://www.instructables.com/id/Arduino-EV-J1772-Charging-Station/

EASY SOLAR CHARGER by epman

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF