Search found 99 matches

by rpr
Sun Oct 13, 2019 4:53 pm
Forum: Other Boards
Topic: STM32F103C8T6 Data Acquisition board
Replies: 3
Views: 2811

Re: STM32F103C8T6 Data Acquisition board

Many thank for the response. I suspected as much that this was the limitation. I like the compact size and all in one solution if that board. Will see if I can rig up something with a an esp32, a proto board, and some terminal blocks.
by rpr
Sat Oct 12, 2019 10:39 pm
Forum: Other Boards
Topic: STM32F103C8T6 Data Acquisition board
Replies: 3
Views: 2811

STM32F103C8T6 Data Acquisition board

For some simple data acquisition, I'm planning to get one of these STM32F103C8T6 boards: https://www.aliexpress.com/item/32965348225.html. Is it possible to get MicroPython to work on these? Thanks.

Image
by rpr
Tue Oct 08, 2019 12:37 am
Forum: General Discussion and Questions
Topic: ESP32 access via Ipad
Replies: 13
Views: 11701

Re: ESP32 access via Ipad

I just tried from an android phone to conenct to webrepl on my esp32. The webpage loads and asks for the password. However the webrepl connection fails with the following: Access denied Disconnected message from the phone browser. The message on the ESP32 console/repl is dupterm: EOF received, deact...
by rpr
Sat Oct 05, 2019 10:27 pm
Forum: General Discussion and Questions
Topic: ESP32 access via Ipad
Replies: 13
Views: 11701

Re: ESP32 access via Ipad

Indeed, I use webrepl on my esp32. Works just fine. There is no way around setting it up the first time using a direct USB/serial connection.

Edit to add: there is also telnet server for micropython. Not much experience with it.
by rpr
Fri Oct 04, 2019 11:01 pm
Forum: General Discussion and Questions
Topic: ESP32 access via Ipad
Replies: 13
Views: 11701

Re: ESP32 access via Ipad

AFAIK, the initial install of micropython on a bare esp32 and the initial webrepl setup can only be done via a direct serial/usb connnection. On linux this is usually /dev/ttyUSB0. On a Mac it could be something like /dev/cu.SLAB_USBtoUART or such. After Micropython is installed, again over the same...
by rpr
Wed Sep 25, 2019 6:28 pm
Forum: General Discussion and Questions
Topic: Converting given Epoch / Unix timestamp to GMT
Replies: 7
Views: 6196

Re: Converting given Epoch / Unix timestamp to GMT

iotmar wrote:
Wed Sep 25, 2019 4:29 pm
I had no idea you could manipulate the outcome of the timestamp this way.
With Python, you can do anything. :)

Image

https://xkcd.com/353/
by rpr
Wed Sep 25, 2019 4:01 pm
Forum: General Discussion and Questions
Topic: Converting given Epoch / Unix timestamp to GMT
Replies: 7
Views: 6196

Re: Converting given Epoch / Unix timestamp to GMT

Try:

Code: Select all

x = time.localtime(data_when["request"]["datetime"] - 946684800)
by rpr
Wed Sep 25, 2019 6:22 am
Forum: General Discussion and Questions
Topic: Converting given Epoch / Unix timestamp to GMT
Replies: 7
Views: 6196

Re: Converting given Epoch / Unix timestamp to GMT

Code: Select all

# Following returns the time tuple taking into account the epoch start difference 1970 vs 2000
>>> x = time.localtime(isstime)
>>> print("%4d/%02d/%02d %02d:%02d:%02d " % x[:6])
2019/09/25 06:21:06
Not exactly your requested format but you could slice the tuple to achieve your desired print.
by rpr
Tue Sep 24, 2019 10:42 pm
Forum: General Discussion and Questions
Topic: Converting given Epoch / Unix timestamp to GMT
Replies: 7
Views: 6196

Re: Converting given Epoch / Unix timestamp to GMT

From what I see there is no strftime in the libs that come with the default firmware. http://docs.micropython.org/en/latest/library/utime.html However, there is a separate micropython-lib called time which has the strftime which presumably can be installed via upip. https://github.com/micropython/mi...
by rpr
Mon Sep 23, 2019 12:08 am
Forum: General Discussion and Questions
Topic: Phase Mesurement with Pyboard up to 100 kHz
Replies: 6
Views: 3565

Re: Phase Mesurement with Pyboard up to 100 kHz

There is the following article on the MicroPython Wiki:

https://github.com/peterhinch/micropyth ... /README.md

Maybe @pythoncoder (Peter Hinch) can add more information.