EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Switch Detection

Switch Detection

|

Microcontroller › AVR › Switch Detection

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 8 months ago by Ashutosh Bhatt.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 5, 2015 at 1:12 am #3962
    Pranav Sewpersad
    Participant

    Hello

    I have a project where I need to redesign the tailight system for a car. I am using the Atmega8 microcontroller. The first part is the user input via switches. there are 5 different switches each performing different tasks(such as indicators brakes etc.). Some functions will have to work simultaneosly. I need some help with detecting the switches either using interrupts or polling.

    NB:I have done a basic course on Avr so I dont now much and we cannot use Arduino

    Thanks 

    September 5, 2015 at 5:17 am #13267
    Prabakaran P M
    Participant

    Hi,

    As we know there are two external interrupt pins in the atmega8, you have to go for polling for detecting 5 switches. my suggestion for you to choose Atmega 168/328 to make use of PIN change interrupt. 

    September 5, 2015 at 1:13 pm #13268
    Pranav Sewpersad
    Participant

    Thanks for the help.

    I think polling will be a better option as I may need multiple functions at the same time. From my knolwedge polling will help with switch bouncing. 

    Thanks

    September 5, 2015 at 8:56 pm #13269
    Ashutosh Bhatt
    Participant

    it depends upon what u want to do actually. for light and switch its simple input output devices. no need to have interrupts

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • An Update On Tarrifs May 16, 2025
  • Trying to use a L9110s motor driver chip May 16, 2025
  • I want to make a CRT with some modifications But i have no Idea where to start May 16, 2025
  • Funny Images Thread! May 16, 2025
  • Need Help Figuring Out the Schematics Of Circuit Board May 16, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise