View Single Post
  #1246 (permalink)  
Old 06-27-2012, 10:40 AM
ehsanco1062's Avatar
ehsanco1062 ehsanco1062 is offline
Senior Member
 
Join Date: May 2011
Posts: 169
Quote:
Originally Posted by Turion View Post
ehsanco1062

Below is the test code.
Run it ONE time, then check the voltage in your cap. You want 48-50 volts. Then short your cap out/ ( I connect jumpers to my cap and short the ends of the jumpers together...don't short against those aluminum terminals on the cap because they won't last!

Then change the code according to Matt's directions

Drive Serial switch
' {$STAMP BS2}
' {$PBASIC 2.5}

SW VAR Word 'Serial Switch count
SW = 0

DO UNTIL SW = 1 '
PULSOUT 0, 10 ' '
PULSOUT 10,10 '
SW = (SW + 1)
LOOP

You can change the value of SW ( that controls how many times it runs the loop)
You can change PULSOUT 0, 10 (change the 10 to a higher number increases the length of pulse
You can change PULSEOUT 10,10 (change the second 10 to a higher number changes the amount of time BETWEEN pulses.

Read Matt's directions or ask me. It's pretty simple.
Dave

Oh, and about the batteries...the reason Matt said to take the top off the batteries is because when you are hitting them with high voltage like this, you can boil them and that could cause them to explode. You won't know that is happening unless you can SEE it, so I would be very careful using sealed batteries. I take my setup outside to run it because I don't want those battery fumes in a confined space lake my tiny basement where there is anything that could spark.
Hi Dave

Thank you ,now I know about the code and the battery and also the cap you explain every thing that any one can understand it easly .
My problem is I live in an apartment so that will be too risky and I cannot do the test outside so I have to take all the security measurement to do it at the apartment .

Ehsan
Reply With Quote