SamsungResearchUK-IoT-Meetup / multimode_sensor_platform

This is the code, instruction, description, how to guides, wiki and project planning for the multimode sensor talk and workshop given at PyConDe 2019.
MIT License
14 stars 5 forks source link

I2C does not work on Pyboard 'D' with build v1.11-63 #12

Closed nherriot closed 5 years ago

nherriot commented 5 years ago

When testing on Pyboard 'D' with compiled source at version:

MicroPython v1.11-63-gd889def-dirty on 2019-07-02; PYBD-SF2W with STM32F722IEK

I2C does not work for the HDC2080 tile sensor. To reproduce the bug on the pyboard do:

import machine i2c = machine.I2C('X') i2c.scan() []

Also if you try and read and write to an I2C device you will get OS Error 19.

hdc = HDC2080(i2c) hdc.measure() Traceback (most recent call last): File "", line 1, in File "", line 11, in measure OSError: [Errno 19] ENODEV

Tasks to fix are:

nherriot commented 5 years ago

I've compiled and pushed new firmware images for 2F2W and flashed to an SF2W board. So far so good. This is in branch: https://github.com/SamsungResearchUK-IoT-Meetup/multimode_sensor_platform/tree/ISSU13-I2C-does-not-work-on-PyboardD

I have not tested on SF3, SF6 yet.

Sensors seem to work intermittently. Once this is tested on SF3, SF6 we can close this off.

nherriot commented 5 years ago

Added a /test/test_sensor.py file which is based on the example code. I've also added the config line to enable I2C on the new pyboard D. Tested on SF2 and SF6. I don't have an SF3 - so this will have to be done by Christine I guess?

test_sensors.py

Now closing and merging this branch with master.

nherriot commented 5 years ago

Pull request merged.

https://github.com/SamsungResearchUK-IoT-Meetup/multimode_sensor_platform/pull/17