cromerro
Posts: 3
Joined: Fri Jun 29, 2012 7:40 pm

Easy Method of switching 3vdc

Tue Jun 17, 2014 1:04 pm

Hi -
I have +3VDC and -3VDC input from a carbon battery bank. I want to be able to have a single output pin
whereby I can output first battery +3VDC for 12 minutes and then switch the output pin to battery -3VDC for
the next 12 minutes, repeating on a forever basis. The 3v output simply attaches to a screen providing a weak field.

Is there any real simple way of using the GPIO ports on the Rpi and a simple looping program to accomplish
this task? I have an early Rpi that I could use for this.
Thanks,
Bob Cromer

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

Re: Easy Method of switching 3vdc

Tue Jun 17, 2014 1:34 pm

Hi Bob,
cromerro wrote:I have +3VDC and -3VDC input from a carbon battery bank.
Input from battery bank ?
Is your battery bank 3V and has two output terminals: + and - ?

In order to understand what you'd like to achieve, we (including you) need to analyze components and specify goals properly.
Feel also free to draw a sketch...


Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

Ravenous
Posts: 1956
Joined: Fri Feb 24, 2012 1:01 pm
Location: UK

Re: Easy Method of switching 3vdc

Tue Jun 17, 2014 2:12 pm

cromerro wrote:The 3v output simply attaches to a screen providing a weak field.
Am I right in guessing you first want to apply +3V, then -3V, and you have four 1.5V cells with the earth in the middle?

If this is being run indoors with other power available - so the apparatus itself is mainly powered from mains, not the batteries themselves - I would just buy or build a relay board and use two relays to connect either the positive or negative end to your electrode/screen.

I'm suggesting relays because their outputs are physical switches insulated from the rest of the circuit, so only your 3V battery is connected to the electrodes.

There have been a few posts on how to switch relays on and off, so if what I've describes is what you need then you could just have a search around and see what's available.

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: Easy Method of switching 3vdc

Tue Jun 17, 2014 2:22 pm

Ravenous wrote:
cromerro wrote:The 3v output simply attaches to a screen providing a weak field.
Am I right in guessing you first want to apply +3V, then -3V, and you have four 1.5V cells with the earth in the middle?

If this is being run indoors with other power available - so the apparatus itself is mainly powered from mains, not the batteries themselves - I would just buy or build a relay board and use two relays to connect either the positive or negative end to your electrode/screen.

I'm suggesting relays because their outputs are physical switches insulated from the rest of the circuit, so only your 3V battery is connected to the electrodes.

There have been a few posts on how to switch relays on and off, so if what I've describes is what you need then you could just have a search around and see what's available.
+1
use a GPIO to switch relays to switch your power supply.
Caution: use care that the relays cannot accidently short out your battery bank if the switching condition isn't what you would expect.

is it essential that the output voltage remains constantly powered?
if so you may need to use capacitors to cover the switching time.
Doug.
Building Management Systems Engineer.

danjperron
Posts: 3508
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Easy Method of switching 3vdc

Tue Jun 17, 2014 8:29 pm

You only need one GPIO.

Just one relay will do.

N.O. to +3V
N.C. to -3V
The flipper to the screen.

there is a lot of relay available which could run on 3.3V. Check some Arduino shield.

Daniel

Return to “Interfacing (DSI, CSI, I2C, etc.)”