Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login
    1. Home
    2. Tags
    3. i2c

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Log in to post

    • All categories
    • B

      BME280 on the LoPy

      Watching Ignoring Scheduled Pinned Locked Moved Issues & Bugs bme280 lopy i2c
      41
      0 Votes
      41 Posts
      16k Views
      robert-hhR
      @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

      Watching Ignoring Scheduled Pinned Locked Moved SiPy sigfox i2c sipy
      1
      0 Votes
      1 Posts
      948 Views
      No one has replied
    • B

      VL53L0X Time of Flight Distance Sensor

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy wipy i2c
      5
      0 Votes
      5 Posts
      2k Views
      J
      @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

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy i2c
      3
      1 Votes
      3 Posts
      5k 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

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython micropython lopy i2c
      4
      0 Votes
      4 Posts
      1k Views
      L
      @dchappel bit left shift << same for bit right shift >>
    • L

      Can't seem to fint the I2C pins on the expansion board (using SiPy)

      Watching Ignoring Scheduled Pinned Locked Moved Expansion Board i2c sipy expansionboard
      5
      0 Votes
      5 Posts
      2k Views
      L
      Thanks to Livius. That worked!
    • R

      I2C Clock Stretching

      Watching Ignoring Scheduled Pinned Locked Moved Discussion i2c clock stretch
      7
      0 Votes
      7 Posts
      2k 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? =)
    • T

      SI7021 I2C sensor

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython lopy i2c temperature humidity si7021
      3
      0 Votes
      3 Posts
      2k Views
      T
      @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

      Watching Ignoring Scheduled Pinned Locked Moved WiPy 2&3 wipy 1 i2c
      6
      0 Votes
      6 Posts
      4k Views
      robert-hhR
      @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