element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Arduino
  • Products
  • More
Arduino
Arduino Forum Help with Clap on light switch, ATTiny85
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 2 replies
  • Subscribers 389 subscribers
  • Views 423 views
  • Users 0 members are here
  • circuit
  • attiny85
  • switch
  • relay
  • clap
Related

Help with Clap on light switch, ATTiny85

gub11
gub11 over 10 years ago

This is my first post on this forum, and im also really new to arduinos and have very little electrical experience, so please explain thoroughly, thanks.

I looked at some designs for clap on clap off light switches, but i didn't want to use a breadboard, to save space, so i made my own design, which i will attach below, I just had a few questions.

First off, does it look good? (not estethically of course lol it looks like ***, but I mean does it look like it will work)

also, the relay on the right side of the circuit, I don't know really how relays work, so if somebody could explain what to do when i get there in the design, because right now i just drew it in, I don't know what to do.  I also read that relay's were very taxing on the battery, so is there another option?

Thanks a lot

Attachments:
image
  • Sign in to reply
  • Cancel
Parents
  • shabaz
    0 shabaz over 10 years ago

    Bits of that circuit might work with some good coding, but basically it won't be easy like this, nor can the relay be directly connected without additional circuitry anyway.

    However, clap circuits are popular enough that you'll find some detailed explanations in many places. Try this project (PDF link): http://www.epemag.com/lib/free_projects/home/0600%20-%20Automatic%20Night%20Light.pdf

    The circuit there drives a lamp, but you can replace the lamp with a relay directly.

    Also if you want to do fancy stuff like switch on/off toggled via hand clap or some other clapping scheme (e.g. three claps to switch off), then you can make a cut between pin 3 of that IC in that circuit in the PDF and resistor R5, and insert your ATtiny chip there, as long as you power things at 5V or so.

    Anyway, in summary, there are no easy shortcuts to learning - the best approach is to take a known working circuit and build on it, rather than connect an ATtiny to a microphone and to a relay directly. They are not directly compatible, even with the resistors and capacitor in your circuit.

    EPE is a fairly reputable magazine so the PDF will have an established, known working circuit. The last thing you need when you have little practical experience is an untested design.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 10 years ago

    Bits of that circuit might work with some good coding, but basically it won't be easy like this, nor can the relay be directly connected without additional circuitry anyway.

    However, clap circuits are popular enough that you'll find some detailed explanations in many places. Try this project (PDF link): http://www.epemag.com/lib/free_projects/home/0600%20-%20Automatic%20Night%20Light.pdf

    The circuit there drives a lamp, but you can replace the lamp with a relay directly.

    Also if you want to do fancy stuff like switch on/off toggled via hand clap or some other clapping scheme (e.g. three claps to switch off), then you can make a cut between pin 3 of that IC in that circuit in the PDF and resistor R5, and insert your ATtiny chip there, as long as you power things at 5V or so.

    Anyway, in summary, there are no easy shortcuts to learning - the best approach is to take a known working circuit and build on it, rather than connect an ATtiny to a microphone and to a relay directly. They are not directly compatible, even with the resistors and capacitor in your circuit.

    EPE is a fairly reputable magazine so the PDF will have an established, known working circuit. The last thing you need when you have little practical experience is an untested design.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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