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 multiplexing in arduino
  • 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 Suggested Answer
  • Replies 8 replies
  • Answers 4 answers
  • Subscribers 392 subscribers
  • Views 1103 views
  • Users 0 members are here
Related

multiplexing in arduino

dhyanimohit
dhyanimohit over 8 years ago

how to multiplex 2 inputs in one arduino board plz any1 help

  • Sign in to reply
  • Cancel

Top Replies

  • jw0752
    jw0752 over 8 years ago in reply to dhyanimohit +2 suggested
    Hi Mohit, It is not a simple as that. You have to have a detailed understanding of your environment (where this will be used), the sensors, and output devices that are being used and a bunch of things…
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to dhyanimohit +2 suggested
    (it is also possible that you don't need to multiplex your inputs. The Arduino can handle more than one input)
  • jw0752
    jw0752 over 8 years ago +1
    Hi Mohit, Sorry but your question may not be able to be answered unless you provide more information. Ideally it would be nice to know what you are trying to do and what resources you have already. Be…
  • jw0752
    0 jw0752 over 8 years ago

    Hi Mohit,

     

    Sorry but your question may not be able to be answered unless you provide more information. Ideally it would be nice to know what you are trying to do and what resources you have already. Be as specific as you can and also tell us what you have accomplished to this point. Pictures and diagrams also will enable us to give you a better response.

     

    John

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dhyanimohit
    0 dhyanimohit over 8 years ago in reply to jw0752

    Hi sir,

     

    actually I want to make a home automation light system  with help of

    arduino ,pir sensor and   ultrasonic sensor.

     

    The pir sensor for switch on the lights and  by ultrasonic sensor   we will

    control the intesity or fading of light by distance

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jw0752
    0 jw0752 over 8 years ago in reply to dhyanimohit

    Hi Mohit,

     

    The output of the sensors can be read by two inputs of the Arduino. If the sensor outputs an analog output (a range of voltage levels) you can use one of the Analog inputs and if the output of the sensor is a high or low voltage you can use one of the digital inputs. The integration of these two sensors is then done in the software that you write to make the decisions and control the output of the Arduino to control the light. In summary the multiplexing that you asked about is done by the software in this instance.

     

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • dhyanimohit
    0 dhyanimohit over 8 years ago in reply to jw0752

    sir can you send me coding of this setup

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jw0752
    0 jw0752 over 8 years ago in reply to dhyanimohit

    Hi Mohit,

     

    It is not a simple as that. You have to have a detailed understanding of your environment (where this will be used), the sensors, and output devices that are being used and a bunch of things that get dictated by the resources, parts and pieces that are available for the job. Once all these things are clear then the programming can begin. While I am happy to try to answer the questions that you may ask about specifics it isn't practical to do long distance coding on someone else's project. I would recommend that you check out some of the already completed projects that may be posted on the internet and see if one is close to what you want to do. You could then try to build one similar and with a little study you can modify the existing code to suit your needs.

     

    John

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • dhyanimohit
    0 dhyanimohit over 8 years ago in reply to jw0752

    I tried but didn't got anything then I asked for your fever.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to dhyanimohit

    Do you have a working prototype of your ultrasone sensor by itself, or the pir that you're using, or for the system that switches the light and controls the intensity?

    Those projects could become the start of your future project.

     

    It'll be easier if you have each of them working, and have experienced what happens.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to dhyanimohit

    (it is also possible that you don't need to multiplex your inputs. The Arduino can handle more than one input)

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject 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