Search found 3214 matches

by pythoncoder
Tue Feb 19, 2019 12:37 pm
Forum: ESP8266 boards
Topic: Designing resilient IOT applications
Replies: 8
Views: 418

Re: Designing resilient IOT applications

No. It would require significant changes. Worse, it would defeat the object of the design. The aim is to have internet facing applications running on a device with an OS, with an internet connection which is under OS control. Hence the inherent unreliability of a WiFi link affects just one interface...
by pythoncoder
Mon Feb 18, 2019 7:02 pm
Forum: ESP8266 boards
Topic: Designing resilient IOT applications
Replies: 8
Views: 418

V0.2 release

This project evolved since my first post and became a collaboration between myself and Kevin Köck. Key features: The API is similar for client and server applications. It is cross-platform supporting ESP8266 and Pyboard D clients. It supports guaranteed message delivery: a message will be delivered ...
by pythoncoder
Mon Feb 18, 2019 2:01 pm
Forum: General Discussion and Questions
Topic: Error when flashing ESP32 - Testing if ubinascii.unhexlify exists ...
Replies: 17
Views: 470

Re: Error when flashing ESP32 - Testing if ubinascii.unhexlify exists ...

Some ESP8266 boards require special esptool args. I have found the following -fm values to work on some hardware: esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --verify --flash_size=8m -fm qio 0 build/firmware-combined.bin esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --verify ...
by pythoncoder
Mon Feb 18, 2019 7:02 am
Forum: The MicroPython pyboard
Topic: AttributeError: 'module' object has no attribute 'Pin'
Replies: 10
Views: 212

Re: AttributeError: 'module' object has no attribute 'Pin'

... Apart from the imports main.py is empty. I would suggest having main.py completely empty during development; also issuing a soft reset (ctrl-D) between each run. I have seen similar errors: I've never managed to pin down the exact cause, but they seem to stem from failing to "clear the decks" b...
by pythoncoder
Mon Feb 18, 2019 6:51 am
Forum: General Discussion and Questions
Topic: RuntimeError from PEP479 violation - need help
Replies: 3
Views: 74

Re: RuntimeError from PEP479 violation - need help

At risk of suggesting the obvious, have you tried running the code under CPython to see if it offers a more comprehensive traceback?
by pythoncoder
Sun Feb 17, 2019 11:30 am
Forum: The MicroPython pyboard
Topic: Questions and wish list about Pyboard D
Replies: 20
Views: 739

Unofficial guide to the Pyboard D.

I've posted this unofficial guide to the Pyboard D. Some of the content is based on my testing, the rest on information from Damien (reproduced with his permission).

Any additions/corrections/PR's/comments from those with boards are welcome.
by pythoncoder
Sat Feb 16, 2019 9:46 am
Forum: The MicroPython pyboard
Topic: opening internal pull-up for I2C is so complex!!
Replies: 3
Views: 123

Beware of internal pull-up for I2C.

Quite. But the internal pullup value is probably too large for reliable I2C operation. This is relevant for anyone using soft I2C.
by pythoncoder
Fri Feb 15, 2019 2:49 pm
Forum: The MicroPython pyboard
Topic: opening internal pull-up for I2C is so complex!!
Replies: 3
Views: 123

Not on a Pyboard 1.x

The Pyboard 1.x has physical 4.7KΩ resistors to 3.3V on both I2C ports so there is no need for special coding.
by pythoncoder
Thu Feb 14, 2019 11:18 am
Forum: ESP8266 boards
Topic: Pyboard code on ESP2866
Replies: 1
Views: 96

Re: Pyboard code on ESP2866

... >>>from machine import I2C, Pin >>>i2c = I2C(scl=Pin(5),sda=Pin(4)) ## Works OK Now back to the README.md instructions, with some misguided initiative: >>>imu = MPU9250(i2c) ... That is the correct way to set it up, and your scan result is correct. The fact that you're getting ValueError: Bad c...
by pythoncoder
Wed Feb 13, 2019 12:22 pm
Forum: ESP32 boards
Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Replies: 21
Views: 521

Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC

You need to read up on Python packages. The server example I gave you is organised as a package, and the import is from __init__.py. However I wouldn't spend time trying to follow the application code. I suggest you look at the _send and _read methods as examples of how to write to and to read from ...