Search found 2644 matches

by Roberthh
Sat May 01, 2021 7:41 pm
Forum: Raspberry Pi microcontroller boards
Topic: Hard hang on accessing the filesystem
Replies: 3
Views: 1133

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: 6
Views: 1301

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: 816

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: 1311

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: 942

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.
by Roberthh
Fri Apr 30, 2021 1:19 pm
Forum: Raspberry Pi microcontroller boards
Topic: Error when importing custom python module
Replies: 9
Views: 697

Re: Error when importing custom python module

I should specify that the error is received FROM the board, so i was thinking if i should compile the file using mpy-cross before uploading it to the board
There should not be a difference between using .py or .mpy files, besides import time.
by Roberthh
Fri Apr 30, 2021 1:17 pm
Forum: Drivers for External Components
Topic: Driver for SCD30 CO2 Sensor
Replies: 7
Views: 1311

Re: Driver for SCD30 CO2 Sensor

a) did you connect the SEL pin of the sensor to GND?
b) the baud rate must not exceed 50000. The default is 100000. So try a lower baud rate, like 10000.
c) according to the data sheet the internal pull-up of the sensor is 45k. That works only with short cables
by Roberthh
Fri Apr 30, 2021 12:38 pm
Forum: Raspberry Pi microcontroller boards
Topic: Error when importing custom python module
Replies: 9
Views: 697

Re: Error when importing custom python module

Working with emacs and elisp, nothing should frighten you. I prefer using the mpr.py (with pyboard.py) script for copying files to the on-board file system. You can surely add a shell command into emacs. pyboard.py is at https://github.com/micropython/micropython/tree/master/tools, and mpr.py is sti...
by Roberthh
Fri Apr 30, 2021 11:31 am
Forum: Raspberry Pi microcontroller boards
Topic: Error when importing custom python module
Replies: 9
Views: 697

Re: Error when importing custom python module

That's indeed strange. I am using this mechanism regularly. Can you show a simple version of your code which shows the error? And you do use an IDE like Thonny? The latter may may hide whether files are permanently uploaded to the target or not. For verification use a simple terminal emulator like P...