Hiya, folks.
Hope you all are doing ok.
I have a question about taking power from USB port and use for lighting on my e-bike project.
But first some background.
This project vas built last summer and I have quite a few kilometres on it by now.
Call it a rolling build if you will.
It started its life as a average MTB. 27 gears, dampers in front and disc brakes on both 26 inch wheels.
Then I bought a kit, a 1500W hub motor, a 45A controller, throttle, KT LCD9 and a 52v 20ah battery pack. All very much illegal to use here in Norway, of course. :wink:
Threw it all together and after a few teething problems, it ran quite ok. If a little on the slow side. Only 1840W reached the motor on assist 5 and full throttle upphill. And a max of about 50 km/h on level roads.
Nothing at all to write home about and quite disappointing, really.
So, next step was one more battery, another 52v 20ah, and connect both in parallel. That did help a lot, even if the bike got about 5kg heavier. Now I get about 2500w to the motor on full throttle, and I guess that is the max of what the 45A controller can give me. Top speed increased to a little over 60km/h but I limited back to max 55. It'll still do over 70 km/h down hill and that's WAY more than enough for this feeble, old man.
The batteries was attached side by side in the frame with velcro strips and I felt that was a little wonky. And looked odd too. So this year I have gotten a 3D printer and made a new, bolted, attachment rig for the batteries to fit better inside the frame triangle. I was even able to make a new box for the controller and locate it in another place so it looks a LOT better. Some new attachements for lights, display and other odds and ends have also been constructed and printed.
And now for the thing I would like some help with:
Since late in the summer it gets dark kind of early around here, I decided to get some lights on the bike. From the seller it was claimed that the controller had a light function that could deliver up to 150mA, and I kind of figured that would be enough to use as on/off power for a relay. And then run 5V from the USB port in one of the batteries as the main power to the lights. But no.. That light circuit gave up with a small fzz and a tiny smoke cloud and died. And so did the entire controller.
Nothing works if you let the smoke out, we all know that. And bogus info from chineese is nothing new either.
So I built the lighting circuit another way, and mixed together something with a dual light switch to have on/off and high/low beam functions. control from the brake lights was taken from the regen circuit switches on the brake handles and some relays. The dumb thing about that was that the regen stopped working all together. Only brake light from that time on.
The power to all of this was taken from a the USB circuit and it all worked like a charm.
Now I am rebuilding it all. Hiding a web of cables, constructing connection boxes and have also constructed a new tail light/reflex/brake light combo. Incredible what Fusion 360 and a 3D printer can do
I have also constructed a couåle of amber marking lights that goes inside the ends of the handle bars. Not much visible until they light up.
The thing is, even if all of this is just LEDs it's starting to draw some power. I've been told that the USB circuit can only supply 1.5A. So I was thinking: What if I used the USB ports on both batteries? I see a problem there right away. Power going from one USB port into the other battery via the USB port. We can't have that. Tried to ask the seller if the USB circuit was made in a way to let the power OUT only, not in to the battery from the port but the answer was ... Que??
So I stopped asking and just suppose that the power CAN go the wrong way.
So, Cables from USB circuits on both batteries connected together in a three way connection that goes on to the lighting system. Like a upside down Y.
Would it be enough to use a Schottky diode on each oth the Y's legs to prevent power to go across between the batteries?
Or would someone have a better solution? Mind you, I am also a bit of a newbie when it comes to electronics, or at least the calculations and stuff
As of right now I have 3 LEDs of 3.1v in the head light along with a few red in the rear and a couple of amber LEDs. And thinking about adding another 3, 3.3v Creel LEDS to the high beam. And it's no way to add more batteries for the head lights. No room. Even if I have the battery packs that they was delivered with.
I'd be very greatful if anyone had a good and rather easy to make, solution to the USB problem.
Hope you all are doing ok.
I have a question about taking power from USB port and use for lighting on my e-bike project.
But first some background.
This project vas built last summer and I have quite a few kilometres on it by now.
Call it a rolling build if you will.
It started its life as a average MTB. 27 gears, dampers in front and disc brakes on both 26 inch wheels.
Then I bought a kit, a 1500W hub motor, a 45A controller, throttle, KT LCD9 and a 52v 20ah battery pack. All very much illegal to use here in Norway, of course. :wink:
Threw it all together and after a few teething problems, it ran quite ok. If a little on the slow side. Only 1840W reached the motor on assist 5 and full throttle upphill. And a max of about 50 km/h on level roads.
Nothing at all to write home about and quite disappointing, really.
So, next step was one more battery, another 52v 20ah, and connect both in parallel. That did help a lot, even if the bike got about 5kg heavier. Now I get about 2500w to the motor on full throttle, and I guess that is the max of what the 45A controller can give me. Top speed increased to a little over 60km/h but I limited back to max 55. It'll still do over 70 km/h down hill and that's WAY more than enough for this feeble, old man.
The batteries was attached side by side in the frame with velcro strips and I felt that was a little wonky. And looked odd too. So this year I have gotten a 3D printer and made a new, bolted, attachment rig for the batteries to fit better inside the frame triangle. I was even able to make a new box for the controller and locate it in another place so it looks a LOT better. Some new attachements for lights, display and other odds and ends have also been constructed and printed.
And now for the thing I would like some help with:
Since late in the summer it gets dark kind of early around here, I decided to get some lights on the bike. From the seller it was claimed that the controller had a light function that could deliver up to 150mA, and I kind of figured that would be enough to use as on/off power for a relay. And then run 5V from the USB port in one of the batteries as the main power to the lights. But no.. That light circuit gave up with a small fzz and a tiny smoke cloud and died. And so did the entire controller.
Nothing works if you let the smoke out, we all know that. And bogus info from chineese is nothing new either.
So I built the lighting circuit another way, and mixed together something with a dual light switch to have on/off and high/low beam functions. control from the brake lights was taken from the regen circuit switches on the brake handles and some relays. The dumb thing about that was that the regen stopped working all together. Only brake light from that time on.
The power to all of this was taken from a the USB circuit and it all worked like a charm.
Now I am rebuilding it all. Hiding a web of cables, constructing connection boxes and have also constructed a new tail light/reflex/brake light combo. Incredible what Fusion 360 and a 3D printer can do
The thing is, even if all of this is just LEDs it's starting to draw some power. I've been told that the USB circuit can only supply 1.5A. So I was thinking: What if I used the USB ports on both batteries? I see a problem there right away. Power going from one USB port into the other battery via the USB port. We can't have that. Tried to ask the seller if the USB circuit was made in a way to let the power OUT only, not in to the battery from the port but the answer was ... Que??
So I stopped asking and just suppose that the power CAN go the wrong way.
So, Cables from USB circuits on both batteries connected together in a three way connection that goes on to the lighting system. Like a upside down Y.
Would it be enough to use a Schottky diode on each oth the Y's legs to prevent power to go across between the batteries?
Or would someone have a better solution? Mind you, I am also a bit of a newbie when it comes to electronics, or at least the calculations and stuff
As of right now I have 3 LEDs of 3.1v in the head light along with a few red in the rear and a couple of amber LEDs. And thinking about adding another 3, 3.3v Creel LEDS to the high beam. And it's no way to add more batteries for the head lights. No room. Even if I have the battery packs that they was delivered with.
I'd be very greatful if anyone had a good and rather easy to make, solution to the USB problem.