GoldenMotor.com Forum

General Category => Magic Pie & Smart Pie Discussions => Topic started by: Magzy on September 20, 2010, 01:48:25 AM

Title: Sparks when connecting battery
Post by: Magzy on September 20, 2010, 01:48:25 AM
I'm connecting a ping battery to the controller.

I'm getting a blue spark when I touch the connectors, is this normal?

there's also a "switch" cable connected to the negative (red) cable on the controller.

how do I utilise the switch  with a ping battery?

Also, just to double check, the "black" cable coming out of the external controller is the positive one right? (there's a label on the black lead  with a "+" on it)

I don't want to connect the wrong way and blow it.


Title: Re: Sparks when connecting battery
Post by: Cornelius on September 20, 2010, 06:03:44 AM
A spark are not uncommon, but...

It's very rare that the black are + and red -; it's usually red that is the positive and black that is negative...
Doublecheck and triple check this before proceeding; it might be wrongly labeled.
Check the labels on the controller itself where the + and - leads are connected...
Title: Re: Sparks when connecting battery
Post by: Dummy Dave on September 20, 2010, 06:40:09 AM
A spark are not uncommon, but...

It's very rare that the black are + and red -; it's usually red that is the positive and black that is negative...
Doublecheck and triple check this before proceeding; it might be wrongly labeled.
Check the labels on the controller itself where the + and - leads are connected...

Yes, the colors are strange.  But we have a member on this forum who ignored the +/- labels and melted a connector.  In his case, the +/- was true, the colors were not.
That was quite a while ago...  Maybe we can hear from someone who knows how it is wired now.

I think they all spark to charge the capacitors.  There was a clever post showing a resistor to slow the current during that charge.  Search the archives.
Title: Re: Sparks when connecting battery
Post by: Magzy on September 20, 2010, 08:07:51 AM
I can confirm that as of last week a new MP with external controller ships with the black cable labeled as "+". (which goes against all EE principles)
However, I recall seeing a thread on here somewhere that this is the case.

I was just worried about the sparking but I just googled the "correct" procedure fo connecting a battery and it's positive FIRST then Negative.

I was connecting negative first, then positive.

can anyone say anything to the contrary?

Title: Re: Sparks when connecting battery
Post by: Dummy Dave on September 20, 2010, 08:29:50 AM
I can confirm that as of last week a new MP with external controller ships with the black cable labeled as "+". (which goes against all EE principles)
However, I recall seeing a thread on here somewhere that this is the case.

I was just worried about the sparking but I just googled the "correct" procedure fo connecting a battery and it's positive FIRST then Negative.

I was connecting negative first, then positive.

can anyone say anything to the contrary?



On a negative-ground system, you're right; it's best to connect the positive first, so that you don't accidentally arc against bare metal with the positive lead.
Either way, the capacitors will charge and draw lots of current for a short time.
Bikemad posted a clever solution back in March.
I found that link: http://goldenmotor.com/SMF/index.php?topic=1834.msg9558#msg9558
The resistor would work on whichever lead is connected last.  The only time it's in the circuit is when you are actually making the connection.  Just make sure it can't short out against anything (like the frame). :^)

Title: Re: Sparks when connecting battery
Post by: MonkeyMagic on November 17, 2010, 05:17:42 PM
Hey guys

Thought I would reinvigorate this topic and add a site I found searching around:

http://www.scriptasylum.com/rc_speed/_nospark.html (http://www.scriptasylum.com/rc_speed/_nospark.html)

And this -->

http://endless-sphere.com/forums/viewtopic.php?f=2&t=18572#p332056 (http://endless-sphere.com/forums/viewtopic.php?f=2&t=18572#p332056)

Title: Re: Sparks when connecting battery
Post by: Leslie on November 18, 2010, 03:50:39 AM
I'm connecting a ping battery to the controller.

I'm getting a blue spark when I touch the connectors, is this normal?

there's also a "switch" cable connected to the negative (red) cable on the controller.

how do I utilise the switch  with a ping battery?

Also, just to double check, the "black" cable coming out of the external controller is the positive one right? (there's a label on the black lead  with a "+" on it)

I don't want to connect the wrong way and blow it.




Hi Monkey.


The best and easiest precharge circuit I have made is based on a solid state relay.  With a resistor set to allow 10ma and a small 10uf cap you can ramp up the voltage on the control inputs.

I literally can connect up the the relay inputs to the pack with pie attached via a connector and I get no spark, man I don't even need a switch.
Title: Re: Sparks when connecting battery
Post by: MonkeyMagic on November 18, 2010, 06:05:33 AM
Hmmmm sounds tasty

What kind of SSR are you using there Lesmeister?

Sounds like a charm!
Title: Re: Sparks when connecting battery
Post by: Leslie on November 18, 2010, 06:31:25 AM
Here is a diagram on my junk.  Um maybe not the right word anyway.

(http://goldenmotor.com/SMF/index.php?action=dlattach;topic=2492.0;attach=3620;image)

This has been been reliable for 500kms now. I have managed to get regen but not what I call a real test.  But on the heat sink it never even gets warm.


Funny when I originally connected the motor up and the pack was the last step and I didnt realise the relay was on.  I was getting this tiny spark when I connected the pack.  So I went to switch it on and, Oh it was already on.


Umm I though something was wrong.  Nope it works as a precharge protection for any connection before the relay control switch on or off.  Any connection after the relay will spark if the control switch is in on position.

Sometimes the CA catches the voltage ramp up on the precharge and I get min volts 12.7v and stuff.
Title: Re: Sparks when connecting battery
Post by: Leslie on November 18, 2010, 06:38:25 AM
Hmmmm sounds tasty

What kind of SSR are you using there Lesmeister?

Sounds like a charm!


Im using this one from the AE ebay dealer on Ebay.

http://cgi.ebay.com.au/Brand-New-Solid-State-Relay-SSR-3-32VDC-24-220VDC-40A-/370412364820?pt=LH_DefaultDomain_0&hash=item563e4c2414

This can have up to a 32v control current up to it.

I set it at 10ma I think about 7v, and that was good because I didn't have to use a big cap.

If you wanted to just use a resistor I would use about 4.5k and test the control voltage with probes.

The LM317L chip doesn't need a diode as there is no path to ground after the switch is opened.  I used one anyway.
Title: Re: Sparks when connecting battery
Post by: MonkeyMagic on November 18, 2010, 03:10:03 PM
Thanks mate, I'll pick up one of those for sure
And you're right, you would need about 5K for a 5v @10Ma sink. Do you know if your LM317 draws any current?

I have a circuit in mind, driven by a PIC that I can update as necessary. What is will do is basically switch output pins on a delay, and input pins will check for voltages present etc. ensuring there are no mishaps.

Not trying to go crazy, but the setup will include 2 x 6S1P25C/5Ah (long LiPo packs I got the idea from Alans mention of hobbyking in another post).

Sniffing around I found a reverse polarity protect circuit and a precharge circuit using a relay to switch. I basically just joined the 2 together after a delay switched relay circuit I came up with (that could be driven easily by NE555 and 2 push buttons but I'll use a PIC with GUI)

Although there looks to be alot of relays here, they can be changed to a handful of fets but I chose this because I have some decent 30A relays that I feel won't have a problem with the current passing through them at full power. Relay rating is for a switching current. As the bike will be stationary, or zero throttle/load I'm tipping this will be okay. I won't be switching them with any substantial current passing through them.

There is already a latching relay built into the GM battery, so the code will just check there is not voltage present on the GM battery output before attempting to switch on the backup packs. This will eliminate any worry of both the packs switching on at once, and stop any problem should R6 fail for some reason, and both battery sets arch and connect.

Anyways, what do you think of this? Still needs a few things added...

far left -> series/parallel switched relay circuit (relay coil connections removed to read easier)
middle -> reverse polarity protect
far right -> precharge auto switch on

Why?
-Switches between backup packs and gives option to series/parallel connect matching packs
-Can use 3 completely different packs altogether, and switch between them individually
-Parallel mode for matching packs for greater range
-Can use battery monitors to auto switch off depleted pack and switch to fresh pack without having to touch anything
-No sparks lol my Anderson connectors are covered in ox

Estimated current draw from added components (relays switch with around 10mA)
-> GM battery = 0
-> Backup battery series/single mode = < 50mA
-> Backup battery parallel mode = <100mA

Parts I need:
3 fets I have all the rest gathering dust
The battery from hobbyking (around $100 or so for both)

Compared to buying a frog pack for backup, I put my hand scales in the air and $270 for a 10Ah 24V I can guarantee will have a far less discharge rating than 25C. My thought is to use the backup pack for takeoffs/hills and switch to the GM pack everywhere else. I assume I can near double my range ;)

Not tested at all, and I'm sure I'll find some discrepancies in my circuit.... It's a fun experiment!

MM
Title: Re: Sparks when connecting battery
Post by: Cornelius on November 18, 2010, 05:32:29 PM
Just out of curiousity MM; which pic do you favor?

I've fallen in love with the PicAxe pic's http://www.rev-ed.co.uk/picaxe/ (http://www.rev-ed.co.uk/picaxe/); it's so simple an yet so flexible... :)
Those, and some Xbee's? ;D http://www.digi.com/products/wireless/point-multipoint/xbee-series1-module.jsp#overview (http://www.digi.com/products/wireless/point-multipoint/xbee-series1-module.jsp#overview)

Title: Re: Sparks when connecting battery
Post by: MonkeyMagic on November 18, 2010, 06:11:08 PM
I guess it depends on the application. I'm no super wizz at PIC's but I do know BASIC to some extent, which allows me customise my projects.

Really I just use rs232, LCD interface and interrupts from a variety of input sources such as push buttons or incoming data, voltage readings etc. So I'm not really into some of the newer chips that have huge memory, ethernet or web interface etc. I still use old 16 & 18 series hehe

The PicAxe are awesome but I don't really like spending the coin on those. Plus funny enough a heap of the gear comes from UK and I pay a bit for shipping that way. Same story in retail stores (australia).

So I opt for PIC's such as 16F628A or 18F877 or similar. They go for around $10 so I go with those :)

During testing there is always the risk of burning one for some reason so I buy 2 every time I make a project haha I still have some I can use for this. Anyways they are a good hobby to have, and everything you do makes you think to yourself (I wonder if I can fit an LCD in there and do this blah blah blah) lol

MM
Title: Re: Sparks when connecting battery
Post by: Cornelius on November 18, 2010, 11:34:50 PM
I guess shipping from UK to AU would be higher than to here (Norway; £5) but the picaxe's themselves are cheap, ranging from £1.70 to £5.50... I ordered 10pc of the 08M when I first ordered; that way, I have some to play with, and some to burn (as you said. ;) Though, they're tough, I haven't toasted any yet... :) ), and it justified the shipping ;)

And you're right; i'm often thinking 'hey, that would be a nice job for a pic...' ;D My latest project are a temperature compensated dumpload controller for my windgen... ;) (using an DS18B20 digital temp sensor which the picaxe have native support for... )

Edit:
Sorry Magzy; didn't mean to hijack your thread. :) (Though, your questions has been answered... ;) )
Title: Re: Sparks when connecting battery
Post by: MonkeyMagic on November 19, 2010, 03:36:02 AM
Corni what have you done you have me looking at PicAxe's now!!
Lol I should be finishing my build


Magzi --> your google search is right. Negative connected first as this is 'GND' and generally connected to a chassis or earthed through the power line.

This means that hooking up negative first, and then positive reduces any problem whilst powering up a device.

It won't really matter what you connect first with the PIE as it is not earthed (the spark is the sound of the electricity current 'jumping' Across the terminals, at the speed of light, obviously breaking the air creating the 'zap' sound)

Also has a bit to do with resistance. So something like 12KV and <1A would go BANG while our MP's have a 'click' sound.

This is weird > My front motor has a tiny spark when connected, plugging in the rear motor while the front motor is already plugged in will just about light up the sky!! It has a pretty big ZAPPPP I should record it.

I think I'll try one of Les's solid state relays and see how that goes, I plug and unplug my anderson connector which isn't really fun, and if I do it on the train before I get off everyone looks at me cos of the sound lol

Title: Re: Sparks when connecting battery
Post by: Leslie on November 19, 2010, 09:40:50 PM
Thanks mate, I'll pick up one of those for sure
And you're right, you would need about 5K for a 5v @10Ma sink. Do you know if your LM317 draws any current?

I have a circuit in mind, driven by a PIC that I can update as necessary. What is will do is basically switch output pins on a delay, and input pins will check for voltages present etc. ensuring there are no mishaps.

Not trying to go crazy, but the setup will include 2 x 6S1P25C/5Ah (long LiPo packs I got the idea from Alans mention of hobbyking in another post).

Sniffing around I found a reverse polarity protect circuit and a precharge circuit using a relay to switch. I basically just joined the 2 together after a delay switched relay circuit I came up with (that could be driven easily by NE555 and 2 push buttons but I'll use a PIC with GUI)

Although there looks to be alot of relays here, they can be changed to a handful of fets but I chose this because I have some decent 30A relays that I feel won't have a problem with the current passing through them at full power. Relay rating is for a switching current. As the bike will be stationary, or zero throttle/load I'm tipping this will be okay. I won't be switching them with any substantial current passing through them.

There is already a latching relay built into the GM battery, so the code will just check there is not voltage present on the GM battery output before attempting to switch on the backup packs. This will eliminate any worry of both the packs switching on at once, and stop any problem should R6 fail for some reason, and both battery sets arch and connect.

Anyways, what do you think of this? Still needs a few things added...

far left -> series/parallel switched relay circuit (relay coil connections removed to read easier)
middle -> reverse polarity protect
far right -> precharge auto switch on

Why?
-Switches between backup packs and gives option to series/parallel connect matching packs
-Can use 3 completely different packs altogether, and switch between them individually
-Parallel mode for matching packs for greater range
-Can use battery monitors to auto switch off depleted pack and switch to fresh pack without having to touch anything
-No sparks lol my Anderson connectors are covered in ox

Estimated current draw from added components (relays switch with around 10mA)
-> GM battery = 0
-> Backup battery series/single mode = < 50mA
-> Backup battery parallel mode = <100mA

Parts I need:
3 fets I have all the rest gathering dust
The battery from hobbyking (around $100 or so for both)

Compared to buying a frog pack for backup, I put my hand scales in the air and $270 for a 10Ah 24V I can guarantee will have a far less discharge rating than 25C. My thought is to use the backup pack for takeoffs/hills and switch to the GM pack everywhere else. I assume I can near double my range ;)

Not tested at all, and I'm sure I'll find some discrepancies in my circuit.... It's a fun experiment!

MM


No the LM317 will only drop in volts over the output and requires about 2 or 3 volts (some watts) to keep it hard regulating the current.

But the relay is good like this.  It can take 32v on the control lugs so if you wanted to use a resistor you don't need make it too efficient.  As its pretty efficient anyway compared to non latching relays.

And that latching relay you put me onto is interesting.

I hook it up to an amp meter and it draws like 90ma or what ever on the sound of the switch the then drops to 14ma if you were to hold it there.  It like they go into low power mode.

They wont burn out like one may think they do if you don't have a pulse and use straight DC..
The LM317 chip is set to deliver no more of no less than 10ma regardless of the voltage but has a 37v limit to the v drop.

I use the resistor to drop to 22v @ 10ma and from there the LM317 will always give a healthy 10ma to the relay control lugs.

If the volts are high or low, still 10 ma.  This can save power as using just a resistor one may need to consider any rail drop that may occure during discharge and have to use more current to the control lugs so slumps do not risk shutting down the relay, like LVC.  You could set an LVC on these if you really wanted to.



I had this down working to 5ma but the SSR indicator led wasnt shinning too brightly.  I just upped the current until the SSR on led looked an acceptable brightness.  10ma has done the trick.
Title: Re: Sparks when connecting battery
Post by: Leslie on November 19, 2010, 09:50:27 PM
You always pass lots of current just when that spark hits.  Caps are terible at hitting on the reed in relay switches.

I think inrush to caps can be very high to the cap postshunt and before the shunt worse.

Usually engineers will use a low ohm wire wound resistor or thermister to limit in rush from damaging to caps like this or a similar ramp up to precharge.   In rush Limitation on the main rails is not practical in ebike applications.


The SSR is a good alternative and precharge is better and easier to implement.  It cant fail.


Caps are rated at how many high energy shots they can take when discharged and also how many shots they can take being charged like this, With the big crack spark really gives them a shock that is no better than shorting them outright.

IMO!

Cap failure can occure anytime over a year or two and your controller should follow. With the precharge, all the big capacitors are going to be treated much more gentle.  

Without precharge the better the current pathway (switch amp rating) the more shock the caps take.

I also think that without precharge SSR fets wouldnt take kind to the energy zap that the controllers take up when connected either.

My longest living controllers had precharge.  I think it made a difference over the long term.
Title: Re: Sparks when connecting battery
Post by: MonkeyMagic on November 20, 2010, 05:54:46 AM
Yup you're right but it's just the caps that suck the juice, it's inevitable unless you bring the voltage and trickle the current through first.

I should record a spark on my car when I connect the car stereo power cable linked to 3Farad of caps. That makes a BANG noise and lights up my boot lol

I'm thinking of linking them in series for the voltage and putting them on a seat post rack or something for quick boost lol they won't work well though...

Okay so LM317 can do some kinky stuff,

Les --- what do you think of my kinky circuit? Did you follow it? I was after some feedback man! lol
Title: Re: Sparks when connecting battery
Post by: Leslie on November 20, 2010, 11:19:30 AM
Hmmm the series caps is a bit of a stretch. as they will block any DC when discharged and behave as a flat battery would.  But they would drain till theyre flat but realy fast ..

But the backup pack switch is cool enough.  I still feel if you just shunt each pack with the correct resistance there should be no need to have the switches and you can use both packs at the same time.


Another option one can look at is using brushed controllers to controll you batteries outputs current.  They are excellent for this as they limit the PWM duty cycle which is current based.

Set LVC individually or wow use a CA with the throttle hook up to do the hard work for you, the concept of a CA's connected to the brushed controllers throttle logic, make ideas start to flourish in my head.
 
If you could get a PIC to utilise the throttle interfaces of 2 brushed controllers you certainly could prolly figure a way to use both pack at once and reap the rewards..

But I would go for a identical pack voltages between them so they can be shared..

A lot of work in your plans and I do hope it works for you.  But I think you could come up with something better again.