| Author |
Topic  |
|
theremart
Advanced Member
 154 Posts |
Posted - 21/08/2008 : 8:01:52 PM
|
I am SOOO happy now that I have my new code for my battery swapper. I have fought assembly language for months to learn how to program my pic, now that I have figured out how to do a timer, and com port, and control the relays, life is good. I am running my first test of swapping only 2 banks every 5 hours with my 13 amp hour batteries. ( before I had to load up all four banks )
Now that this is out of the way, I can now turn my attention to other areas, and just the the batteries swap themselves.
 
See my playground here --> www.youtube.com/marthale7
|
|
|
etgone
Starting Member

USA
1 Posts |
Posted - 08/09/2008 : 5:49:17 PM
|
Hey Mart,
I have been following your PIC Battery swapper before. Does this mean you do not need to use PIC for this and you are using the assembly language? Also, would like to do this project and have bought the boards/other parts. Do you have any drawing and close up pictures? Maybe you can do a how to segment on Youtube?
Thanks, ET |
 |
|
|
qez2
Starting Member

3 Posts |
Posted - 09/09/2008 : 11:23:30 PM
|
| what he said please |
 |
|
|
Eddiev1985
Average Member

USA
81 Posts |
Posted - 18/10/2008 : 03:44:26 AM
|
Hello my friend! Looks like you have several people wanting a circuit diagram for your swapper. You might even want to build a few to sell. I dont think I have the skills to build one.....do I? May be a trade is in order. How about a converted computer power supply to bench top use for your battery swapper? Or.....my old Farrah Fawcett poster?...HUH?? I'll even throw in a black light and an old roach clip! C-mon dude, you gotta want somethin.. LOL!! Eddie
|
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 18/10/2008 : 5:48:27 PM
|
quote: Originally posted by etgone
Hey Mart,
I have been following your PIC Battery swapper before. Does this mean you do not need to use PIC for this and you are using the assembly language? Also, would like to do this project and have bought the boards/other parts. Do you have any drawing and close up pictures? Maybe you can do a how to segment on Youtube?
Thanks, ET
Sigh, this took me MONTHS and MONTHS of hard work to get going, I will point people in the right direction, but I cannot hand hold. :) This project has alot of soldering, and
I am in debt to the dude buggy for his original program that got me going. After that I wrote my own program that allows me to use only two batteries instead of the 4 that dudebuggy requires. My program does not do as much as his program does, but it is nice to have full control over the relays.
Yes it is using a pic. I am not sure how to post attachments here, Dudebuggy was willing to give up his code to the world so if daftman allows I will post the .hex file for dudebuggy's programming the pic.
I will also post my assembly language program so you can modify at will, but again, I think this is the best place to ask questions as I don't want to answer the same one several times, I have already had 10 people ask for the info :)
The downside to the battery swapper is the addition of more length of wire to the Bedini. The upside is sleeping at night :)
Helpful links
http://peswiki.com/index.php/Directory:Bedini_SG:Replications:Monsieur_Bonheur-SG#Feb._27.2C_2005_--_I_BUILT_A_BATTERYSWAPPER.21
Where I got my relays... I have built two of these one with the 9v one with the 12V.
9V http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=Z190-ND
12V http://www.surpluscenter.com/item.asp?UID=2008031418014841&item=11-2420&catn
See my playground here --> www.youtube.com/marthale7 |
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 18/10/2008 : 5:51:33 PM
|
Hmm I can't seem to find where to upload files...
See my playground here --> www.youtube.com/marthale7 |
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 08/11/2008 : 5:52:59 PM
|
Questions I have got about battery swapper ->
> What pic chip did you use (pic16f627a or pic16f628a) the latter has more memory.
I am using the pic16f628a
>What software did you use to compile and upload to the chip?
I used the free MPLAB.
>Where I am able to obtain the software (windows XP)?
Google mplab.
>How did you convert the serial 9pin to usb 2.0, did you just use the special cable or did you >use other custom cables and or if you did any special modifications on the development board to >accept usb.
To program I use a normal Com port, to operate it I use a cable I got from ebay, search for usb to com port. These are problematic best to just have a com port.
>The doc file you uploaded with the modified pic hex code, is that what you are currently using? >If not, could I get a copy of the latest working software from you?
The doc was something custom I made just for your info.
>How do I obtain details on what all the key strokes are to work the pic chip and check the >progress on my laptop?
R = Reset Memory A = Actual Status P = Print Memories S = Manual Swap + and - = Increase and decrease Time Swap in hours
See my playground here --> www.youtube.com/marthale7 |
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 08/11/2008 : 6:02:27 PM
|
Hello again, after some time of thinking through how i would make this switching circuit i decided to just make the original and learn how it works and then modify the circuit after i get it working. I listed the parts i have and what i dont have. Can you help me figure out what else i need to order? If you have anymore pictures please send them. I have a feeling this is going to be hard.
So far i have ordered these from sparkfun.com:
18 Pin PIC Development Board PIC 18 Pin 20MHz 2K - 16F628A Serial Port Programmer - ICSP Only Serial Cable DB9 M/F - 6 Foot Wall Adapter Power Supply - 9VDC 650mA
What i don't have yet:
>Relays: (?what kind?)
Depends on what you are doing, I have used both of these relays with success.
9V http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=Z190-ND
12V http://www.surpluscenter.com/item.asp?UID=2008031418014841&item=11-2420&catn
>diodes: (i have some 1n4007)
That should work on the relays
>resistors: (i have some 2n3055) that is a transistor, I got my resistors by searching for them on ebay.
pots: (?what kind?)
Get the ones called for on the schematic. I got the ones that are small and you use a screw driver to change voltage.
leds: (?what kind?)
Mine came from Radioshack.
>2) Am i missing anything else? Time will tell :) when you get the sparkfun board you will then compare that to the schematic given by dudebuggy, that will tell you what you need.
See my playground here --> www.youtube.com/marthale7 |
 |
|
|
Cyrus
Starting Member

2 Posts |
Posted - 08/11/2008 : 6:43:47 PM
|
Ah cool my message was posted here. :P
Sorry about the
">resistors: (i have some 2n3055) that is a transistor, I got my resistors by searching for them on ebay."
I meant to say transistors on that one. I do have the 2n3055 but that seems to be overkill as i was told by someone else.
Also i know where to get the parts (ebay, radioshack, digikey...), the problem im having is exactly what kind would i need.
1) What kind of transistor is recommended for this workload?
2) Resistors: how much resistance? If you look on the schematic from Monsieur Bonheur what exactly is R1, R2, R3... Im guessing this is the non-pot resistors i need to buy? So if i look at R5 it says 2k does that mean i need a 2k resistance? Will a 1/2 amp resistor be enough?
3) Leds: How many volts, does this not matter because it all relies on what resistor you use to step down the voltage for the led?
4) Relays: Should I use 9v DPDT since my power supply for the 18 Pin PIC Development Board is a 9v powersupply? or maybe if i use a 12v DPDT relay the 9volts from the power supply will be just enough to activate the relay..
My current progress on replicating this circuit has come to a halt because i have no clue whats going on in the circuit. I can build each part listed on there but connecting the wires together is another story. Ill have to sit down and make a new drawing with the connected parts and ill post it on here for you to check theremart.
I think if you answer the questions in this message I should be able to finally complete this.
Btw is dudebuggy the same person as Monsieur Bonheur? |
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 09/11/2008 : 05:19:50 AM
|
quote: Originally posted by Cyrus
Ah cool my message was posted here. :P
Sorry about the
">resistors: (i have some 2n3055) that is a transistor, I got my resistors by searching for them on ebay."
I meant to say transistors on that one. I do have the 2n3055 but that seems to be overkill as i was told by someone else.
Also i know where to get the parts (ebay, radioshack, digikey...), the problem im having is exactly what kind would i need.
1) What kind of transistor is recommended for this workload?
2) Resistors: how much resistance? If you look on the schematic from Monsieur Bonheur what exactly is R1, R2, R3... Im guessing this is the non-pot resistors i need to buy? So if i look at R5 it says 2k does that mean i need a 2k resistance? Will a 1/2 amp resistor be enough?
3) Leds: How many volts, does this not matter because it all relies on what resistor you use to step down the voltage for the led?
4) Relays: Should I use 9v DPDT since my power supply for the 18 Pin PIC Development Board is a 9v powersupply? or maybe if i use a 12v DPDT relay the 9volts from the power supply will be just enough to activate the relay..
My current progress on replicating this circuit has come to a halt because i have no clue whats going on in the circuit. I can build each part listed on there but connecting the wires together is another story. Ill have to sit down and make a new drawing with the connected parts and ill post it on here for you to check theremart.
I think if you answer the questions in this message I should be able to finally complete this.
Btw is dudebuggy the same person as Monsieur Bonheur?
The transistors are listed on the schematic that you need.
Yes you need a 2k. Just what it calls for.
I got the LED multi pack from radio shack ( has several colors ) It did not have voltages listed on the package I got.
The relays are your choice, but you need a 12V power supply for a reference voltage for the pic.
See my playground here --> www.youtube.com/marthale7 |
 |
|
|
hendo1944
Senior Member

Australia
123 Posts |
Posted - 09/11/2008 : 3:58:53 PM
|
Thank you so much Mart....certainly a huge learning curve here! The code you uploaded previously is already compiled in hex, so it must be ready to upload to the pic16f628a. Would it be possible to obtain the project file for the MPLab software and maybe change a few settings? The other problem I am having is Hyper Terminal. Mainly the settings and could I impose on you for these from you. As always, any help in doing what I have never done before is most appreciate....so thank you very much!
hendo1944
______________________________
quote: Originally posted by theremart
Questions I have got about battery swapper ->
> What pic chip did you use (pic16f627a or pic16f628a) the latter has more memory.
I am using the pic16f628a
>What software did you use to compile and upload to the chip?
I used the free MPLAB.
>Where I am able to obtain the software (windows XP)?
Google mplab.
>How did you convert the serial 9pin to usb 2.0, did you just use the special cable or did you >use other custom cables and or if you did any special modifications on the development board to >accept usb.
To program I use a normal Com port, to operate it I use a cable I got from ebay, search for usb to com port. These are problematic best to just have a com port.
>The doc file you uploaded with the modified pic hex code, is that what you are currently using? >If not, could I get a copy of the latest working software from you?
The doc was something custom I made just for your info.
>How do I obtain details on what all the key strokes are to work the pic chip and check the >progress on my laptop?
R = Reset Memory A = Actual Status P = Print Memories S = Manual Swap + and - = Increase and decrease Time Swap in hours
See my playground here --> www.youtube.com/marthale7
|
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 10/11/2008 : 2:42:12 PM
|
quote: Originally posted by hendo1944
Thank you so much Mart....certainly a huge learning curve here! The code you uploaded previously is already compiled in hex, so it must be ready to upload to the pic16f628a. Would it be possible to obtain the project file for the MPLab software and maybe change a few settings? The other problem I am having is Hyper Terminal. Mainly the settings and could I impose on you for these from you. As always, any help in doing what I have never done before is most appreciate....so thank you very much!
hendo1944
Correct the hex code is ready to be put on the Pic.
BUT!!,, before you can talk to the pic you have to solder a wire on RX and TX of the board else it will not work. ( for talking to the pic) Then the code will not work till you have all of the relays in place with transistors.
I do not have the source code for dudebuggy's code I only provided the hex file. I can give you my assembly language code, but it may be more of a challenge to read :)
The "TX" pad on the board should be connected to RB1 (pin 7) of the PIC and the "RX" pad to RB2 (pin Cool of the PIC. That will probably get you going. If not, try connecting the TX and RX pads together and see if Hyperterminal can see what it types (loopback).
See my playground here --> www.youtube.com/marthale7 |
 |
|
|
hendo1944
Senior Member

Australia
123 Posts |
Posted - 11/11/2008 : 9:26:20 PM
|
Thank you for your help..... I have managed to get the development card working, by going out and buying a USB to RS232 cable. I had to use ICProg to load the program to the pic16f628a. As you mentioned that I am not able to do much until I have all the relays wired in, I am ready to attack this and find the sketch of DuneBuggey very confusing. I do not wish to destroy the relays or the boards, so I am asking for a simplyfied explanation of what goes where. I belief that a few other TEEP members are building one as well, so this may help them also. Please view the bottom of my relay:
 What I want to find out is what gets wired where. If you could help me ,please with a simple to follow sketch what pin is connected to what for a relay as well as the pic16f628a, I would be most grateful. All this is a little out of my league, but I am willing to give it a good go. I can see that a lot of minute soldering is required, however understanding the wiring of the circuit is my problem.
Thank you once again for all your help....
Hendo1944 ______________________________
quote: Originally posted by theremart
quote: Originally posted by hendo1944
Thank you so much Mart....certainly a huge learning curve here! The code you uploaded previously is already compiled in hex, so it must be ready to upload to the pic16f628a. Would it be possible to obtain the project file for the MPLab software and maybe change a few settings? The other problem I am having is Hyper Terminal. Mainly the settings and could I impose on you for these from you. As always, any help in doing what I have never done before is most appreciate....so thank you very much!
hendo1944
Correct the hex code is ready to be put on the Pic.
BUT!!,, before you can talk to the pic you have to solder a wire on RX and TX of the board else it will not work. ( for talking to the pic) Then the code will not work till you have all of the relays in place with transistors.
I do not have the source code for dudebuggy's code I only provided the hex file. I can give you my assembly language code, but it may be more of a challenge to read :)
The "TX" pad on the board should be connected to RB1 (pin 7) of the PIC and the "RX" pad to RB2 (pin Cool of the PIC. That will probably get you going. If not, try connecting the TX and RX pads together and see if Hyperterminal can see what it types (loopback).
See my playground here --> www.youtube.com/marthale7
|
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 12/11/2008 : 11:32:19 AM
|
quote: Originally posted by hendo1944
Thank you for your help..... I have managed to get the development card working, by going out and buying a USB to RS232 cable. I had to use ICProg to load the program to the pic16f628a. As you mentioned that I am not able to do much until I have all the relays wired in, I am ready to attack this and find the sketch of DuneBuggey very confusing. I do not wish to destroy the relays or the boards, so I am asking for a simplyfied explanation of what goes where. I belief that a few other TEEP members are building one as well, so this may help them also. Please view the bottom of my relay:
 What I want to find out is what gets wired where. If you could help me ,please with a simple to follow sketch what pin is connected to what for a relay as well as the pic16f628a, I would be most grateful. All this is a little out of my league, but I am willing to give it a good go. I can see that a lot of minute soldering is required, however understanding the wiring of the circuit is my problem.
Thank you once again for all your help....
Hendo1944
You have made good progress.
Numbers off your relay
1 3 ---> Either Charge or Primary battery 4 6 ---> Connects to a battery of the bank 7 9 ---> Either Charge or Primary battery
A B ---> Trigger for relay must have diode and goes to transistor.
What you want to have happen is for all relays by default to have the relay on the charging side. Only if you apply power ( turn on the relay ) do you want the battery to be on the primary side. So take a look inside your relay and see which way pins 4,6 connect ( either to 1,3 or 7,9 ) the ones they connect to by default you want that side to be going to charging battery. So when the program runs it turns on the relay to the primary side and charges all the other in parallel.
See my playground here --> www.youtube.com/marthale7 |
Edited by - theremart on 12/11/2008 11:35:00 AM |
 |
|
|
hendo1944
Senior Member

Australia
123 Posts |
Posted - 12/11/2008 : 3:25:50 PM
|
Hi Mart, Thank you once again for your explanation....it is starting to make sense. On the relay pin 1 - 3 & 7 - 9 are obviously the same and you only use either one? I wonder if it is possible for you to take a clear picture of your wiring from under & top the relays as well as the development board. This would help in trying to understand what you are telling us. I noticed some of the resistors and small pots on the development board in one of your movies, but it disappears to quick to study it. With the relays, it would help also to see how you connect the wires to a connection block. You obviously have it marked battery 1 and battery 2 and also a section for power input to run all this. Having a few good pictures to study, would certainly help in getting it all together and hopefully work. As always, any help from you is very much appreciated and I look forward to have this swapper working. I am sure many of us have appreciated all your efforts in helping us and I just want to say that I hope one day some of us can return the favour.
hendo1944 ________________________
quote: Originally posted by theremart
quote: Originally posted by hendo1944
Thank you for your help..... I have managed to get the development card working, by going out and buying a USB to RS232 cable. I had to use ICProg to load the program to the pic16f628a. As you mentioned that I am not able to do much until I have all the relays wired in, I am ready to attack this and find the sketch of DuneBuggey very confusing. I do not wish to destroy the relays or the boards, so I am asking for a simplyfied explanation of what goes where. I belief that a few other TEEP members are building one as well, so this may help them also. Please view the bottom of my relay:
 What I want to find out is what gets wired where. If you could help me ,please with a simple to follow sketch what pin is connected to what for a relay as well as the pic16f628a, I would be most grateful. All this is a little out of my league, but I am willing to give it a good go. I can see that a lot of minute soldering is required, however understanding the wiring of the circuit is my problem.
Thank you once again for all your help....
Hendo1944
You have made good progress.
Numbers off your relay
1 3 ---> Either Charge or Primary battery 4 6 ---> Connects to a battery of the bank 7 9 ---> Either Charge or Primary battery
A B ---> Trigger for relay must have diode and goes to transistor.
What you want to have happen is for all relays by default to have the relay on the charging side. Only if you apply power ( turn on the relay ) do you want the battery to be on the primary side. So take a look inside your relay and see which way pins 4,6 connect ( either to 1,3 or 7,9 ) the ones they connect to by default you want that side to be going to charging battery. So when the program runs it turns on the relay to the primary side and charges all the other in parallel.
See my playground here --> www.youtube.com/marthale7
|
 |
|
|
teep
Forum Admin

United Kingdom
347 Posts |
|
|
theremart
Advanced Member

154 Posts |
|
|
theremart
Advanced Member

154 Posts |
Posted - 15/12/2008 : 07:36:43 AM
|
Here are some close up pics... What is needed to improve this is wire ties to keep down the clutter... But it works for me :)




See my playground here --> www.youtube.com/marthale7 |
 |
|
|
hendo1944
Senior Member

Australia
123 Posts |
Posted - 28/12/2008 : 3:46:04 PM
|
Well...what can I say.....I have tried heaps of things and the end result is that my battery swapper still refuses to work. I have had so many problems even after studying Dunebuggey's plans very carefully and then by placing the resistors and transistors on the development board. After I compiled the code I received and uploaded it to the pic chip, it gave me all indications that it is working correctly. I then proceeded to spend a lot of time making sure that the wiring on the 2 (two) relays was correctly connected to the development board. Having done all this, I was keen to test it, but before doing this, I wanted to set the 12v and 5v pots to the correct settings of 2.5v, which I did. Then I switched it all on and all indications showed it working correctly. The load was a set of lights, which took a while to discharge and when they did, the system was supposed to switch over, well it didn't. All I got was the points clattering for a short while, but no switch over. Thinking about this, I thought that because I drew the power feed of the battery that was depleting, it didn't have enough power to switch over to the next relay. So I tried again, only this time I drew the power from an other source, so I know that when the switch over was to occur, it would have the power to do it. Still no result. This is where I am today.

 I can fully understand now that Mart must of had a real challenge on his hands when he build his and that it took him quite a while to get it going. I am not giving up yet, for I feel that success is not far away and I can smell it. I just wanted to share my frustrations and hope that others, that are building this, have all the help needed to succeed in achieving a quicker result then what I have done. It is obvious that I am doing something wrong and will be drawing out the wiring schematic again of the relay's. I will post it below:

Hendo1944 View some of my projects at; http://au.youtube.com/hendojohn
|
Edited by - hendo1944 on 28/12/2008 5:55:07 PM |
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 29/12/2008 : 08:54:19 AM
|
Ok Hendo,
Some questions...
If you capitial s "S" when the program is up does it swap relays?
Do the relays trigger when you turn the power on?
FYI, the pots are not used in my program so they will have no effect on the swapping, my program is only time based.
Mart You are getting closer :)
See my playground here --> www.youtube.com/marthale7 |
 |
|
|
hendo1944
Senior Member

Australia
123 Posts |
Posted - 29/12/2008 : 3:12:30 PM
|
I will answer your questions below....in red.
quote: Originally posted by theremart
Ok Hendo,
Some questions...
If you capitial s "S" when the program is up does it swap relays?
NO...it has no response!
Do the relays trigger when you turn the power on?
YES...they do, I hear them click in!
FYI, the pots are not used in my program so they will have no effect on the swapping, my program is only time based.
I realized this and hence set my time to 1 or zero.When I connect to the computer, it lets me change time, as the numbers change. Using capital S changes a number but nothing else.
Mart You are getting closer :)
I thought that the power drain from the battery being used was causing the problem, so decided to hook the board power to an outside source, and I got the same result....it refuses to click to the second relay. I studied your development board and noticed that I done the same with getting the power from the main socket. The negative I have not picked up from the board and maybe this is my problem.
See my playground here --> www.youtube.com/marthale7
Hendo1944 View some of my projects at; http://au.youtube.com/hendojohn
|
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 29/12/2008 : 4:11:04 PM
|
quote: Originally posted by hendo1944
I will answer your questions below....in red.
quote: Originally posted by theremart
Ok Hendo,
Some questions...
If you capitial s "S" when the program is up does it swap relays?
NO...it has no response!
Do the relays trigger when you turn the power on?
YES...they do, I hear them click in!
FYI, the pots are not used in my program so they will have no effect on the swapping, my program is only time based.
I realized this and hence set my time to 1 or zero.When I connect to the computer, it lets me change time, as the numbers change. Using capital S changes a number but nothing else.
Mart You are getting closer :)
I thought that the power drain from the battery being used was causing the problem, so decided to hook the board power to an outside source, and I got the same result....it refuses to click to the second relay. I studied your development board and noticed that I done the same with getting the power from the main socket. The negative I have not picked up from the board and maybe this is my problem.
See my playground here --> www.youtube.com/marthale7
Hendo1944 View some of my projects at; http://au.youtube.com/hendojohn
So both relays kick in when you start? There should only be one that kicks in.
I have set the program to only switch two ports of the relays, perhaps you could change the program to match the ports that you have connected.
I use a separate power source for the battery swapper than the primary battery. I supply about 12V
See my playground here --> www.youtube.com/marthale7 |
 |
|
|
hendo1944
Senior Member

Australia
123 Posts |
Posted - 29/12/2008 : 5:15:24 PM
|
quote: Originally posted by theremart
quote: Originally posted by hendo1944
I will answer your questions below....in red.
quote: Originally posted by theremart
Ok Hendo,
Some questions...
If you capitial s "S" when the program is up does it swap relays?
NO...it has no response!
Do the relays trigger when you turn the power on?
YES...they do, I hear them click in!
FYI, the pots are not used in my program so they will have no effect on the swapping, my program is only time based.
I realized this and hence set my time to 1 or zero.When I connect to the computer, it lets me change time, as the numbers change. Using capital S changes a number but nothing else.
Mart You are getting closer :)
I thought that the power drain from the battery being used was causing the problem, so decided to hook the board power to an outside source, and I got the same result....it refuses to click to the second relay. I studied your development board and noticed that I done the same with getting the power from the main socket. The negative I have not picked up from the board and maybe this is my problem.
See my playground here --> www.youtube.com/marthale7
Hendo1944 View some of my projects at; http://au.youtube.com/hendojohn
So both relays kick in when you start? There should only be one that kicks in.
Sorry...only number one clicks on...not number two....
I have set the program to only switch two ports of the relays, perhaps you could change the program to match the ports that you have connected.
don't quite understand what your saying here...why do I need to change the ports?
I use a separate power source for the battery swapper than the primary battery. I supply about 12V
so do I now...was using the battery that was under load...but now use seperate 12v battery.
See my playground here --> www.youtube.com/marthale7
Hendo1944 View some of my projects at; http://au.youtube.com/hendojohn
|
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 30/12/2008 : 3:49:58 PM
|
RE: Startup of battery swapper
So only one relay kicks on when you first start the device. Does it kick off when the time runs down?
---------------------
RE: Ports...
You have only 2 relays, for the program I wrote, I was using only two of the 4 possible relays. I am wondering if the two relays I am triggering are not the same as the 2 you have connected, thus this is why only one relay comes on for you.
---------------------
See my playground here --> www.youtube.com/marthale7 |
 |
|
|
hendo1944
Senior Member

Australia
123 Posts |
Posted - 30/12/2008 : 5:25:23 PM
|
Thanks for your reply Mart!
1st relay kicks in fine and when time expires the relay makes a buzzing sound for a little while, like it wants to do something and then the buzzing stops, but no 2nd relay comes on or swap takes place.
Does this mean that I need to change port information and re-compile the code as well as upload to the pic again? I noticed in your pictures that you have 4 relays hooked up, yet you only use two? Not being familiar with assembler, I may need to find someone to redo it for me and it may cost a few dollars.
I wonder what would be involved into writing a voltage read out as well as swapping at a pre-determined voltage setting. Of course the time setting would also remain, depending on battery condition.
At the moment, I am not sure what to do next...I have tried everything that I know off. Have others that you know, had any success?
Happy New Year!!!!
quote: Originally posted by theremart
RE: Startup of battery swapper
So only one relay kicks on when you first start the device. Does it kick off when the time runs down?
---------------------
RE: Ports...
You have only 2 relays, for the program I wrote, I was using only two of the 4 possible relays. I am wondering if the two relays I am triggering are not the same as the 2 you have connected, thus this is why only one relay comes on for you.
---------------------
See my playground here --> www.youtube.com/marthale7
Hendo1944 View some of my projects at; http://au.youtube.com/hendojohn
|
 |
|
|
theremart
Advanced Member

154 Posts |
Posted - 30/12/2008 : 7:45:39 PM
|
Ok buzzing sound not good.. It normally releases the first relay and turns on the other one.
It was VERY VERY involved in checking the voltage... I looked at that and then backed away.
No one yet has done this that I am aware of, except dude_buggy
See my playground here --> www.youtube.com/marthale7 |
 |
|
Topic  |
|