Search found 2639 matches

by Roberthh
Tue Apr 27, 2021 3:16 pm
Forum: Drivers for External Components
Topic: MCP9808 High Precision Temperature Sensor
Replies: 16
Views: 11754

Re: MCP9808 High Precision Temperature Sensor

you could simply use i2c.scan() with the instantiated i2c object to check the connection. It should return a list containing the address of the sensor as decimal value. An empty list or long list indicates an error.
by Roberthh
Tue Apr 27, 2021 2:40 pm
Forum: Programs, Libraries and Tools
Topic: Every time the device restarts, the random number is a fixed value
Replies: 9
Views: 467

Re: Every time the device restarts, the random number is a fixed value

There was a change recently to seed the rng with more random value on boot. Which board and firmware version do you use?
by Roberthh
Tue Apr 27, 2021 2:37 pm
Forum: Drivers for External Components
Topic: MCP9808 High Precision Temperature Sensor
Replies: 16
Views: 11754

Re: MCP9808 High Precision Temperature Sensor

Which mcp9808 driver do you use? Is it the one from this source: https://github.com/kfricke/micropython-mcp9808 I looks like a variant, which allows an integer as argument to i2c.writeto(). You could try to replace __init__ and _send of that class with the following (untested) code: def __init__(sel...
by Roberthh
Tue Apr 27, 2021 2:03 pm
Forum: Hardware Projects
Topic: open drain setup with level converter
Replies: 4
Views: 323

Re: open drain setup with level converter

Yes, that's a good wiring. You can also add a resistor between Drain and 5V, unless that already exists on the target board. So you would write a 1 to the GPIO port to get a low value and Drain, and a 0 to get a high impedance of the 2N7000.
by Roberthh
Tue Apr 27, 2021 11:50 am
Forum: Raspberry Pi microcontroller boards
Topic: UART not working with today's version of micropython
Replies: 45
Views: 1890

Re: UART not working with today's version of micropython

I still have no grip on that topic. The only thing I noticed is, that it runs stable if the interrupt handling is on the first core (core 0). Then the second core may run other tasks.
by Roberthh
Tue Apr 27, 2021 11:48 am
Forum: Hardware Projects
Topic: open drain setup with level converter
Replies: 4
Views: 323

Re: open drain setup with level converter

I would use a single transistor/resistor inverter (e.g. 2N7000) in that case. Easy to set-up, robust.
by Roberthh
Tue Apr 27, 2021 6:14 am
Forum: Raspberry Pi microcontroller boards
Topic: Raspberry Pico connection problem
Replies: 4
Views: 352

Re: Raspberry Pico connection problem

To be sure, that the Pico works fine, try using a simple terminal emulator like Putty (Windows) or picocom (Raspi).
by Roberthh
Tue Apr 27, 2021 6:12 am
Forum: ESP32 boards
Topic: PWM on ESP32
Replies: 3
Views: 249

Re: PWM on ESP32

Using an external inverter may be more dependable in this case (e.g. 74HC14).
by Roberthh
Mon Apr 26, 2021 6:20 pm
Forum: Raspberry Pi microcontroller boards
Topic: Raspberry Pico connection problem
Replies: 4
Views: 352

Re: Raspberry Pico connection problem

When you have downloaded the .uf2 file once, there is not need to do that again, unless you want to change tht firmware. What happens if you connect the device without pushing the bootsel button. Then it should be in normal operation mode.