rebelhell's Avatar rebelhell 1
3 Asked
0 Answered
0 Best
0
No one has voted on this question yet :(
1 year, 10 months ago

How do I supply two different adjustable voltages to a device with an adjustable timed interval between them with a single button press?

I am trying to make a rig that can hold any point and shoot camera and remotely take a picture using a solenoid to press the shutter button. The problem I have run into is that the cameras require a light press on the button in order to set the focus followed by a heavier press that will fire the shutter. Through testing we got it down to 12 volt dc for focus and 24 to take the picture with the solenoids and cameras we are using. What would be an easy way to set this up so that a single button press will send an adjustable voltage to the solenoid followed by another, higher, adjustable voltage with an adjustable time delay between? I do not have any experience with micro controllers or integrated circuits but I would think there has to be a simple solution. So far my power supply has been an adjustable wall wart for testing. I am looking at using DC voltages anywhere from 5-28 volts with about 3 amps maximum current. Any assistance would be greatly appreciated.
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

What is Your Answer?

0
0
0

2 Answers

1
dainichi's Avatar
dainichi | 1 year, 10 months ago
5
First off, solenoids are current based. (pull is proportional to current) However, because they have a resistive component to them, you can control the current through them by controlling the voltage. That is, unless you want fast control of the pull.
But on to your question.
camera timer
This should do it. You can adjust the inter voltage delay with the pot. Here's the source.

//##############################################
//# Camera Focus Cycle Controller
//# 07/02/2010
//# dainichi
//##############################################
#define LOWPOWER 9
#define HIGHPOWER 8
#define START 10
#define DELAY 0

void setup()
{
//set the start button pin to input mode
pinMode(START,INPUT);
//The arduino has built in pull up resistors on
//inputs this command turns them on.
digitalWrite(START,HIGH);
//make sure the outputs are in a known state
digitalWrite(LOWPOWER,LOW);
digitalWrite(HIGHPOWER,LOW);
}
void loop()
{
//define local variables
int local_delay;
//just a little switch debouncing
//
while(!digitalRead(START));
delay(10);
while(digitalRead(START));
//
//read the setting of the pot
local_delay = analogRead(DELAY);
//turn on the solenoid to low power
digitalWrite(LOWPOWER,HIGH);
//delay up to 1.024s (add a multiplier as neccesary)
delay(local_delay);
/*if you want to work on the order of microseconds */
/*instead of milliseconds, comment out the above line*/
/*and uncomment the following line */
//delayMicroseconds(local_delay);

//turn on the high power
digitalWrite(HIGHPOWER,HIGH);
//delay for a short time to allow the camera to
//detect the button press
delay(100);
//turn off the solenoid.
digitalWrite(LOWPOWER,LOW);
digitalWrite(HIGHPOWER,LOW);
}

I will post another solution as a comment below, in a bit.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$
rebelhell's Avatar
rebelhell | 1 year, 10 months ago Report

I was planning on this being a universal mount so that any camera can be used. If I have to adjust the two input voltages for a different camera, will it affect this circuit? I've never used an arduino before but I think it's something we could figure out if that's the easiest and cheapest solution.

rebelhell's Avatar
rebelhell | 1 year, 10 months ago Report

I was planning on this being a universal mount so that any camera can be used. If I have to adjust the two input voltages for a different camera, will it affect this circuit? I've never used an arduino before but I think it's something we could figure out if that's the easiest and cheapest solution.

dainichi's Avatar
dainichi | 1 year, 10 months ago Report

Well, it's 0200h my time, If someone doesn't beat me to a solution using a 555/556 by the time i check in again tomorrow, i'll post my own version.

rebelhell's Avatar
rebelhell | 1 year, 10 months ago Report

Cycle time will be however long it takes to take a picture. Maybe one second every five. Might be closer to half a second.

dainichi's Avatar
dainichi | 1 year, 10 months ago Report

Just simple bottom-of-your-junkbox n-channel mosfets. And yes, K1 is just a standard 5v relay. Also, please note, I've altered the schematic to make use of the arduino's regulated 5v. camera timer
The new schematic will allow it to be used with any low voltage source 7.5v-24v (Although, 24 volts it pushing it heatwise, an upper end of 12-15v is more reasonable) and the high voltage can be anything the relay and Q2 can handle. Also, i added the flyback protection diode, that i forgot because i made the original at 3am

rebelhell's Avatar
rebelhell | 1 year, 10 months ago Report

What are the transisters at Q1 and Q2? Also, is K1 just a simple relay?

dainichi's Avatar
dainichi | 1 year, 10 months ago Report

Just in case you are wondering, the diode is important. It is to protect the lower voltage power supply from being driven the wrong way. The reason I have the schematics set up the way they are is to keep the solenoid constantly powered. If I had just designed it to switch between voltages, the split second when the relay contacts are not actually contacting anything may result in the solenoid letting go enough to reset the camera trigger.
The manner that I am using will allow the relay to just add pull to the solenoid.

dainichi's Avatar
dainichi | 1 year, 10 months ago Report

As long as the lower voltage is greater than about 7.5 volts, and is powerful enough to activate the relay, then no, no problems. Or use a relay (K1) that is rated for 5v and tie it to the 5v pin of the arduino. (the arduino has an onboard regulator that can source about 150ma) Then, so long as the input to the arduino is greater than 5v plus regulator dropout (typicaly 1,2V) But to keep things reliable, we need to give the regulator some headroom too, so we'll set the minimum to about 7.5v.

rebelhell's Avatar
rebelhell | 1 year, 10 months ago Report

If 24volts is going to be an issue with heat I may have to reconsider. We are talking about an intermmitent 24 volts. Maybe 20 percent duty cycle at the most for this application. Do you think that would be an issue? I may end up building both circuits. The time delay relay for simplicity and the arduino simply because I would love to get started working with these and it would be great excuse to do it. 12 volts will probably be the max on the low end so I am hoping that heat won't be an issue.

dainichi's Avatar
dainichi | 1 year, 10 months ago Report

For short periods of time, the heat won't be an issue, but to mitigate it, just power the arduino from the lower voltage supply, or just remove the 24volt source between uses.
The voltage regulator dissipates the extra voltage as heat, so as long as power is applied it is dissipating heat. But you don't have to worry too much, the regulator is quite self-reliant. You really can't overheat them, if you try, they just shut down untill they cool off a bit.

For the record: 20% duty cycle is only half the story, you also need to specify the total cycle time.

rebelhell's Avatar
rebelhell | 1 year, 10 months ago Report

Damn this system. Error 500 huh? Can't post a comment huh? SMDH

rebelhell's Avatar
rebelhell | 1 year, 10 months ago Report

I was planning on this being a universal mount so that any camera can be used. If I have to adjust the two input voltages for a different camera, will it affect this circuit? I've never used an arduino before but I think it's something we could figure out if that's the easiest and cheapest solution.

Report Abuse

Post Reply Cancel
0
opossum's Avatar
opossum | 1 year, 10 months ago
7
An ordinary 24 volt industrial time delay relay can be used to switch from the low focus voltage to the higher shutter voltage.

A time delay relay switches after an adjustable time delay. There is usually a knob on the top to adjust the delay duration.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$
rebelhell's Avatar
rebelhell | 1 year, 10 months ago Report

I had looked at time delay relays before I posted but couldn't find any for less than
$75. I will definitely have to look more into this. As I said I don't have much experience with this kind of thing so any more information you could offer would be great.

opossum's Avatar
opossum | 1 year, 10 months ago Report

Here is a simple circuit with adjustable low voltage and a time delay relay. A small heatsink may be needed on the transistor.

http://www.compendiumarcana.com/forumpics/time_delay_relay.png

dainichi's Avatar
dainichi | 1 year, 10 months ago Report

Here's a simple schematic for a time delay. K3 is a simple DPST relay for power control. K1 is a 24v time delay relay.

camera timer relay

Report Abuse

Post Reply Cancel