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
    • E

      LoPy4 - I2C - FRAM Memory - MicroPython Library

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython i2c fram
      27
      0 Votes
      27 Posts
      142 Views
      J
      @Eric-Tremblay Ah sorry I had missed that. No, the message is correct. The address is on 16 bits, so takes two bytes to send. What happens when you try a read?
    • T

      TSL2591 runtime error: Overflow reading light channels

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython tsl2591 i2c library runtime error
      6
      0 Votes
      6 Posts
      64 Views
      T
      It looks like you are using signed intergers/numbers for the reading from the light sensor. When it reaches the half way value it wraps around and goes negative. If you simply define the data as an unsigned type does it fix the issue.
    • T

      random I2c adresses

      Watching Ignoring Scheduled Pinned Locked Moved Discussion pycom i2c am2315
      9
      1
      0 Votes
      9 Posts
      268 Views
      T
      I think the issue was with my breadboard psu... So right now I am using the pycom 3.3V
    • shanefowler25S

      I2C OLED Screen Error

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython ssd1306 oled display i2c micropython
      7
      0 Votes
      7 Posts
      622 Views
      robert-hhR
      @kjm All versions have a usable I2C. The case here is a different one, I assume. @shanefowler25 : Can you publish the full error message you got. It should be more than one line. The framebuffer module is included now. It sneaked in when Pycom moved to MicroPython core V1.11.
    • T

      1602 LCD and I2C backpack with pycom

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython 1602 i2c lcd displays
      17
      0 Votes
      17 Posts
      1k Views
      robert-hhR
      @Lucas_Vieira I'm missing the print statements form the script. So your test script is not executed at all.
    • W

      Best power source for using 5V sensors

      Watching Ignoring Scheduled Pinned Locked Moved Expansion Board battery levelshifter i2c expansion board expansionboard
      7
      0 Votes
      7 Posts
      779 Views
      M
      @weingami Note that I2C level shifting is particularly easy as it uses an open drain-pullup signaling scheme. Shifting can simply be done with two FETs: https://electronics.stackexchange.com/questions/255607/i2c-level-shifting-mosfet
    • D

      Optimal I2C pullup resistors

      Watching Ignoring Scheduled Pinned Locked Moved Discussion i2c
      14
      0 Votes
      14 Posts
      1k Views
      robert-hhR
      @dnear1 So what was the issue then with the scope diagram below: https://forum.pycom.io/topic/4263/optimal-i2c-pullup-resistors/5 That one does not look well.
    • B

      Display logo on screen

      Watching Ignoring Scheduled Pinned Locked Moved SiPy screen ssd1306 i2c
      4
      0 Votes
      4 Posts
      496 Views
      C
      @brossingo Do you use a pycom board? Then add some wait. You have to wait until the *Py and the board is initialized. Sadly there is no flag or event which tells you that init is ready. So you have to find the right time for your system by your own. It will depend on firmware version and the hardware you added - especially your display. Give 1.20 rc4 a try. This version solved my problems with i2c and pytrack
    • D

      Help with BME280 on Wipy 3.0 + Expansion Board 3.0

      Watching Ignoring Scheduled Pinned Locked Moved WiPy 2&3 wipy 3.0 expansion board bme280 i2c
      3
      0 Votes
      3 Posts
      476 Views
      D
      @robert-hh Works like a charm, thank you so much!
    • S

      GPY/FiPY & Expansion Bd 3 - Multi I2C and SD Card Instances

      Watching Ignoring Scheduled Pinned Locked Moved Discussion gpy fipy i2c spi expansion board
      25
      0 Votes
      25 Posts
      4k Views
      S
      @robert-hh OK, I set up some code to try this out, several timers at different periods and several threads including one to start LTE, send an SMS and then deinit. From what I can see, the timers do NOT get interupted by the LTE device. It seems the timer counts are retained and dumped to REPL as soon as possible (buffered apparently). There is some corruption/mixup of REPL lines but all the timer flags are there I will investigate a bit further and see if I can use this to my advantage. One thread/timer I will need will be at 11uS preferably, so as it is too fast to capture by eye, I'll have to write to a file to a file to evaluate any impact by the LTE device. Biggest constraint might be the actual time to write to disk. A FIFO data buffer is probably a good solution - some work to do there. The test code was pretty rough and ready so its needs a lot of refinement to be truly useful as a valid test.
    • M

      OS Error: I2C bus error on wipy 3.0 with BME 680

      Watching Ignoring Scheduled Pinned Locked Moved Getting Started i2c bus error i2c wipy3.0 bme680
      6
      0 Votes
      6 Posts
      930 Views
      M
      @robert-hh Thanks, I'll try that.
    • O

      Some magnetometer sensors are incompatible with the pytrack shield

      Watching Ignoring Scheduled Pinned Locked Moved LoPy lopy pytrack i2c magnetometer sensors i2c
      13
      0 Votes
      13 Posts
      1k Views
      O
      @robert-hh I looked at that device but I'm trying to keep my system as simple as possible so I did not pursue that option. I does, however, look like a viable alternative in the event your s/w solution was inadequate for some reason. thanks.
    • S

      Help with I2C connection to BME280 on WiPy 2.0 ...

      Watching Ignoring Scheduled Pinned Locked Moved WiPy 2&3 wipy2.0 i2c expension board
      22
      0 Votes
      22 Posts
      5k Views
      robert-hhR
      @sealyons I made a test with the calibrated temperature mesurement device: Calibrated device: 21.7 21.8 DS18B20: 21.9 21.9 DHT22: 21.8 21.9 SI7021: 21.7 21.8 BMP085: 22.4 22.5 BME280: 21.8 21.9 Besides the BMP085, all devices were on the spot = within 1 digit variance. That status was stable for 5 hours testing. Only the BMP085 was always ~0.6 °C above, but still that at the limits of it's spec.
    • B

      Object with buffer protocol required

      Watching Ignoring Scheduled Pinned Locked Moved SiPy ssd1306 i2c buffer downlink
      3
      0 Votes
      3 Posts
      1k Views
      B
      @Eric73 Thank you, it works much better now!
    • S

      i2c device Wiring on Expansion Board & WiPy 3.0

      Watching Ignoring Scheduled Pinned Locked Moved Expansion Board wipy3.0 expansionboard i2c
      7
      1
      0 Votes
      7 Posts
      1k Views
      S
      @eric-waai Yes it was a typo I have 3 i2c devices
    • T

      SI7021 I2C pin setup (SOLVED)

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython micropython si7021 i2c
      59
      0 Votes
      59 Posts
      13k Views
      T
      @robert-hh Awsome! Thank you
    • C

      write word with I2C

      Watching Ignoring Scheduled Pinned Locked Moved MicroPython i2c bit shift
      5
      0 Votes
      5 Posts
      833 Views
      C
      @robert-hh Thanks for the tips. I ended up doing below, which does save 32bytes over struct.pack. self.tempBuff = bytearray(3) def _writeWord(self,address,data): #self.i2c.writeto_mem(self.address, address, struct.pack(">H", data), addrsize=8 ) self.tempBuff[0] = address self.tempBuff[1] = data >> 8 self.tempBuff[2] = data & 0xff self.i2c.writeto(self.address, self.tempBuff)
    • D

      I2C on Wipy 3.0 + extension board

      Watching Ignoring Scheduled Pinned Locked Moved WiPy 2&3 wipy3.0 i2c
      9
      0 Votes
      9 Posts
      1k Views
      robert-hhR
      @dr_aloui In that case it's strange. You you have an oscilloscope to look at the signal timing? The expansion board should not add any significant load to the wires, at least not to P9 and P10. The Pyboard has built-in pullup-resistors on the pins dedicated for I2C (X9/X10 and Y9/Y10). That could makes a difference.
    • 1
    • 2
    • 3
    • 4
    • 1 / 4