Search found 42 matches

by ZKDMun
Wed May 23, 2018 8:59 pm
Forum: ESP8266 boards
Topic: Filesystem: Maximum number of files/directories
Replies: 3
Views: 3725

Filesystem: Maximum number of files/directories

How many files and/or directories are possible on the internal filesystem of MicroPython? >>> import os >>> for i in range(1000): >>> dirname = str(i) >>> os.mkdir(dirname) >>> print(i) After ~500, sometimes ~510, new directories, I always get this: Traceback (most recent call last): File "<stdin>",...
by ZKDMun
Mon May 07, 2018 11:03 am
Forum: ESP32 boards
Topic: Changing the CPU frequency on ESP32
Replies: 4
Views: 10420

Re: Changing the CPU frequency on ESP32

ESP32-datasheet: Max-Speed: 240MHz Normal-Speed: 80MHz see here (page 21). >>> machine.freq(120000000) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: frequency can only be either 80Mhz, 160MHz or 240MHz So, 80MHz, 160MHz or 240MHz should be possible with MicroPyth...
by ZKDMun
Mon May 07, 2018 10:46 am
Forum: ESP32 boards
Topic: Changing the CPU frequency on ESP32
Replies: 4
Views: 10420

Changing the CPU frequency on ESP32

Hi there, I have a little problem with changing the CPU frequency on ESP32. On ESP8266, you can do this: >>> import machine >>> machine.freq() 80000000 >>> machine.freq(160000000) >>> machine.freq() 160000000 See here . But on my ESP32, I will get this result: >>> import machine >>> machine.freq() 2...
by ZKDMun
Tue May 01, 2018 12:59 pm
Forum: General Discussion and Questions
Topic: Differences between urandom-module, uos.urandom and os.urandom?
Replies: 2
Views: 3197

Differences between urandom-module, uos.urandom and os.urandom?

Hi there, what exactly is the difference between these three functions (urandom-module, uos.random, os.random) to create random numbers? I am using an ESP8266 and I have implemented some functions to create some random keys of a specific length: key_size_bits = 4096 #urandom-module: def urandomnumb(...
by ZKDMun
Thu Apr 19, 2018 5:01 pm
Forum: ESP32 boards
Topic: SD card problem on ESP-32
Replies: 17
Views: 26088

Re: SD card problem on ESP-32

Which SD-Card-Adapter did you use? Is there any voltage-regulator on this? (e.g. AMS1117)? Did you connect the Adapter VCC with a 3,3V-Pin? Maybe this is the problem - because at the moment I have the same problem, too... anybody will correct me, but if there is something like a AMS1117 voltage regu...
by ZKDMun
Thu Apr 19, 2018 2:25 pm
Forum: ESP8266 boards
Topic: microSD card reading
Replies: 23
Views: 62593

Re: microSD card reading

Silly me! I found my mistake - therefore I used an another kind of NodeMCU, and now I use some NodeMCUs v3 from LoLin. The Pins there are in some cases a little bit different - the Vin supports only 5V-INPUT, no OUTPUT (my another board has an Input-Output-5V) - so I have to connect the VCC with the...
by ZKDMun
Sun Apr 15, 2018 10:39 am
Forum: ESP8266 boards
Topic: microSD card reading
Replies: 23
Views: 62593

Re: microSD card reading

With a second microSD-Card (a "Intenso SDHC 8GB Class10"): >>> import os, machine, sdcard >>> sd = sdcard.SDCard(machine.SPI(1), machine.Pin(15)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "sdcard.py", line 54, in __init__ File "sdcard.py", line 87, in init_card File...
by ZKDMun
Fri Apr 13, 2018 2:56 pm
Forum: ESP8266 boards
Topic: microSD card reading
Replies: 23
Views: 62593

Re: microSD card reading

For those still wondering how to setup an SD card module on the ESP8266 using MicroPython 1.9.1 (as the process changed a bit, it is a lot easier now): Copy sdcard.py to the board (e.g. using ampy) Wiring SD card module <-> ESP8266 (GPIO): GND <-> GND DO/ MISO <-> MISO (12) DI/ MOSI <-> MOSI (13) C...
by ZKDMun
Sun Jan 22, 2017 2:59 pm
Forum: General Discussion and Questions
Topic: str.splitlines() with MicroPython?
Replies: 5
Views: 6315

str.splitlines() with MicroPython?

Using Python I can easily split lines by str.splitlines().
But there is no splitline() attribute for MicroPython?

Because after my HTTP GET request I got this "b'\n1000\n999\n" and I want to seperate the two values (in this example "1000" and "999").
Any ideas? :/
by ZKDMun
Sun Jan 22, 2017 1:18 pm
Forum: General Discussion and Questions
Topic: HTTP GET request to a second board
Replies: 2
Views: 3168

Re: HTTP GET request to a second board

Solved it! It's better to set ap_if.active(False). Or to change the IP address for the client module. Because if not, and the two boards have the same IP adress, it seems that the socket didn't know to which board he have to connect... or something like that. Fact is: with ap_if.actice(False) I was ...