Search found 3411 matches

by pythoncoder
Tue Jun 18, 2019 9:49 am
Forum: ESP8266 boards
Topic: How to switch on a electric bulb with ESP8266 board?
Replies: 40
Views: 1094

Re: How to switch on a electric bulb with ESP8266 board?

The Wiki http://wiki.micropython.org/Home has links to drivers for a variety of devices. You can also search this forum.
by pythoncoder
Mon Jun 17, 2019 6:07 pm
Forum: Pyboard D-series
Topic: Using Timers on Pyboard 'D'.
Replies: 3
Views: 97

Re: Using Timers on Pyboard 'D'.

Ensuring a resilient WiFi connection is non trivial. Maintaining a WiFi connection in the face of inevitable outages is best achieved using asynchronous programming ( uasyncio ). This enables better control than timers which can kick in at any point in the code. this doc describes the technical issu...
by pythoncoder
Mon Jun 17, 2019 5:51 pm
Forum: ESP8266 boards
Topic: How to switch on a electric bulb with ESP8266 board?
Replies: 40
Views: 1094

Re: How to switch on a electric bulb with ESP8266 board?

There are many ways to do it, depending on the electronic interface of the device. MicroPython supports various interfaces: UARTs, I2C, SPI, CAN or simply changing Pin inputs. There are also drivers for various devices, some official, some contributed by users. UARTs are somewhat problematic on ESP8...
by pythoncoder
Mon Jun 17, 2019 8:53 am
Forum: Programs, Libraries and Tools
Topic: Call method and passed as a parameter
Replies: 18
Views: 306

Re: Call method and passed as a parameter

jimmo wrote:
Sun Jun 16, 2019 5:47 pm
...
When you past code into the forum, select it and then press the </> button so the formatting is preserved.
When someone omits to do this (or can't because they are a new forum user) you can see the formatting by pressing the quote button. A tip someone gave me a while ago.
by pythoncoder
Mon Jun 17, 2019 8:45 am
Forum: General Discussion and Questions
Topic: Arbitrary precision LibBF library port to MicroPython
Replies: 3
Views: 132

Re: Arbitrary precision LibBF library port to MicroPython

Interesting. I have a lunar clock which I built many years ago. It has a servo-driven pointer indicating the lunar phase. It can display and predict sun and moon rise and set times and lunar quarters. It uses double precision FP (in C). Note that the Pyboard D SF6W supports DP in hardware. Other por...
by pythoncoder
Mon Jun 17, 2019 8:15 am
Forum: Hardware Projects
Topic: Thermal imaging camera (Pyboard D based)
Replies: 2
Views: 95

Re: Thermal imaging camera (Pyboard D based)

Adafruit have an amazing video which brings out more detail than my bicubic interpolation (scroll down the page to see it). They achieve this using heavy-duty software running on a Raspberry Pi. I don't believe this combination of image processing and frame rate is achievable on a Pyboard. The bicub...
by pythoncoder
Mon Jun 17, 2019 8:07 am
Forum: ESP8266 boards
Topic: How to switch on a electric bulb with ESP8266 board?
Replies: 40
Views: 1094

Re: How to switch on a electric bulb with ESP8266 board?

I'm not sure what you're asking. That code would work on an ESP8266. If you're planning to use that technique to set the RTC manually you could input a time/date string but you'd need to parse it in code and do some validation. In considering ways to compensate for RTC drift you need to consider the...
by pythoncoder
Sun Jun 16, 2019 5:37 pm
Forum: Hardware Projects
Topic: Thermal imaging camera (Pyboard D based)
Replies: 2
Views: 95

Thermal imaging camera (Pyboard D based)

This uses the Adafruit AMG8833 sensor with their 1.5 inch OLED display . The AMG8833 device driver is here . The display is mounted on a custom PCB with the Pyboard D SF2W in a WBUS-DIP28 adaptor on the rear. The WBUS-DIP28 could be dispensed with and connections made to the D pins, except that I am...
by pythoncoder
Sun Jun 16, 2019 8:32 am
Forum: ESP8266 boards
Topic: How to switch on a electric bulb with ESP8266 board?
Replies: 40
Views: 1094

Re: How to switch on a electric bulb with ESP8266 board?

@RajaRamesh The ntptime module is merely used to initialise the RTC. If you have an internet connection it's the obvious way to do it, but you can set it by any means you wish. Note that the RTC on the ESP8266 is not very accurate and it may need setting at regular intervals.
by pythoncoder
Sun Jun 16, 2019 7:48 am
Forum: General Discussion and Questions
Topic: Arbitrary precision LibBF library port to MicroPython
Replies: 3
Views: 132

Re: Arbitrary precision LibBF library port to MicroPython

Impressive! Out of interest can you envisage applications for running this on microcontrollers?