MicroPython Hardware: I2C Devices with Tony D! @micropython

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ต.ค. 2024

ความคิดเห็น • 9

  • @nomadic-insomniac
    @nomadic-insomniac 7 ปีที่แล้ว +2

    Love your tutorials :) ,
    Just getting started with the esp2866 ,
    Got everything running after watching 2 of your tutorial videos =) .
    Keep up the Good Work !!!!!

  • @silvermag06
    @silvermag06 7 ปีที่แล้ว

    Awesome! Very informative and useful! Highly appreciated

  • @aparnasbose
    @aparnasbose 6 ปีที่แล้ว

    Hello sir, i have been try with mcp9808 and esp8266 nodemcu...but when I do i2c.scan() it returns a long list of addresses...it should ideally return only one address right? could you please tell me what could be the issue

    • @dork3nergy
      @dork3nergy 4 ปีที่แล้ว

      Your pin addresses are likely wrong. It may not be the same pin numbers as in this video.

  • @indrajagadeesh5614
    @indrajagadeesh5614 7 ปีที่แล้ว

    sir, i am so thankful for your tutorials
    i am trying to interface adxl345(3 axis accelerometer) with esp8266 using micropython
    but, i2c.scan() is not detecting the address of adxl345
    i have tried all possible methods,i request you to please help me to interface adxl345 with esp8266 using I2c in micropython

  • @lornioiz
    @lornioiz 8 ปีที่แล้ว

    Thank you, a very useful explanation!
    However, I don't understand the "simple" temp_c function. I don't get, in particular, what's the purpose of the use of the bitwise operators.

    • @adafruit
      @adafruit  8 ปีที่แล้ว +2

      Oh good question the first line converts a byte string (like an array of bytes) into a single 16 bit value by grabbing the first byte from the string and making it the top 8 bits (the shift left by 8 bits with

    • @lornioiz
      @lornioiz 8 ปีที่แล้ว

      Thank you for the explanation!
      After few years doing small programming with Python I had never used bitwise operators or had to worry about exadecimal and binary coding.
      I just made some tests with Python ide and I think I got everything... well, almost.
      As I said, my knowledge is pretty basic, so I'd like to ask you the last couple of question:
      Once you have the 12 bit subset of data, why do you divide it by 16?
      Finally, if value & 0x1000 is true (i.e. != than 0), you subtract from the value 256, as if in that case the temperature were shown in kelvin. I don get it :(
      I want to say thank you very much for your great work! I really hope to see more videos about Micropython!

    • @ChasingAfterTheWind
      @ChasingAfterTheWind 3 ปีที่แล้ว

      @@adafruit Can you explain how the line 'temp = (value & 0xfff) / 16' grabs the last 12 of 16 bits?