Search found 2639 matches

by Roberthh
Mon May 03, 2021 2:27 pm
Forum: ESP32 boards
Topic: ESP32 and ADC class - pin numbering scheme?
Replies: 3
Views: 126

Re: ESP32 and ADC class - pin numbering scheme?

Micropython uses the GPIO numbers.
by Roberthh
Sun May 02, 2021 6:40 pm
Forum: Raspberry Pi microcontroller boards
Topic: Hard hang on accessing the filesystem
Replies: 3
Views: 865

Re: Hard hang on accessing the filesystem

Please let the title of that isseu start with 'rp2:', which makes it better visible. You can edit the title.
by Roberthh
Sun May 02, 2021 7:25 am
Forum: ESP8266 boards
Topic: ImportError: no module named 'urequests'
Replies: 3
Views: 901

Re: ImportError: no module named 'urequests'

I do not us uPyCraft, so I do not know if it has an option to upload files to the board. Other tools to do so are e.g.
- rshell
- ampy
- pyboard.py
- thonny
by Roberthh
Sun May 02, 2021 7:20 am
Forum: General Discussion and Questions
Topic: input pin level is reversed somehow??
Replies: 4
Views: 911

Re: input pin level is reversed somehow??

The pins X9, X10, Y9 and Y10 have a physically wired pull-up resistor on the board supporting it's use for I2C. This pull-up cannot be overridden by the MCU internal PULL_DOWN, simply because the driving strength of the internal resistor is way lower. It will bring down the voltage at the pin only f...
by Roberthh
Sat May 01, 2021 7:58 pm
Forum: ESP8266 boards
Topic: ImportError: no module named 'urequests'
Replies: 3
Views: 901

Re: ImportError: no module named 'urequests'

The 1M firmware does not include urequests by default. You can add it manually to your file system by copying in this file: into the directory lib: https://github.com/micropython/micropython-lib/blob/master/urequests/urequests.py You may also need this one into a directory called lib/urllib.urequest...
by Roberthh
Sat May 01, 2021 7:41 pm
Forum: Raspberry Pi microcontroller boards
Topic: Hard hang on accessing the filesystem
Replies: 3
Views: 865

Re: Hard hang on accessing the filesystem

I can replicate that with the my own build, using the script below based on the script in the cited forum: from machine import Pin, Timer import uos, time led = Pin(25, Pin.OUT) timer = Timer() count = 0 f = open("afile", "w") f.write("This is a file\n") f.close() def blink(timer): global count; cou...
by Roberthh
Sat May 01, 2021 6:14 pm
Forum: General Discussion and Questions
Topic: input pin level is reversed somehow??
Replies: 4
Views: 911

Re: input pin level is reversed somehow??

About the IRQ: Pin Y9 has an external pull-up resistor of 4.7kOhm. The internal pulls have a value of about 40k. So whatever pull you set, the input level is high, when you set it to input mode. Connecting it to Vcc does not change the level, and therefore the IRQ does not fire. If you connect Y9 to...
by Roberthh
Sat May 01, 2021 6:22 am
Forum: ESP8266 boards
Topic: Unable to upload files to ESP01
Replies: 2
Views: 566

Re: Unable to upload files to ESP01

What is the flash size of the ESP01, and which firmware did you install. I'm asking because the 512k firmware does not provide a file system.
by Roberthh
Fri Apr 30, 2021 7:10 pm
Forum: Drivers for External Components
Topic: Driver for SCD30 CO2 Sensor
Replies: 7
Views: 989

Re: Driver for SCD30 CO2 Sensor

So you are getting responses, but then it breaks after a while. That means the hardware set-up is fine, with SDA, SCL, GND and Vcc for the connection. Sorry, I did not recognize that initially. It is not clear to me how your code looks, but there are also statements from a user mnvk52, which seems t...
by Roberthh
Fri Apr 30, 2021 4:55 pm
Forum: Raspberry Pi microcontroller boards
Topic: Identifying a special Pico
Replies: 9
Views: 583

Re: Identifying a special Pico

There is a PR in the chain for inserting the unique id into the usb id, as being visible in /dev/serial/by-id.