Search found 15 matches

by greentree
Sat May 21, 2022 2:37 pm
Forum: Pyboard D-series
Topic: ntptime kills the wifi station, hard reset required to fix
Replies: 20
Views: 89324

Re: ntptime kills the wifi station, hard reset required to fix

@davef, thanks for sharing that code. I'll add Peter Hinch's fix to settime. In my application, NTP is only correcting the DS3231 RTC, which is pretty accurate for long periods, but battery life is limiting. So having time resets work only some of the time is less problematic than long delays during...
by greentree
Fri May 20, 2022 3:17 pm
Forum: Pyboard D-series
Topic: ntptime kills the wifi station, hard reset required to fix
Replies: 20
Views: 89324

Re: ntptime kills the wifi station, hard reset required to fix

Has anyone made progress on this issue? I've encountered similar flakiness with ntptime.py (borrowed as above from the ESP8266 port) using MicroPython v1.18 on a PYBD-SF2W. However, a hard reboot to reset the wifi seems at this point unnecessary. I've set s.settimeout(10) #s.settimeout(1) in ntptime...
by greentree
Mon Dec 20, 2021 9:29 pm
Forum: Drivers for External Components
Topic: driver for SI1132 UV/IR/Visible light sensors
Replies: 0
Views: 16559

driver for SI1132 UV/IR/Visible light sensors

A driver for SI1132 sensors, minimally modified from https://github.com/ControlEverythingCommunity/SI1132 to work in micropython on an ESP8266. It uses SMBus emulation from https://github.com/gkluoe/micropython-smbus . Example: from machine import Pin from usmbus import SMBus from si1132 import SI11...
by greentree
Thu Aug 13, 2020 4:21 pm
Forum: MicroPython pyboard
Topic: Accessing pyBoard from Android via USB-OTG
Replies: 3
Views: 3710

Re: Accessing pyBoard from Android via USB-OTG

Has anyone made progress on this issue? I'm working on an Adafruit STM32F405 Feather Express, with the firmware Adafruit provides at https://cdn-learn.adafruit.com/assets/assets/000/083/671/original/micropython_1.9.4_Feather_STM32F405.zip?1573009976 I'm able to access the filesystem (and, simultaneo...
by greentree
Thu Jan 05, 2017 3:58 am
Forum: ESP8266 boards
Topic: mpfshell or similar on OS X
Replies: 2
Views: 3193

mpfshell or similar on OS X

I've been using mpfshell on my ubuntu machines for serial communications with ESP8266 HUZZAH Breakout boards, which has been working very well (many thanks, @wendlers!). I'm now trying to help some students who use OS X machines. mpfshell installs via setup.py and appears to launch without errors th...
by greentree
Mon Nov 14, 2016 12:30 am
Forum: ESP8266 boards
Topic: Module for Ultrasonic sensor (HC-SR04)
Replies: 37
Views: 46844

Re: Module for Ultrasonic sensor (HC-SR04)

Thanks for these suggestions! I have an analog IR distance sensor -- I can work out the the power issues temporarily while I wait for one of the I2C sensors. I'll give it a try. I'm still interested in the acoustic sensor, if it is workable. Using sound as a sensing mechanism has some intrinsic valu...
by greentree
Mon Nov 14, 2016 12:23 am
Forum: ESP8266 boards
Topic: The state of the community
Replies: 11
Views: 10507

Re: The state of the community

Hello all, I've been using teensies and the like for teaching a mixture of technology and environmental science at the University level and also in middle and high school classes. My goals are to entrain the many students for whom hands on learning works better than listening to lectures. This inclu...
by greentree
Sun Nov 13, 2016 6:47 pm
Forum: ESP8266 boards
Topic: Module for Ultrasonic sensor (HC-SR04)
Replies: 37
Views: 46844

Re: Module for Ultrasonic sensor (HC-SR04)

Hi! I'm very interested in the potential of using inexpensive acoustic sensors for tide and wave measurements. Thanks for posting your work in progress. Are there any updates on your results and advice?
by greentree
Wed Oct 26, 2016 4:43 pm
Forum: ESP8266 boards
Topic: DS18B20 error
Replies: 11
Views: 13976

Re: DS18B20 error

Some more specifics for an array of six DS18B20 sensors. With DS18X20 from frozen bytecode: from machine import Pin from onewire import OneWire from time import sleep_ms from ds18x20 import DS18X20 p12 = Pin(12, Pin.OUT) p12.high() p14 = Pin(14, Pin.OUT) p14.low() ow = OneWire(Pin(13)) print(ow.scan...
by greentree
Wed Oct 26, 2016 4:35 pm
Forum: ESP8266 boards
Topic: DS18B20 error
Replies: 11
Views: 13976

DS18B20 error

As far as I can tell there is an issue reading DS18B20 sensors with recent firmware, where the normal usage fails during the DS18X20.scan() call. That seems to be because the filter for DS18X20 types onewire devices rejects ROMs that it should accept (or else the ROMs are being read incorrectly). Re...