+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Banned
    Points: 2,706, Level: 12
    Achievements:
    7 years registered

    Join Date
    May 2010
    Location
    usa
    Posts
    270
    Helped
    0 / 0
    Points
    2,706
    Level
    12

    i2c sensor connection on analog port

    Is there any problem to connect dht11 humidity sensor on analog port, however it uses I2C

    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 69,518, Level: 64
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    14,202
    Helped
    3243 / 3243
    Points
    69,518
    Level
    64

    Re: i2c sensor connection on analog port

    Hi,

    I'm confused.

    I2C is a digital interface.
    And the DHT11 only use this interface, they can't output analog signals.

    Give precise informations.
    A sketch will help to avoid confusion.

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisment

        
       

  3. #3
    Newbie level 6
    Points: 210, Level: 2

    Join Date
    Jun 2018
    Location
    INDIA
    Posts
    13
    Helped
    5 / 5
    Points
    210
    Level
    2

    Re: i2c sensor connection on analog port

    Hi,
    DHT11 has four pins namely DATA LINES,VDD,GND... Data lines are single wire each but in both ways. Refer the datasheet. It clearly says complete data transmission is of 40 bits. So, no analog pins out from DHT11 sensor.


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  4. #4
    Full Member level 3
    Points: 1,681, Level: 9

    Join Date
    Jul 2014
    Posts
    170
    Helped
    31 / 31
    Points
    1,681
    Level
    9

    Re: i2c sensor connection on analog port

    Most microcontrollers have multiple uses for various pins. For example, the ubiquitous ATmega328 uses PORT C for analog input. It also uses PORT C bits 4 and 5 for I2C SDA and SCL in digital mode. A quick reference to the data sheet for the processor you are using should reveal whether an analog pin can alternatively be configured as a digital pin.



  5. #5
    Super Moderator
    Points: 28,507, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,474
    Helped
    1078 / 1078
    Points
    28,507
    Level
    41
    Blog Entries
    6

    Re: i2c sensor connection on analog port

    It is not clear whether OP wants to share a just added I2C device with an analog port in use, both working alternately, or if the issue is how to configure the muxes of the microcontroller - as all we are guessing. A few more words spent would avoid this thread become useless.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



--[[ ]]--