element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Power outage alarm
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 25 replies
  • Answers 1 answer
  • Subscribers 289 subscribers
  • Views 1809 views
  • Users 0 members are here
  • power outage
  • pico 2
  • outage
  • alarm
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Power outage alarm

EdgarAndre
EdgarAndre 2 months ago

Hello, I am new to electronics and I would like to make a power outage alarm with a Raspberry Pi Pico 2 circuit that I bought as a kit. The Pico would be connected via USB and when a power outage occurs, a two-hour timer would start and after these two hours an alarm would sound. The circuit would be powered by a 9 volt battery for two hours. The alarm could sound for one minute with a bib every two seconds. If the power comes back on before two hours, I would like the timer to reset. Do you have any solutions to suggest or examples of circuits adaptable to this project? Thank you very much for your help.

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz 2 months ago +4
    If you're a beginner, you could just try some beginner projects, they may get you halfway there. The first project is usually a blinking LED. If you can blink an LED then you can pulse a buzzer with…
  • kmikemoo
    kmikemoo 2 months ago in reply to shabaz +3
    shabaz I understand EdgarAndre's desire for the 2-hour wait. At the last place we rented, the squirrels would regularly trip the main feeder breaker. The outage would typically last 45 minutes to an hour…
  • kmikemoo
    kmikemoo 2 months ago in reply to shabaz +3
    shabaz Many years ago, I put my router on a UPS. The first outage proved that my ISP had NONE of their equipment on UPS's. Nor did they have backup generators. I can only hope that they have improved.
Parents
  • robogary
    0 robogary 2 months ago

    Sounds like a school homework project. Here are some hints.

    Firstly, you need to look at the pico power supply circuit.USB is 5v . Vin you are saying is 9v, but inside its converted to something else. There should a blocking diode provided so the USB volts doesn't backfeed the Vin if Vin gets lower than USB.

    Use a voltage divider to attenuation the voltage of both USB and battery, and bring in as analog inputs. Use code to set limits and the levels for making low voltage alarms. You'll want to know if the 9v battery is OK.

    Use a counter or real time clock for elasped time. The 2 second delay is easy code, proably an interrupt would be 

    Use a piezoelectric buzzer for the alarm. There are integrated circuits that find the buzzer resonance and drive it there so they are really loud.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • EdgarAndre
    0 EdgarAndre 2 months ago in reply to robogary

    Thanks for your help. As power outages become more frequent due to storms, I need an alarm to save the contents of my freezer and refrigerator. I want to be alerted while I'm asleep after a two-hour power outage to start my generator and prevent these losses.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robogary
    0 robogary 2 months ago in reply to EdgarAndre

    if you wanted to keep it simple and be successful, find a time delay after de-energization relay (TDAD) relay with the coil voltage and freq the same as the power supply feed for the fridge and freezer.  One example is ABB 1SVR730120R3300 Time Relay, OFF-Delay, CT-ARS.21S, 24-240V AC/DC, 0.05s - 10 min, 1 SPDT. It doesnt have the elegance of all the features you want, but after 10 minutes of power loss,  a N.C. contact can connect a 9V battery to a buzzer to wake you up and remind you to start the generator.

    You could also use that relay closure to power up the Pico 2 , and then provide the additional features you want without summing power supplies and attenuating analog circuits to check the power levels.  

    This is the control power circuit for the RPi Pico 2. SYS input isnt rated for a 9V battery input, maximum of 5v. You'll need a buck power supply to step down the 9V to 5V ish and a blocking diode so it doesnt backfeed the USB. 

    image 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave 2 months ago in reply to robogary
    robogary said:
    You could also use that relay closure to power up the Pico 2 , and then provide the additional features you want without summing power supplies and attenuating analog circuits to check the power levels.

    Could perhaps just use a Wallwart PSU into a relay to do similar. Power goes off, relay drops connecting battery power to the Pico, which then starts a 2h countdown timer to trigger a buzzer. If power comes back on before the 2h elapses, the relay closes, power is removed from the Pico. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robogary
    0 robogary 2 months ago in reply to beacon_dave

    good idea. that suggestion works and is probably about $100 less expensive than a TDAD relay.It relies on the author simplifying his functional spec. I had also given some thought too for using a quad 555 timer IC especially since likes 9V.  one 555 for a 2 sec "blip beep" and another for a 2 hour "wake me up firehouse alarm".  Pico 2 is way overkill unless someone wants to go full IOT Pico W or start sending emails.  

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • robogary
    0 robogary 2 months ago in reply to beacon_dave

    good idea. that suggestion works and is probably about $100 less expensive than a TDAD relay.It relies on the author simplifying his functional spec. I had also given some thought too for using a quad 555 timer IC especially since likes 9V.  one 555 for a 2 sec "blip beep" and another for a 2 hour "wake me up firehouse alarm".  Pico 2 is way overkill unless someone wants to go full IOT Pico W or start sending emails.  

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • beacon_dave
    0 beacon_dave 2 months ago in reply to robogary

    Could also perhaps use something like a PowerBoost to act as a mini UPS if you want 'always on' processing power for future features.

    Monitor the state of the USB power to start/reset the 2h timer.

    The likes of a Feather RP2040 or similar might be a neater all-in-one solution.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • kmikemoo
    0 kmikemoo 2 months ago in reply to robogary

    robogary The Pico 2 may be overkill, but at $5 each... they're quite affordable. Laughing  I think I still have 5 left from my initial impulse buy when they first came out.  And then there's still those "salvaged" original Pico's from the other projects I lost interest in.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robogary
    0 robogary 2 months ago in reply to kmikemoo

    ROFL - I got qty 16+ of RPI Picos  on a shopping cart to use for teaching a class at the library, and a Pico W.  I ended up donating at least 10 to our local VoTech School, and still have a bunch of Picos. I still have a bunch of Arduino Nano clones that I bought many years ago for less than $2 each. I just keep recycling them, very few have failed.   

    I really really miss bi-monthly E14 project contests and Tariq shopping carts.    

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube