The thing Im most proud of so far/ switchin bike with relays

Get all your technical information about electric bikes here.

The thing Im most proud of so far/ switchin bike with relays

Postby auraslip » Thu May 17, 2012 10:07 pm

I've wanted to do this for a year or so, and finally got around to it on my newest build.

Image
All activated by a single keyswitch!

3 cell logs, 2 temp sensors (one for motor and one for controller), and on back lit clock. The two button pcb beneath the clock is to set the clock.

Image
Box was made from balsa wood.
Had to use a pcb board from radio shack because the pins on the 12v relays looked a little bot flimsy.

Image

Bottom is plastic sheeting from online metals.com
I'm a little worried about water proofing here. The hole isn't small enough to be sealed by the tube. Need to figure something out.
The top is to be made from clear plastic from lowes.

Image
Already a rats nest and only half the battery pack is installed :roll:

Here is a huge tip which I wish I could follow, but make the wiring harnesses last so you won't have extra wiring to deal with!
I swear though there is like 1000ft of wiring on this bike. It makes me really realize how complex the wiring must be in automobiles. I had a temp job at a place that specilized in making harnesses for military aircraft. And that was it. They had hundreds of people on the floor meticulously assembling the harnesses on giant boards with the proper layout pre-printed on paper tacked to the boards. Wow, blows my mind. You could wire a residential block with the wiring in one plane.

Ebikes are easy. Ebikes with lights, chargers, and electronics are a whole 'nother ball game :twisted:
Last edited by auraslip on Tue May 29, 2012 9:47 pm, edited 1 time in total.
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby DAND214 » Thu May 17, 2012 10:20 pm

I like it!

How big is it?

Dan
It sure would be nice to know where we are all located, ON THIS WORLD.
Fill in your profile. It doesn't hurt.
I know some worry about being found.
I wish someone would find me.
DAND214
100 kW
100 kW
 
Posts: 1236
Joined: Sun Aug 10, 2008 8:28 pm
Location: Chicagoland nw suburb Mt. Prospect IL.


Re: The thing I'm most proud of so far

Postby auraslip » Sun May 20, 2012 3:37 pm

First problem. The controller enable line is shorted! I've traced the short back to relay.

http://www.mouser.com/Search/ProductDet ... 5A5503A201

The spec sheet says the relay can handle up to 200vdc, so I don't know what could be wrong?

Could the spark caused by the connection be the cause?
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby texaspyro » Sun May 20, 2012 4:44 pm

auraslip wrote: They had hundreds of people on the floor meticulously assembling the harnesses on giant boards with the proper layout pre-printed on paper tacked to the boards.


All women, I bet... dudes can't do that...
texaspyro
1 MW
1 MW
 
Posts: 1539
Joined: Wed May 12, 2010 6:53 pm

Re: The thing I'm most proud of so far

Postby hjns » Mon May 21, 2012 5:06 am

Nice work. But it is BIG. Can't you reduce the size a bit? And how did you plan for all the wires?

I am trying to do plan for a full rewire of my bike, in such a way that I can easily troubleshoot and/or replace a component if necessary. Planning for all the wires is now really a challenge for me....
Henk

High speed commuter w/ modified Lyen 18 FET 4110, 12AWG traces, extra Caps, beefed up shunt, modified Cromotor w/ thermistor, 10AWG phase wires. CAv3B22 with power-throttle limited to 8kW and 130oC motor winding temp, w/ GPS-enabled CA analogger. 20S 13.5Ah Lipo Zippy pack. Fusion FS frame, Fox RL rear shock, Fox F100 front fork, Schwalbe Fat Bob tires, HALO SAS 26inch rims with custom 12G(r) and 14G(f) black Sepim spokes from JRH and laced myself.
Commuter Cromotor build
User avatar
hjns
100 kW
100 kW
 
Posts: 1060
Joined: Sat Aug 20, 2011 11:05 pm
Location: Basel, Switzerland

Re: The thing I'm most proud of so far

Postby Tom L » Mon May 21, 2012 7:19 am

auraslip wrote:First problem. The controller enable line is shorted! I've traced the short back to relay.

http://www.mouser.com/Search/ProductDet ... 5A5503A201

The spec sheet says the relay can handle up to 200vdc, so I don't know what could be wrong?

Could the spark caused by the connection be the cause?


How much current is the relay switching? Looking at the data sheet it's only good for breaking 0.55A @ 200VDC. If it's more than that, then yes, you could have welded the contacts.

What's more is that the the UL rating for switching 200V is only 0.15A (inferring from text and 30W load line on the graph).
Tom L
100 mW
100 mW
 
Posts: 45
Joined: Sun Jan 15, 2012 1:09 pm
Location: Tasmania, Australia

Re: The thing I'm most proud of so far

Postby auraslip » Mon May 21, 2012 2:34 pm

Thanks Tom. I'm not sure what the load is on these controllers 5v bus. It should be low, but perhaps the initial charging of the caps is enough to weld it shut.


The box really can't be made that much smaller or you won't be able to fit the components.
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby Tom L » Mon May 21, 2012 9:42 pm

If it's only 5VDC you are switching then the relay is good for breaking 3 Amps.
Tom L
100 mW
100 mW
 
Posts: 45
Joined: Sun Jan 15, 2012 1:09 pm
Location: Tasmania, Australia

Re: The thing I'm most proud of so far

Postby auraslip » Mon May 21, 2012 9:47 pm

I'm switching 22s so 90v fully charged.
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby Tom L » Mon May 21, 2012 10:27 pm

Only good for 0.8A @ 90V. So if you have any sort of inrush current charging capacitors then you're in trouble.
Tom L
100 mW
100 mW
 
Posts: 45
Joined: Sun Jan 15, 2012 1:09 pm
Location: Tasmania, Australia

Re: The thing I'm most proud of so far

Postby auraslip » Mon May 21, 2012 11:07 pm

The caps are very small on the 5v buss, but I guess the in rush current is more than .8a. Certainly enough for a spark when plugged in.
It's odd because a standard 12v 5a keyswitch held up for a year in the function. Much beefier looking though.

I guess I need to find a bigger 12v relay! Radioshack has one for $5. Hopefully it'll work.
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby Tom L » Tue May 22, 2012 1:21 am

You just said you were switching 90v not 5v. I'm confused.
Tom L
100 mW
100 mW
 
Posts: 45
Joined: Sun Jan 15, 2012 1:09 pm
Location: Tasmania, Australia

Re: The thing I'm most proud of so far

Postby nonlineartom » Tue May 22, 2012 4:55 am

mounting your LiPo width ways, This means the frame box is atleast 175mm wide right? interfere with pedalling at all, feel like you are straddling a whale?
Commuter bike: 10T MAC Schwinn Panther Beach Cruiser on 12S LiPo, super stealth hill eater
Forest trail eater: Crystalyte 5306 KMX Viper with 24" wheel. 100A controller 18S LiPo
Pocket rocket: 8T MAC e-BMX 18s LiPo. Missile for testing to destruction
Summer ride: 8T MAC Kona Joe MTB / chopper / beach cruiser hybrid bike. 24" wheels and a lot lot of style.
--------------------------------------------------------------------------------
Respect and fear the ancient god LiPo and pray he is merciful.
User avatar
nonlineartom
1 kW
1 kW
 
Posts: 496
Joined: Sat Apr 30, 2011 3:44 pm
Location: Bradford, UK

Re: The thing I'm most proud of so far

Postby auraslip » Tue May 22, 2012 3:16 pm

You just said you were switching 90v not 5v. I'm confused.


The relay switches the enable line on the controller. The main leads are plugged in, but the controller won't function with out power to the voltage regulator that powers the 5v and 12v buss. I've decided this was much easier than manually plugging in the main power leads and using a precharge relay every time.


mounting your LiPo width ways, This means the frame box is atleast 175mm wide right? interfere with pedalling at all, feel like you are straddling a whale?


box is 6" wide. I have an extra wide BB from sickbikeparts. It allows the pedals to clear. It's not perfect, but you can pedal it just fine.
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby nonlineartom » Tue May 22, 2012 4:16 pm

That could store a LOT of Lipo that way, ever considered storing them length ways as groups of 3, any advantage?
Commuter bike: 10T MAC Schwinn Panther Beach Cruiser on 12S LiPo, super stealth hill eater
Forest trail eater: Crystalyte 5306 KMX Viper with 24" wheel. 100A controller 18S LiPo
Pocket rocket: 8T MAC e-BMX 18s LiPo. Missile for testing to destruction
Summer ride: 8T MAC Kona Joe MTB / chopper / beach cruiser hybrid bike. 24" wheels and a lot lot of style.
--------------------------------------------------------------------------------
Respect and fear the ancient god LiPo and pray he is merciful.
User avatar
nonlineartom
1 kW
1 kW
 
Posts: 496
Joined: Sat Apr 30, 2011 3:44 pm
Location: Bradford, UK

Re: The thing I'm most proud of so far

Postby auraslip » Tue May 22, 2012 5:45 pm

Storing them on their side helps a lot with wiring them up. Makes it much easier to service them too.
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby auraslip » Sun May 27, 2012 9:46 pm

Got a new 10a relay from radio shack. It's worked for a dozen cycles now even though it's only rated at 28vdc. I'm still gonna carry the jumper in my tool kit in case it fails. thanks for the help everyone.
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby auraslip » Sun May 27, 2012 10:11 pm

Well that didn't last long. Guess I need a beefier relay. What a PITA. Can anyone recommend one?
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby Tom L » Sun May 27, 2012 10:24 pm

There's something wrong. Your first relay should have been more than adequate if you are only switching the controller's enable line.
Tom L
100 mW
100 mW
 
Posts: 45
Joined: Sun Jan 15, 2012 1:09 pm
Location: Tasmania, Australia

Re: The thing I'm most proud of so far

Postby auraslip » Sun May 27, 2012 10:36 pm

actually I think it was only a 5a relay....
the spark is pretty significant when I manually make the connection, so I'm sure it could be welding it closed.

I'm thinking now maybe I could have a high value resistor always in place to across the enable line. enough to keep the caps charged but not enough to power up the bike. this is how some people recommend a precharge resistor should be done. how would I calculate the value of the resistor I needed?
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing I'm most proud of so far

Postby auraslip » Mon May 28, 2012 2:04 am

Ok, I'm looking at this stuff trying to figure it out and I don't know where to start.
Image
Here is the diagram. So the first cap gets charged immediately. At 90v with zero resistance it sees 90a for a split second. That's why the relays are frying.

So, what I'm thinking is that I need to supply enough current to this setup so that the caps can stay charged but not enough for the 7805 to function. The data sheet says the 7805 quisenct current is 5ma. So lets say we want 10ma to account for that standby current and a little extra to keep the caps charged. So ohms law says (90v/.010a)there should be a 9000k ohm or resistance (including the base and switched resistors) to drop the current down to 10ma. Then I should be able to use a a tiny relay.

Thoughts?
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing Im most proud of so far/ switchin bike with re

Postby auraslip » Tue May 29, 2012 9:49 pm

OK, so the resistor thing isn't going to work! I tried it with a 10k resistor, and the resistor got very hot and the setup was stilling putting out 2.5v on the 5v rail. Forgot ohms law to calculate power draw across the resistor. Almost 1w!

So I tried a 20k resistor. Which is half a watt of power across it still! And there was a big spark!

I may need a time delay relay!

edit: actually I guess I'll build something like this using a 555

Image
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Re: The thing Im most proud of so far/ switchin bike with re

Postby amberwolf » Wed May 30, 2012 3:51 am

If you are only switching the enable line, there should be no spark, as the caps will already be charged. :?

If you are switching the main power, you need a relay capable of the full current of the whole system under max load.
House Fire Updates Thread


Got a question that isn't personal or private? Post it in the forums, don't PM it. ;)

Wiki your techy info so it doesn't get old, lost and icky:
http://endless-sphere.com/w


Full-Suspension Semi Recumbent Cargo Bike - NuVinci MidDrive
Semi-Recumbent Recycled-Parts Cargo eBike: "CrazyBike2"
DayGlo Avenger, MkII
User avatar
amberwolf
100 GW
100 GW
 
Posts: 13697
Joined: Mon Aug 17, 2009 6:43 am
Location: Phoenix, AZ, USA, Earth, Sol, Local Bubble, Orion Arm, Milky Way, Local Group

Re: The thing Im most proud of so far/ switchin bike with re

Postby auraslip » Wed May 30, 2012 5:40 am

If you are only switching the enable line, there should be no spark, as the caps will already be charged. :?


you'd think that.... but in fact there is quite a big spark. The PSU on this board draws a bit of power, and the caps aren't tiny.
Image
User avatar
auraslip
1.21 GW
1.21 GW
 
Posts: 3646
Joined: Fri Mar 05, 2010 5:19 pm

Next

Return to E-Bike Technical

Who is online

Users browsing this forum: rp3 and 8 guests