Search found 1320 matches

by Roberthh
Sat Apr 20, 2019 4:03 pm
Forum: ESP8266 boards
Topic: very strange behavior with sd and nodemcu
Replies: 3
Views: 63

Re: very strange behavior with sd and nodemcu

I made the experience that not every card works. And a 5V module includes a regulator, which are not needed with the NodeMCU. Take care that the supply voltage of the SD card is sufficient. If the Module has a regulator, you may supply it with 5V. The output level of MISO should still be at 3.3 V.
by Roberthh
Sat Apr 20, 2019 1:26 pm
Forum: ESP8266 boards
Topic: very strange behavior with sd and nodemcu
Replies: 3
Views: 63

Re: very strange behavior with sd and nodemcu

I'm using the same driver on a WEMOS D1 Mini with its SD card daughterboard. It works, but requires sometime a second reset or power cycle before the card is detected. Please take care that the cards only contain a single FAT or FAT32 partition. Upon delivery, Micro-SD cards ofter have another hidde...
by Roberthh
Fri Apr 19, 2019 7:34 am
Forum: General Discussion and Questions
Topic: Problem with socket.getadrinfo() over mobile hotspot
Replies: 5
Views: 94

Re: Problem with socket.getadrinfo() over mobile hotspot

You have to supply the IP address as a string, e.g. "192.168.1.1"
by Roberthh
Thu Apr 18, 2019 6:13 pm
Forum: MicroPython pyboard
Topic: code in internal flash and mounting sd card as usb mass storage
Replies: 7
Views: 118

Re: code in internal flash and mounting sd card as usb mass storage

In that case you should consider to create your own firmware image and replace in the file main.c "boot.py" by "/flash/boot.py" and "main.py" by "/flash/main.py")
by Roberthh
Tue Apr 16, 2019 12:19 pm
Forum: MicroPython pyboard
Topic: I can't access microSD cards with Pyboard 1.1
Replies: 17
Views: 258

Re: I can't access microSD cards with Pyboard 1.1

On Pyboard D the SD card is not automatically mounted. So you have to mount it yourself.
by Roberthh
Tue Apr 16, 2019 11:09 am
Forum: ESP32 boards
Topic: Can not put code to board using ampy
Replies: 2
Views: 83

Re: Can not put code to board using ampy

Purtting the script to the baord ios the first step. But then you have to start it, e.g. form the REPL with:

import blink

You should see the file on the devices, if at REPL you enter:

import uos
uos.listdir()
by Roberthh
Tue Apr 16, 2019 11:05 am
Forum: General Discussion and Questions
Topic: noise in the REPL
Replies: 5
Views: 71

Re: noise in the REPL

The garbage will not go away. That is sent before Micropython starts.
But now you have a main.py with a syntax error.
by Roberthh
Tue Apr 16, 2019 10:25 am
Forum: General Discussion and Questions
Topic: noise in the REPL
Replies: 5
Views: 71

Re: noise in the REPL

The garbage at the start of the ESP8266 is caused by the boot message of the ESP8266 rom loader sending at 74880 baud. Later MicroPython switches to 115200 baud. The reason for the message OSError: [Errno 2] ENOENT ist most likely the missing main.py script. If you have a main.py file, the message s...
by Roberthh
Mon Apr 15, 2019 2:04 pm
Forum: ESP32 boards
Topic: ESP32 can't run the program after reset or re-supply power
Replies: 4
Views: 84

Re: ESP32 can't run the program after reset or re-supply power

If you do not store the code in a file on the device, it is lost after reset. There are many tools to copy files between your PC and the Micropython device, like rhshell, ampy, webrepl, upycraft, ... Most Micropython devices have an small internal file system in which you can store your scripts, and...