Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. i2c
    Log in to post

    • B

      BME280 on the LoPy
      Issues & Bugs • lopy i2c bme280 • • binux  

      41
      0
      Votes
      41
      Posts
      15957
      Views

      robert-hh

      @Lucas_Vieira Yes, just change the last line of the method values() to: return t, p, h I never had sent values directly to cayenne, only through TTN. Which cayenne LPP module are you using? Edit: In my tests, the value for humidity was the one with the largest error, but still not 0. Are you sure that you have a BME280 device and not an BMP280? If you look at the package, there are two lines of letters BME280: xxx Ux BMP280: xxx Kx The difference is U vs. K
    • Y

      Code stuck using sigfox with I2C sensor
      SiPy • sipy i2c sigfox • • YoungChul  

      1
      0
      Votes
      1
      Posts
      937
      Views

      No one has replied

    • B

      VL53L0X Time of Flight Distance Sensor
      LoPy • lopy wipy i2c • • blsmith  

      5
      0
      Votes
      5
      Posts
      1520
      Views

      jmarcelino

      @chumelnicu Still on my to-do list I'm afraid, but maybe try iotmaker's code? https://forum.pycom.io/topic/1453/i2c-sensor-with-wipy2/11
    • I

      Maxbotix Ultrasonic/Ultrasound sensor MB7137 for Lopy
      LoPy • lopy i2c • • innovpoint  

      3
      1
      Votes
      3
      Posts
      5455
      Views

      I

      Ok.. Solved: from machine import I2C import time ADDR = 0x70 CMD = 0x51 configure the I2C bus i2c = I2C(0, I2C.MASTER, baudrate=250000) i2c.writeto(ADDR, bytes([CMD])) time.sleep(0.5) dist = i2c.readfrom(ADDR, 2) total = (dist[0]*255)+dist[1] print(total)
    • D

      i2c Return Data Conversion
      MicroPython • lopy micropython i2c • • dchappel  

      4
      0
      Votes
      4
      Posts
      1215
      Views

      livius

      @dchappel bit left shift << same for bit right shift >>
    • Lokefar

      Can't seem to fint the I2C pins on the expansion board (using SiPy)
      Expansion Board • sipy i2c expansionboard • • Lokefar  

      5
      0
      Votes
      5
      Posts
      2375
      Views

      Lokefar

      Thanks to Livius. That worked!
    • R

      I2C Clock Stretching
      Discussion • i2c clock stretch • • RicZeDuck  

      7
      0
      Votes
      7
      Posts
      2318
      Views

      B

      @iannucci I'm curious if you ever got this working. The TI documentation is a hot mess. If you did, can you post up some example code, please? =)
    • tobru

      SI7021 I2C sensor
      MicroPython • lopy i2c temperature humidity si7021 • • tobru  

      3
      0
      Votes
      3
      Posts
      2326
      Views

      tobru

      @crankshaft said in SI7021 I2C sensor: Try This; WOW! You're great, works like a charm... Thank you very very much!
    • J

      Connecting a sensor to WiPy 1 via I2C
      WiPy 2&3 • i2c wipy 1 • • jnc  

      6
      0
      Votes
      6
      Posts
      3669
      Views

      robert-hh

      @jnc said in Connecting a sensor to WiPy 1 via I2C: I assume you have to specify the scl and ads pin in the constructor, like: i2c = I2C(0, scl=lux_scl, sda=lux_sda) And you may have to switch GP12 and GP13, as far as I understand the PinOut https://raw.githubusercontent.com/wipy/wipy/master/docs/PinOUT.png lux_scl = Pin('GP12', mode=Pin.ALT, alt=5) lux_sda = Pin('GP13', mode=Pin.ALT, alt=5)
    • 1
    • 2
    • 3
    • 4
    • 4 / 4