112 points · by nickt · 3y ago · 190 comments
I currently also did my own DIY EVSE charger mainly for fun [1].
If you are interested about the main differences between your approach and mine:
(1) I use an industrial contactor DIN form factor for the power switch instead of passing the power through the relay directly. Mainly for safety reasons (I do not trust much small relays) and also because I wanted to support three-phase power for an European T2 installation.
(2) Instead of printing my own PCB with an Arduino for the PWN, I just bought one command module from China/UK provider. Mainly for pure lazyness reason :) The module itself is shield behind the RCD class B.
(3) I have added a shelly 3EM front of the system. To use it as a watt-meter with MQTT report and also as a remote control system.
My little advice for people interested to do their own: DIY is always an excellent way to learn and if you want to do your own, do it... BUT please make your installation reviewed by someone with an electrical engineering or technician background if possible. These systems can easily pump 7 to 22KW during extended period of time: Any cable which is not screwed properly or under-sized can bring you a fire.
[1]: https://github.com/adevress/open-ev-station/blob/master/READ...
£900 is $1140. In southern California, it cost me $750 for top notch work and hardware, including: $400 to have an electrician install a 240V 50A outdoor outlet (NEMA 14-50), plus $350 for a good quality level 2 40A EVSE (this one: https://www.amazon.com/dp/B082LMVSLY) that I installed myself as it simply plugs in the outlet and it's just a 5-minute job to secure it to the wall with two screws.
It's possible to bring the cost down to around $600 when picking a cheaper EVSE (like https://www.amazon.com/dp/B08LMX4TJR?th=1), so about half the UK cost as reported in the blog post. I would love to see a breakdown of that £900... that seems really high.
The £900 will include: supply of a 7kW EVSE; adding a new circuit to your consumer unit/fuse box; running a few tens of meters of fairly expensive cable (6mm SWA suitable for outdoor and underground use) in a careful, tidy way; adding an extra ground point, if needed; an electrical safety test with a special tester; and issuing a certificate (which is mandatory for this type of installation). It'll take the electrician about a day.
People in the UK pay a fairly hefty premium as we don't have as many qualified installers as we probably ought to.
Of course, standard British sockets already supply 3kW - so the cheaper option is just to get an outdoor socket installed on an existing ring main. This is substantially quicker to install in most cases.
From my searching, this doesn't meet the current regulations of the socket is intended for EV use. The costs to make it compliant bring it up to the better options anyway.
And of course, you'd fit a socket like [1] which is waterproof even when in use, and has a built-in RCD if your consumer unit doesn't have one. It's common sense when using electricity outside. And your installer will want to make sure the circuit has enough capacity to avoid nuisance trips - put your EV on the same circuit as your kettle, washing machine, dish washer and tumble dryer and you'll have a frustrating time :)
But my point is, not every Brit with an EV spends £900 on EVSE - especially if they're only commuting two days a week, or they've got a plug-in hybrid.
[1] https://www.screwfix.com/p/masterplug-ip66-13a-1-gang-weathe...
I ended up installing one myself, but spent almost as much anyway. 800 euro for an Alfen Eve charging point with support for OCCP protocol (for reimbursement of electricity cost by employer), about 200 euros in other materials (admittedly with some scope creep), 150 euros for the mandatory technical inspection...
Without doing some of the installation work myself, the electrician would have cost me several hundred CHF more.
Also, the £900 includes 20% tax.
Is it a case of using a high quality socket which costs 2-3 times as much?
We have an EV and a PHEV, I had a charger installed back when government grants were much more generous, we paid £250 to have one installed, but nowadays I think I'd just make do with a 3 pin charger, or get a commando socket installed + OHME 32amp commando socket charger, much cheaper than this.
Looks very similar to OpenEVSE but he wrote his own code.
Nice clean build. Not sure why the extra work instead of just downloading OpenEVSE.
But without some kind of a cost difference, I'd probably stick with something like OpenEVS, which seems to have some level of official certification [0].
I personally regret my decision to not go with them when I got my EVSE this year. I went with an EnelX Juicenet because A) it was on the list of devices my power company would mostly pay for and B) at the time it had API availability to integrate with HomeAssistant. They have since killed that second part, which I would have loved to still have. In the long term, the ~$500 I saved by having my power company reimburse was probably not worth the lack of control I now have.
[0] https://openev.freshdesk.com/support/solutions/articles/6000...
-edit- He does have a total cost, I just missed it: he claims that it was ~£200. I leave it up to the reader if that's enough savings to give up the certification.
When OpenEVSE was new, I built one on perfboard, actually a very compact modular stack of perfboards, one layer per subsystem. Handed it off to my software-savvy friend, and he couldn't get it to pass self-test, despite both of us agreeing that every piece of the circuit appeared correct as per the published schematic.
Eventually he gave up and ordered one of OpenEVSE's commercially-produced boards, and it failed self-test at the exact same place. Apparently there was some unclear documentation and it was supposed to fail there until something else was hooked up, I don't remember the details, but there was nothing wrong with my stack of perf in the first place. Argh.
All of which is to say, it's not hard at all to build one of these things. if you want to lobotomize your closed-crap EVSE and lash an open board to it, do so! I'm pretty sure the JuiceBox is OpenEVSE-based in the first place so it might be as simple as reflashing some firmware.
After reading this article, I had been considering getting one of their most basic kits that doesn't include the cables from the wall to the box or the box to the car (since I have both of those with my current EVSE), but if I can get the same functionality reusing even more of my current one, that would be ideal.
EVSEs also manage DC charging in commercial settings, which bypasses part of the charging hardware in some cars.
My Porsche Taycan is available with multiple chargers from the factory. I have the faster AC charger unit and there is a third unit that is only sold in Europe for Type 2 chargers. The actual charger handles converting AC to DC, which is car specific and why it’s not in the EVSE.
Thank you, I wasn't previously aware of this distinction.
So for simple units that are just "a fancy plug and contactor" (no balancing, limiting, V2G, V1G, etc), what do we call them? I know not to say "EVSE" now, but what should I use? Thanks again.
For level 1 and 2 charging, the charger is in the car. J1772 ports are basically just fancy 110v or 220v AC plugs with some extra signalling.
DC charging tends to happen at much higher power levels, and that equipment is expensive so the AC-DC converter is kept outside of the car. The car itself just has a couple contactors (i.e. high power relays) to connect the charge port directly to the battery, and a microcontroller to tell the charger how much current it can handle at what voltage.
The general public does not know or care about the distinction and in the grand scheme of things, it doesn't matter.
The AC power passes straight through the EVSE, unaltered in voltage, current, or waveform. The EVSE may monitor the current to perform logging, and the EVSE is required to monitor the AC imbalance like any other RCD/GFCI does so it can open the contactor if there's a ground fault, but that's it. It's just a smart extension cord, basically.
The charger is in the car, and is the component that actually converts the AC from the grid to DC for the batteries. The charger is what has all the silicon (or these days, probably gallium nitride?), and the inductors and capacitors and stuff to actually transform the power from one form to another. It changes the voltage to match whatever the battery needs at the moment. It controls its own DC output to match the battery's needs, and it limits its own AC input according to the signal from the EVSE so it doesn't trip the upstream breaker.
The charger is also responsible for immediately turning itself off, reducing its input draw to zero, within a few milliseconds of someone pressing the latch of the EVSE connector handle. This indicates they're about to pull it out, and the contacts aren't designed to handle arcing, so the charger is required to drop its current _very_ quickly, allowing the contacts to be separated without creating an arc. That signal (called PP) is produced in the handle itself, there's just a tiny switch underneath the latch. The handle is technically part of the cord which is technically part of the EVSE, but the EVSE has no responsibilities related to the signal, that's all on the charger.
If the SAE hadn't mandated that the EVSE perform RCD functions, it could be replaced by a literal extension cord. Many small DIY EVs do precisely that; the charge cord is the exact same one you'd use to run any appliance. It works just fine. But even small DIY EVs have a real charger too, which converts the AC from the cord to DC for the batteries. The charger plugs into the cord, but the charger is not the cord.
Because you'd need to use a word like "plug" or something, not because of whether it's "charger" specifically.
All you need then is a breaker, dryer outlet, and some thick gauge wire between the two.
We hope. I don't trust anything being sold on Amazon or any other such website known for scams, knockoffs, and otherwise shite products being passed for legit. I'm less concerned about the price of the components vs the quality of the components. You can have cheap quality but a high price just to fool people that expensive is good.
As with the misnomers about the "charger" terminology, I could appreciate a layperson getting this confused.
$40 HDMI cables are an option (albeit a terrible one). For EVSEs, there really isn't a reasonably-priced alternative on the market right now.
Just some things to keep in mind
It could drop at any time due to, for example, many chargers being connected to 1 circuit and the chargers coordinating with each-other to load-balance their connected vehicles (everyone gets their fair share), or it could be tied to solar PV generation so that charging doesn't import from the grid; the available current will change with how much excess PV is available, etc.
A well-engineered EVSE will notice when the EV is drawing more than the EVSE wants it to. It should then open the mains contactor at this point; cutting the EV's electricity supply. It will also hold the control pilot low to signal a fault to the EV.
Not saying this is the case here, of course, but they could do something similar that way if they wanted to...
I do intend to add a second sometime, so that I can put the EVSE in my home automation UI as well; the version 2 of smartevse that I use does not have a network connection, but it can be connected to be controlled by a version 3 that does.
The box in that guy's build is outside and could probably burn to a crisp without hurting anything else. I suspect it would not hurt anything even inside a garage, other than making a lot of smoke and setting off smoke detectors.
It's surprising that we have such cavalier attitudes when it comes to our own field, but so much fear and magical thinking about the power of government oversight when it comes to everything else...
You must be new to HN. Let me introduce you to the two types of comments:
1) The problem I am responding to does not involve software. The people in that industry must not be competent. Therefore, the solution is more government regulation.
2) The problem I am responding to involves software. Everyone in my industry is highly competent and moral! Therefore, let the free markets operate and the problem will automatically disappear.
Just no? That analogy is EXTREMELY strained. From his own link: A word about safety. I’m not an electrician. I’m not allowed to make alterations to my consumer unit.
I let my kids play outside all the time solo and with friends without supervision. On the flip side, I don't do things like design my own L2 charger because it violates several codes, would nullify my homeowners insurance, and could quite literally land me in prison should I mess it up and cause a licensed electrician to die because I did something dumb or cause my car to start on fire killing my family.
Do I do my own wiring? Absolutely.
Would I mess around with attaching something at 240v that I made from scratch that could burn my house down and kill my family if I do it wrong? Nope, I'm good.
It's funny how we reach a society where you need government as a babysitter and tell what you can do and whatnot.
> Would I mess around with attaching something at 240v that I made from scratch that could burn my house down and kill my family
It's also funny how those people readily plug in any consumer device they buy on amazon, which is assembled in china/india without any thought about safety.
every code regulation is written is blood. the inconvenience is designed to prevent people burning their house down or worse.
It almost certainly wouldn't.
Generally speaking, in the United States, homeowners insurance "covers stupid".
DIY electrical wiring, and the like, would be covered unless something was intentionally or maliciously negligent.
If you miswire a three-way lightswitch (in good faith) and (somehow) burn your house down, that is generally covered.
What is up with this common refrain? One of the main functions of insurance is to indemnify you against your own negligence. Let's say you turn a small stovetop fire into a house fire by trying to put it out with water - the insurance company doesn't just get to stiff you because you were responsible for causing the problem. Are there actually prevalent and enforceable weasel clauses about DIY work in some areas, or is this a scare story popularized by oversocialized redditors fantasizing about what might happen, or what?
And if you think about it, such an exclusion would be crazy. The average homeowner is in no position to judge whether the work someone they hired does exceeds the scope of their license, or whether all the details of the work that need a permit get one, or whether work any work that doesn't get inspected is in fact done to code. Furthermore, the average homeowner isn't the original owner of their house, and is in no position to know what tomfoolery the prior owner might have done.
For those of you out there that are certain that DIY electrical work voids your homeowners insurance, can you prove any evidence to support your claim? A local news story about a guy whose homeowners insurance denied him because he DIY'ed something in good faith? A FAQ page from an insurer that says that DIY'ing something voids the insurance? Anything other than a vague reference to there being a lot of words in your policy and it gets interpreted through the lens of an enormous body of caselaw and the insurance company can afford more lawyers than you?
Insurance regularly pays out when people do stupid stuff and cause a loss to their own insured property, as long as they weren't trying to do damage. Doing stupid stuff that happens to involve electricity doesn't seem any different to me. And frankly, building your own L2 charger after much research and thinking about the safety aspects seems like a far cry from a "here hold my beer" moment.
An intentional or reckless act wouldn't be insured if it directly causes a loss, but anything else is. There's no exclusion for doing things that are illegal other than illegal substance manufacturing, and I'm pretty sure I didn't miss anything because the whole policy is 12 pages, including the cover and table of contents.
Electricity regulations wise, it's legal for me to do anything that plugs in to a socket. If I owned and occupied the property it's legal to do anything that doesn't require moving or adding a fixed cable to the consumer unit. Adding new fixed cable runs required a licensed electrician to sign them off before energising. It's illegal to do DIY electrical work on a property if it's let to anyone other than family, unless it's certified by a licensed electrician.
It's reality? Installing an L2 charger requires a permit. You don't technically have to get one, there's no county police that goes door to door checking for improper/horrible EV charging installations. However, if your house burns down, and they see you decided to jury rig your own charger from piece parts, I can guarantee you with 100% confidence they're going to tell you to pound sand when you make an insurance claim.
On the off chance your home-made charger didn't start the fire, you can spend a decade fighting them in court. But you'll probably lose.
So two funny things about this in UK law - the law doesn't say who is allowed to work on your consumer unit, you can do it by yourself if you wish. What the law does specify is that the work has to be certified by a "competent person" but then doesn't actually narrow down what a "competent person" means. Local regulations might, but the UK law on this does not.
No. You can't touch the consumer unit, and there's a restricted zone around bath/shower for example (by distance), but most things a homeowner might want to do are perfectly legal to DIY.
> the US, but the UK is noticeably more safety-obsessed.
Crikey, are you joking? Internet forums are awash with US concern over 'code', and to extend beyond electricity: food safety, FDA guidelines, all sorts of common senseless rubbish.
It isn't uncommon for people to be scared when they learn I wired my home which has a 400 amp service. I wired the previous two also. Sure electricity could kill me, burn me, burn down my house, etc., but I don't have to be the one to discover how it works. People have done that and there are building codes to follow that are build upon a whole bunch of previous failures.
We all learn different things and are at different places. I can wire my whole house and pass inspection, but I'd never take on this project, that is beyond me - but more power to him for trying. I agree, nothing wrong with some DIY that at most will go up in smoke.
And I have a large number of items that either came with my house or I purchased legitimately that could absolutely burn it to the ground. It's all measured risk.
When I get an EV, I'll be adding a consumer grade charger to the house. And then I'll trust, with zero actual knowledge, that it won't burn down my house, or that my car won't.
It's also my experience that if you have the know-how, you can often do a better job than the professionals you hire, or the factory that mass-produces a product for the highest possible margins.
The leaps here are way too big.
>I'm disappointed at the anti-DIY sentiment
How would you feel about a "DIY House Circuit Breakers" project?This is essentially the equivalent. Total insanity.
So? The system that controls the relay (with logic to prevent exposed high-voltage contacts while the car is unplugged, or danger if the cord is damaged or immersed in water) is just as safety-critical as the relay itself.
> "didn't use a GFCI or AFCI breaker where one is required, but did try to address the same safety hazard those breakers address, in a way that wasn't as good as such a breaker
Stop right there. What you describe is automatically incompetent, all by itself.
Seriously, don't do this ever. There are extremely good reasons why anything but certified, unmodified hardware is illegal to install in electrical wiring. There are equally good reasons why you can't omit required safety hardware, even if you "tried" with something else.
These laws are written in blood.
But I appreciate he didn't put this in his garage. However, even hooking it up to the CU is not something some random guy should be doing: https://www.speakev.com/threads/a-cautionary-tale-of-severe-... (this one was probably due to not-adequately tightening the terminals, would you even think/know as a DIY'er?)
Doing & making things (within reason) is the essence of human experience. Buying all the things is the essence of consumerism.
I just think it's a good principle that someone older than me shared with me a long time ago, in an electronics hobby store that no longer exists, when I was buying parts to build a bench power supply, though I had to discover some reasons the hard way.
I thought they were being an ass at the time, so I plowed ahead with my project, and realized halfway thru that this project was pretty dumb and I should have just bought one and moved on to a better more interesting project.
Yikes. Get some 5 watt resistors.
2. If it's outdoors, at least spray the electronics with Fine-L-Kote or similar to keep water vapor out.
3. Those relays look undersized for the load. Look at Grainger for similar ratings. Do not buy power relays on eBay or Alibaba. Current ratings there tend to be wildly exaggerated.
4. Er, overcurrent protection? An approved circuit breaker?
Granted the article notes it appears to be largely a resistive load, but I would want data sheets on the car/charging requirements, not measurements, to ensure this is true 100% of the time. Maybe the car has an AC compressor or a pump to cool the battery during charging, which draws directly from the charger when plugged in. You might not see that doing a few random measurements because it turns on only after some time or if someone is sitting in the car.
It turns out that the engineers who designed J1772 thought a fair amount about how to handle the connect/disconnect concerns that you raise (via the pilot signals and proximity microswitch) and they didn't just leave it to EVSE designers to YOLO it.
> I would want data sheets on the car/charging requirements, not measurements, to ensure this is true 100% of the time
The "datasheet" that you want is the J1772 standard. There are many free summaries of it, including https://openev.freshdesk.com/support/solutions/articles/6000... Scroll all the way to the bottom and read the section on "Proximity" to understand how the relays are not disconnected while large currents are flowing.
No it doesn't. A/C compressors in EVs are 3 phase AC powered by an inverter supplied by the traction battery.
The contactors in an EVSE open and close at practically zero current, the OBC ramps the current up or down accordingly. And as another sibling comment noted, the OBCs are PFC corrected and act as a largely resistive load.
This brings me to my second point: I don't see a cycle rating on those relays from the datasheet provided. Most relays are rated for ~1M cycles, some for ~10M or more, but beyond that solid-state relays start to be a thing. And so, I question if people are using mechanical relays to chop 50/60Hz AC power, which from my 30 seconds looking at the article/schematic appear to be what is happening here... That seems crazy to me, and I imagine it requires some exotic contacts in the relays to avoid failure in short order, which these relays don't appear to be. The data sheet mentions they are used for chargers/solar inverters/etc but that doesn't mean they are used at 50/60Hz cycling but likely just as a disconnect/power on function which cycles once per charge/day/etc.
Then again, I don't really want to be this guys neighbor since chopping an AC line with that much load is going to generate an insane amount of noise, and I don't see anything in the circuit designed to damp it either.
The real problem here is DIY RCD with microcontroller in the loop. The soldering on the high voltage wires is absolutely horrendous and if those come loose and the enclosure or chassis becomes live you are trusting your life on the atmel interrupt delay and software. Good luck!
Edit: it's not even an interrupt, its just part of the Arduino loop(): https://github.com/fotherja/EV_Charger/blob/main/EV_Charger....
If you're trained, experienced, and generally know what you're doing there's nothing wrong with working on high power electronics.
Congrats to OP on a clean project
source: electrical engineer who writes high performance software you’ve definitely have used
So a Show HN project that's purely software effectively is worth $0, because the creator made it in their free time, instead of spending that time playing video games or watching TV or whatever. And a Show HN project with a lot of software running on a RasPi effectively costs only what the RasPi cost the author.
Here, people are complaining about the actual hardware cost to the creator, not the creator's time spent, which you're also ignoring.
In comparison, hardware projects have costs even if the 'hard work' is done: PCBs to buy, components to assemble, parts to purchase. Even BEST case here, and discounting peoples time, it looks like the cost of all the components listed would be in the neighborhood of $200. And that assumes you can source the same 'demo' cable that the OP purchased for the same cheap price. Realistically I bet actual costs would be $300+
I have nothing against DIY hardware projects, the problem is that hardware projects must pass a much higher bar: you have to be cost competitive at a minimum with existing products on the market, or you need to be better in some way (and, that way can be trivial, as long as it's interesting). This appears to be neither.
Stuff like this is absolutely what I would consider "worth" paying a professional to do. Especially since buying a retail unit/paying a professional to install it will come with warranties.
Maybe we need a few to burn their own houses down to act as a deterrent and encourage others to stay in their lane.
I’ve installed 3x 240V 60A EV chargers, was a cakewalk. I didn’t build my own in this case since I was going for an aesthetic match.
Meanwhile you can enjoy paying some alcoholic $1000 for 30 minutes of work to:
* pop out a hole on the back
* Tap and install 2x screws into studs
* pull 3 wires 6” through, wrap around the strain relief, strip/insert/torque
* flip a breaker
It’s not rocket science, as long as you’re not a complete idiot and turn the breaker off before hand it’s completely safe. 240V isn’t even “high” voltage.
* Solar panels installed facing North in the Northern Hemisphere; rapid-shutdown switch installed inside a home; supply side of 240v connection to backyard office has male prongs; fence built with non-pressure-treated wood contacting the soil. The list goes on, and these are only the errors I've discovered in 20+ years of being a homeowner.
Second, what’s the material difference between a 40A circuit and a 60A circuit? A few extra hours overnight to charge?