Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 45
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
LoveVirus (45)
SilentPhoenix (17)
Electrikid221MnM (24)
Karmaslap (30)


Next birthdays
02/22 Renesis (35)
02/22 Cloud (35)
02/23 Boost (40)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Relay - Self Energise?

Move Thread LAN_403
lauriethepigeon
Fri Mar 15 2013, 07:28PM Print
lauriethepigeon Registered Member #7669 Joined: Mon Oct 29 2012, 02:55PM
Location:
Posts: 19
Hi

I hope somebody can help, I have a bit of a conundrum.

I am making an electronic mechanism for a bar billiards table. It is battery operated, controlled by an arduino. You press a button and the bar is lifted by a servo to let the balls out. After 15 minutes the bar is lowered by the servo.

The problem is, since it's run off a battery I don't want the arduino to be powered all the time otherwise the battery will quickly run out. I was hoping that I could hold the button for a second which would trigger a solid state relay to supply power to the arduino. Once the arduino is booted then one of the outputs (attached to the relay coil) could stay on, keeping the relay switched after the button is released. Once the bar has been lowered then that output would switch off, cutting power to the whole thing.

Would that work? Has anybody tried something like this before?
1363375704 7669 FT0 Billiards
Back to top
ScotchTapeLord
Fri Mar 15 2013, 07:54PM
ScotchTapeLord Registered Member #1875 Joined: Sun Dec 21 2008, 06:36PM
Location:
Posts: 635
What you are looking for is called "power gating" and you can look up the best ways to do it.

I cannot follow your schematic so I'm inclined to say it's wrong. You should have the relay and pushbutton in parallel, not series, I think, for what you aim to achieve.


Alternatively, you can use a chip with a low-power mode that can be turned on by interrupt via pushbutton. Since there is very little computational complexity in carrying out what you describe, something basic like TI's MSP430 value line comes to mind.
Back to top
lauriethepigeon
Fri Mar 15 2013, 08:25PM
lauriethepigeon Registered Member #7669 Joined: Mon Oct 29 2012, 02:55PM
Location:
Posts: 19
Thanks for the help, I already have arduino chips so was hoping to use them if possible.

I have added labels and colour coded the diagram to hopefully make it clearer what's happening, don't worry if you still can't make sense of it though.



Link2
Back to top
ScotchTapeLord
Fri Mar 15 2013, 10:38PM
ScotchTapeLord Registered Member #1875 Joined: Sun Dec 21 2008, 06:36PM
Location:
Posts: 635
Okay that should work, but you'll either have to make sure that D8 can NEVER go LOW (it will short the supply when the button is pushed) or put a resistor at D8 to protect against shorting the supply.

EDIT: said "high" replaced with "LOW"

SECOND EDIT: A better solution may be to disconnect the bottom end of your pushbutton as shown in the picture and connect it to Vin on the chip directly. That way, the button will still turn the chip on and the supply will not be directly connected to the chip's output pin.
Back to top
Erlend^SE
Sat Mar 16 2013, 06:33PM
Erlend^SE Registered Member #1565 Joined: Wed Jun 25 2008, 09:08PM
Location: Norway
Posts: 159
GIven you use a AVR8, they do brag about the sleep modes.
So if you keep the microcontroller powered at all time (but in deep sleep mode), and connect the button to one of the int-pins (pullup, and switch toward gnd).
You will only need to add a microcontroller-controlled FET to cut servo-power for power-down.

Given the power-source is 3-5.5V without regulators.
Back to top
doctor electrons
Sat Mar 16 2013, 11:21PM
doctor electrons Registered Member #2390 Joined: Sat Sept 26 2009, 02:04PM
Location: Milwaukee Wisconsin
Posts: 381
If i were you i would just use two buttons! Start and stop. Google "seal in circuit".
If you put the circuit between the battery and the other parts of your circuit it will only be on
when you push the start button. When you hit stop power will be cutoff. Simple but very common!
Back to top
Steve Conner
Mon Mar 18 2013, 11:10AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Finally connect the "stop" button to your Arduino so it can press it itself when it's done.
Back to top
doctor electrons
Tue Mar 19 2013, 12:54AM
doctor electrons Registered Member #2390 Joined: Sat Sept 26 2009, 02:04PM
Location: Milwaukee Wisconsin
Posts: 381
I must admit i am not very familiar with arduino, or yoda power! But if Steve says it'll work, it'll work!!!!
Back to top
lauriethepigeon
Thu Mar 21 2013, 03:09PM
lauriethepigeon Registered Member #7669 Joined: Mon Oct 29 2012, 02:55PM
Location:
Posts: 19
Hi guys

Thanks for the info. I used the relay method in the end and it works perfectly.
Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.