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
  • 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
Power & Energy
  • Technologies
  • More
Power & Energy
Forum Use SPST to trigger a momentary switch
  • Blog
  • Forum
  • Quiz
  • Documents
  • Polls
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 285 subscribers
  • Views 1694 views
  • Users 0 members are here
Related

Use SPST to trigger a momentary switch

uxphil
uxphil over 2 years ago

Hi, I’m new to the forum and a keen, but clueless DIY dad, so expect seemingly silly questions … sorry

I’m building a busy board for my 1 year old son, which will run off a 5V power supply with lots of chunky switches and LEDs etc.

I’ve bought a little Adafruit soundboard that lets you trigger sounds with a momentary switch. 

my question is this:

i have a chunky flip switch that I’d like to turn on a light or something like that, but also play a sound from the sound board when it’s flicked.

any advice how I could use a SPST switch to trigger a momentary switch signal that would trigger the sound to be played?

below some pics of the switches and the sound board (can’t paste links in here) …

Thanks for any advice!

image

image

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 2 years ago +2
    Hi, I think that sound module will work with a toggle switch, it may just loop the audio. Otherwise if you really want a momentary action like a push-button, then another option is to use toggle switches…
  • shabaz
    shabaz over 2 years ago

    Hi,

    I think that sound module will work with a toggle switch, it may just loop the audio. Otherwise if you really want a momentary action like a push-button, then another option is to use toggle switches that are biased in one position with an internal spring. They spring back to the original position as soon as they are released.

    Another option is a bit crude but might work (you'd have to do some experimenting) is to use a capacitor and resistor per switch, as shown here:

    image

    The sound module is not very configurable so it's not reasonable to be able to customize its behavior much however, so even slight modifications to tweak your project could result in major changes to the electronics. It would be better (if you wanted more control) to simply use a microcontroller board, such as an Arduino. Adafruit sell sound modules for it. That way you could modify the code to more precisely do what you want, and it may even be cheaper, since those sound modules seem to cost more than they should.

    Here's another idea, a project that uses a Pi Pico, and is programmed in Python, therefore the code could be modified to do what you want, and toggle switches could be wired instead of push-puttons. It depends if you are comfortable programming or not.  Pocket Scarface – Pi Pico Python Based MP3 Clip Player 

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • uxphil
    uxphil over 2 years ago in reply to shabaz

    Wow, thanks for the super detailed response … I’ll look into your suggestions!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JWx
    JWx over 2 years ago

    you will probably need edge triggered monostable generator - maybe built from some logic gates, maybe IC like 555. But it would require one circuit for each key

    https://www.electronics-tutorials.ws/waveforms/monostable.html

    circuit from NOR gate circuit seems simplest - and from 1 IC you would get two of them (74LS02 - or better something modern like 74HC02  - includes 4 gates) - but the question is if the final circuit wouldn't be too complicated?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • robogary
    robogary over 2 years ago

    leading edge one shot

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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