DIY EV Charging Station with Arduino Uno

  Рет қаралды 6,498

Pedro Neves

Pedro Neves

Күн бұрын

I have a full course on EV Charging in Udemy. If you're interested in learning more in-depth, you're welcome to check it out: www.udemy.com/course/electric...
This is a learning video about Electric Vehicle Charging. I show how to make a simple Electric Vehicle AC Charging Station with an Arduino Uno.
Please only work on making a Charging Station yourself if you are knowledgeable of electric power!
The project on GitHub: github.com/PedroCNeves/AC_Cha...
Cheers!
0:00 Intro
0:18 Overview
2:24 Code
6:24 Build
6:50 Shield
10:02 Build
13:10 Test
15:10 Charge

Пікірлер: 39
@hxl6162
@hxl6162 3 ай бұрын
Best regards from Brazil 🎉
@pedro-neves
@pedro-neves 3 ай бұрын
Helloo!
@johnosullivan675
@johnosullivan675 3 ай бұрын
Cool project! 👍
@pedro-neves
@pedro-neves 3 ай бұрын
Thank you!
@laurentsquartero9218
@laurentsquartero9218 3 ай бұрын
Nice one Pedro!
@pedro-neves
@pedro-neves 3 ай бұрын
Thanks Laurents! Nice to hear from you;)
@diydixit
@diydixit 3 ай бұрын
loved the video ! here's a friendly suggestion : I saw the code is around 3kb ,in that case you should drop using the arduino since it is fairly expensive , you can instead use an atmega 8 ic which has the same pinout as the atmega 328p used in arduino uno . you can get it as low as 3 USD . You'll just have to burn bootloader and then programming is as easy as popping the atmega 328 out of the arduino and putting atmega 8 in it . If this sounds like a hassle ,you can go with arduino nano !
@pedro-neves
@pedro-neves 3 ай бұрын
Thank you very much for the kind words and for the suggestion! Indeed, the Arduino Uno is not cheap. I chose it because I wanted the most DIYer friendly board. I think the Nano may be a good option as well;) Cheers!
@uosiumen
@uosiumen 2 ай бұрын
You could use ESP8266 or ESP32 as it's same price to buy and provides spare headroom for future enhancements
@pedro-neves
@pedro-neves 2 ай бұрын
@@uosiumen that's true. And I did consider it. One of the reasons for choosing Arduino is that I think it is the platform perceived by hobbyists as the lowest barrier to entry, and I wanted it to be the easiest possible to everyone.
@amandioreal2293
@amandioreal2293 3 ай бұрын
Good initiative. I would suggest some changes related to security. The entrances to the box should all be from below and not from above, to prevent water from entering. The protection diodes are missing from the relay circuits. The ground should not be connected to earth because they are different systems. To protect the dc system, I suggest using a fuse.
@pedro-neves
@pedro-neves 3 ай бұрын
Hello, thank you for that! Indeed, the box was not designed yet with protection in mind. More with the intention to show. Keep in mind that Gnd has to be connected to Protective Earth. That is necessary because the Control Pilot has to be referenced to Protective Earth. This is mandatory as described in SAE J1772 and IEC 61851-1 Cheers!
@SpaceerX
@SpaceerX Ай бұрын
@@pedro-neves I was just about to ask that question. I have similar build like yours and I struggled couple of days until I gradually found out the system is working after connecting ground and PE together. Does this have any downsides or consequences considering what @amandioreal2293 just said - that they are two different systems? Thanks for the answer!
@pedro-neves
@pedro-neves Ай бұрын
@@SpaceerX hello, the PE and Ground are tied together for safety reasons. This is how it's done in caravans also when they're connected to the grid. You need to connect the chassis of the car to PE. And the chassis of the car is connected to its DC Ground so... If still in doubt, this is also mandated by IEC 61851-1. Cheers! Happy to see people interested in EV Charging!
@theovannieuwenhuizen5756
@theovannieuwenhuizen5756 3 ай бұрын
Hi Pedro, Very interesting video. It immediatly triggered my intrest. I would have liked to hear a lot more how the program works. Especially with EV charging it would be nice to know more about the protocol for communication with the car. On the electrical side of things. Why are there no diodes across the relais coils or optical pin isolation to and from the microcontroller or an air gap between mains and the low power side of the circuit board? It might also be a design decision to buffer the PWM output circuit and add pull-up / pull-down resistors to make sure the pins are always at the required state when powering on or starting the microcontroller. Humours note: Guess you live in an area where it never rains because it would be a really bad idea if water would run into the enclosure through the cable glant on top of the box. 🤒 Best from the Netherlands. Proposal for updated code? #include #include "PWM.h" #define CP_OUT 10 // Maximum Allowed Charge Current #define CP_IN A0 // Applied AC Voltage enum State { STATE_A, STATE_B, STATE_C, STATE_F }; State currentState = STATE_F; int peak_voltage = 0; int charging = 0; void setup() { Serial.begin(9600); InitTimersSafe(); SetPinFrequencySafe(CP_OUT, 1000); pinMode(CP_OUT, OUTPUT); pinMode(4, OUTPUT); pinMode(6, OUTPUT); pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(16, OUTPUT); digitalWrite(16, LOW); digitalWrite(6, HIGH); digitalWrite(2, LOW); } void loop() { // Read the CP voltage peaks findPeakVoltage(); // Handle state transitions switch(currentState) { case STATE_A: if (peak_voltage
@pedro-neves
@pedro-neves 3 ай бұрын
Hello, and thank you very much for that! Indeed, I could have explained more about the communication. I always debate with myself about how much detail to add to these videos. The next video that I will make will be to explain the communication in detail. Regarding the electrical: - Indeed, there should be flyback diodes. - No need of optical isolators to drive the relays. The drive side is isolated from the power side. - There is a big gap in the PCB between power and logic - Cannot put pull ups or downs in the PWM because it has that 1k resistance in series to measure the voltage drop caused by the circuit in the car (will explain in detail in the next video). Thank you for making the code so much nicer;) I will look at it with care;) I appreciate the trouble that you took to make it. Hehe, that enclosure is more meant to demonstrate what's inside than to be in the rain;) Wouldn't dare to leave it outside unattended;) I will keep improving this project and I appreciate contributions such as yours. I will also make another video to explain the communication in detail. Cheers!
@davidrumsey3180
@davidrumsey3180 3 ай бұрын
Thanks very much for making this video.. great project. My Leaf draws about 13A / 230V single phase while charging... what is the highest current your relays, PCB and connectors can handle? Or, can the Arduino control the maximum charge current? If so, does it do that by communicating with the car and "asking" the car to only draw say 10A? This part of it wasn't fully explained.
@pedro-neves
@pedro-neves 3 ай бұрын
Hello, you are welcome. And thank you very much for your comment! The relays and PCB are sized for max 16 A. But I only really tested up to 10 A. The code in the Arduino can be changed to allow any current, I briefly show in 16:35 the line of code that can be changed to a different current setting. Indeed I could have explained the communication. I'm always wondering how much detail to put in these videos. But, if you are interested in the details, I have a full course in Udemy where I also explain that. There's a link in the Description. But, here's a link with a coupon to take the course for free until the end of April, if you like: www.udemy.com/course/draft/5863700/?couponCode=5F667AB15FB9ECEFA42D. Cheers!
@davidrumsey3180
@davidrumsey3180 3 ай бұрын
Also, to extend the project a bit, if the Arduino can control the charge current, could it be programmed to monitor a solar PV system and alter the charge current in response to solar energy available and house loads, so that the car was charged only from available surplus solar energy? Obviously it would also have to be able to charge at maximum rate, drawing from the grid, as well if you needed to charge quickly or at night.
@pedro-neves
@pedro-neves 3 ай бұрын
Hello, it's absolutely possible. The communication is designed to allow just that - dynamic maximum current allowed. If you input to the Arduino the current that the PVs are producing, then you calculate a new available current to the EV. I will develop this project bit by bit. This one makes a lot of sense, thanks.
@justinterested5819
@justinterested5819 3 ай бұрын
Is it possible make the houses max charging rate dynamic eg. change it during the charge with (no) interruption?
@pedro-neves
@pedro-neves 3 ай бұрын
Hello, Yes, absolutely. The max charging rate is designed to be dynamic. During charging, the charging station may change the maximum allowed current. To combine a charging station with the capacity oh a house, one can measure the current that the house is using and send a signal to the Arduino with how much is available.
@murraymadness4674
@murraymadness4674 8 күн бұрын
Does it really need -12v ? That ads some parts that I'd like to avoid. Using a motorcontroller chip, it can switch a gnd +12v to +12v gnd, which looks to me the same signal.
@pedro-neves
@pedro-neves 8 күн бұрын
Hello! Indeed, adding a -12 V supply increases the complexity. This is needed because the Control Pilot is a signal that switches between -12 V and + 12 V at 1 kHz. There are certainly ways of doing this differently than I did, but I suspect it would have to be more complex. Cheers!
@patrickmaartense7772
@patrickmaartense7772 3 ай бұрын
can you make a 3 phase version ?
@pedro-neves
@pedro-neves 3 ай бұрын
Hi, that's a good question. It would actually be exactly the same but, instead of 1-phase relays, it would have 3-phase relays. It's even possible to use external contactors (e.g. for DIN rail) and then it's not even needed to design a PCB for them. Hope this answers your question. Cheers!
@dinuwanmayadunna5060
@dinuwanmayadunna5060 2 ай бұрын
Can you teach "How to create an Ev charger AC to DC single phase 2 or 3 kw output DC chager?"
@pedro-neves
@pedro-neves 2 ай бұрын
Hello, when connecting an Electric Vehicle to an AC charging station, the vehicle utilizes it's onboard charger to convert AC into DC. It's always hard to decide how much detail to add into the videos on KZbin but I have a complete course on EV charging in Udemy. Here's a link if you would like to consider it: www.udemy.com/course/electric-vehicle-charging-from-theory-to-practice/learn/lecture/42720488#overview. Cheers!
@yaqoubhamadah9928
@yaqoubhamadah9928 16 күн бұрын
hello how can i buy the board that made ? thank you
@pedro-neves
@pedro-neves 16 күн бұрын
@@yaqoubhamadah9928 thanks for asking! I'm working on version 2 and I'll put it for sale as soon as it's ready. I'll make a new video about it. If you like you can send me an email at Pncneves@hotmail.com and I'll write to you when it's ready. Cheers!
@yaqoubhamadah9928
@yaqoubhamadah9928 16 күн бұрын
@@pedro-neves I sent you thank you
@pedro-neves
@pedro-neves 16 күн бұрын
@@yaqoubhamadah9928 I received it, you're welcome!
@martingerken7094
@martingerken7094 3 ай бұрын
a normal charger can give up to 22kW, usually 11kW. I seriously doubt that this board/relay/connectors/cables can take 11kW
@pedro-neves
@pedro-neves 3 ай бұрын
Hello, you are right. - 22 kW would be a system with 230 V, 32 A per phase and 3-phase. - 11 kW would be a system with 230 V, 16 A per phase and 3-phase. My board only allows one phase and 16 A (I only tested with 10 A), which makes it a theoretical maximum of 3.7 kW or tested 2.3 kW. If one would want to use this board to make an 11 kW or 22 kW, it would be possible by using an external contactor commanded by the board. I'm thinking that V2 will be like that actually to maintain the same board for different power systems. Cheers!
@cipriancarbunaru2827
@cipriancarbunaru2827 3 ай бұрын
There are a lot of safety features and standards for this kind of product. A DIY project like this one doesn't meet half of them.
@pedro-neves
@pedro-neves 3 ай бұрын
Hello, that is true. This is meant as a learning platform and is not a finished product. I installed an RCBO compliant with IEC61851-1 which disconnects after ground faults over 30 mA AC or 6 mA DC which I consider to be the main safety feature. But there are many others.
@Krzychu-bh4rl
@Krzychu-bh4rl 3 ай бұрын
​@@pedro-nevesI worked on EVSEs a bit. You should also have an overcurrent protection, surge protection and ground fault protection. Overall an interesting project, you demonstrated how it can be done with Arduino. You can also easily add a measurement unit (either DIY or MID interfaced by modbus). Now add OCCP 😂
@pedro-neves
@pedro-neves 3 ай бұрын
@@Krzychu-bh4rl , hello, and thank you for your kind and constructive comment from a fellow EVSE technologist! I have overcurrent protection upstream in my main board and also in the EVSE. The "O" in RCBO means Overcurrent. I also have ground fault protection. The "R" in RCBO means "Residual". The RCBO that I'm using is also certified by IEC 61851-1 to protect ground fault to current exceeding 30 mA AC or 6 mA DC. I have a link to the RCBO I'm using in GitHub. I agree that it should measure Current and Energy. I'm sure I'll add it one day;) And I would like to do a project just on OCPP. I think it will happen;) Cheers!
@avcgarage6688
@avcgarage6688 Ай бұрын
I made the circuit. There was a fire. My electric vehicle almost burned down 🙅🏼‍♂️❌
How to Install an Electric Vehicle Charger Receptacle
14:27
Electrician U
Рет қаралды 418 М.
Everything You Need to Know About DC Fast Charging
18:28
Aging Wheels
Рет қаралды 285 М.
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 12 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 65 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 82 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
Arduino Uno Tutorial Basic circuit breadboarding
24:01
eTech Tom
Рет қаралды 390 М.
Homemade level 2 EV charger quick overview
19:50
Jacob Dykstra
Рет қаралды 104 М.
Evolution of my Street Fox trike to full suspension e-trike
2:56
Slow Life Project
Рет қаралды 9 М.
Comparison - Cargo Trikes VS Cargo Bike
11:20
Pedro Neves
Рет қаралды 10 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
How Many Amps Do You Need For Home EV Charging?
26:08
State Of Charge
Рет қаралды 426 М.
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 12 МЛН