Search found 363 matches

by shaoziyang
Tue Apr 19, 2016 2:17 am
Forum: Other Boards
Topic: help DS18x20 sensor in STM32F7DISC
Replies: 1
Views: 2694

Re: help DS18x20 sensor in STM32F7DISC

I have solve this problem. It cause by onewire delay. Open onewire.py, and modify

self.write_delays = (1, 40, 40, 1)
self.read_delays = (1, 1, 40)

to

self.write_delays = (6, 64, 60, 10)
self.read_delays = (6, 9, 55)

then DS1820 will work in STM32F7DISC now.
by shaoziyang
Mon Apr 18, 2016 8:48 am
Forum: Other Boards
Topic: I2C1 is not work correctly in STM32F7DISC
Replies: 0
Views: 2860

I2C1 is not work correctly in STM32F7DISC

I use I2C1 in STM32F7DISC to control a RTC chip (DS1307), I2C may work, but data is not correctly. Same chip and code is work fine with PYB v1.0.
by shaoziyang
Sun Apr 17, 2016 2:04 pm
Forum: Other Boards
Topic: help DS18x20 sensor in STM32F7DISC
Replies: 1
Views: 2694

help DS18x20 sensor in STM32F7DISC

I build micropython 1.7 with STM32F7DISC board, it works fine. When I connect a DS1820 sensor, it is not work, but Same DS1820 sensor is work in pyboard v1.0. >>> # STM32F7DISCO >>> from pyb import Pin >>> Pin('D2', Pin.OUT_PP).low() >>> Pin('D0', Pin.OUT_PP).high() >>> pyb.delay(100) >>> >>> from d...