Choosing a relay for AC charger

EDIT 2: Please, I really appreciate your help but some of you are answering without even reading the post nor the other answers. I just need an advice on what latching arduino operated switch I should buy, nothing more. Thanks.

Hello, I'm trying to choose a latching relay, preferably from the most famous chinese online store, but I actually just need a way to find it even if somewhere else.

The project

  • My electric motorcycle (Ovaobike MCR-S, 144V 9.6 KW battery) doesn't have a system that stops the battery charge, so I want to build one by opening or closing one of the wire inside the cable that goes from the outlet (220V AC) to the charger / transformer (1.2 KW) before it enter the charger, depending on the battery current level of charge.
    Let's say that at 80% battery I want to open the circuit so that no more current goes through and the charge stops. At this point, even the current to my arduino and the relay stops coming. The next time I power On the motorcycle, the Arduino resets the relay so that I can plug the cable again to charge, so I'm searching something that:
  • Acts as a switch to close or open the circuit (220V AC to 1.2 KW charger).
  • Is controllable by an Arduino.
  • Stays in the last state it was, even in case of power outage.

I've seen many relays and latching relays that turn back in the initial state in case of power outage, I think that every Songle module do that but I don't know for sure.

Can someone point me to a component or give me some links?

EDIT: corrections

Buy a suitable battery charger, you get them for ~ 20 bucks.

The battery chargers for a 9.6 KW battery of an electric motorcycle costs way over 20 bucks, and then I must put my hands on that and on the motorcycle cables and batteries. I prefer to use a Relay or similar component.

How will your Arduino know the relay state after the power has been restored?

Depends on the relay working logic.
If I have two separate triggers, one to open and one to close, I just close the circuit once the power is restored.
If I have only one trigger that goes flip flop, I have to store a variable in the Arduino so that it will check it once the power comes on again

Well, I guess we can hope it works. Just last week an electric motorcycle caught fire and now 9 people are without a home. Use fuses.

Thanks for the tip of the fuses

I still need the relay, though

I found this one that seems to correspond, can anyone confirm please?

https://it.aliexpress.com/item/1005004263318911.html?spm=a2g0o.productlist.main.49.13f35C3q5C3qPX&algo_pvid=beed1ae7-c67d-4d38-b11d-8cdc9eba87f3&algo_exp_id=beed1ae7-c67d-4d38-b11d-8cdc9eba87f3-24&pdp_npi=4%40dis!EUR!4.64!4.10!!!4.78!4.22!%402103850917316050738568545efbab!12000028562577961!sea!IT!3199098207!X&curPageLogUid=99PwKLa8SX0y&utparam-url=scene%3Asearch|query_from%3A

Better go for solid state relay like these:
https://www.aliexpress.com/item/4000085516128.html

I would like to, but as far as I know the SSR can't be latching

That's the part the arduino will have to handle - it needs a justification for its existence anyway :slight_smile:

and how does it work? does it keep charging until it catches fire?

The Arduino checks the battery charge and decides when to shut off the relay. It also does some other things. Also without power neither the arduino nor the relay will work so it must be latching

I don't know, but I leave it too much time charging it reports an error. Also I can't decide at which battery level I want it to shut off. I just need guidance on which relay or other form of Arduino operated switch to use

I assume that the charger draws gradually less current when the battery is almost fully charged. You could measure mains current to the charger, and switch off mains power when that drops below a certain value.
Leo..

Why do you need latching?

Can't the controller hold the relay on while charging, then turn it of when final charge conditions have been met?

What model/make is the charger?
Can you please post some images of the charger?

Tom.. :smiley: :+1: :coffee: :australia:

Ok, I see. But is it normal? Maybe it's not working fine. All the bicycle chargers I have seen report the charge level and stop charging without issues. Cars also.
It sounds even dangerous, instead of an error who knows what could happen someday.

... and if your battery is in fact LiPo (as practically all are) and your charger does not stop charging then you are up to a firy surprise sooner or later 'cause either your charger is malfunctioning or the battery pack is.

I already read the battery status through the CAN bus, no need to touch inside the motorcycle (also don't want)