Search found 2644 matches

by Roberthh
Fri Apr 30, 2021 6:08 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico Micropython overclocked twice (250MHz) works fine
Replies: 12
Views: 2051

Re: Pico Micropython overclocked twice (250MHz) works fine

I do not know of a specific firmware.250MHZ.uf2. You set the frequency with the generic v1.15 firmware at each startup, like in main.py. So add to main.py:

import machine
machine.freq(250_000_000)

If you look through the forum, you will also find hints to use even higher frequencies.
by Roberthh
Wed Apr 28, 2021 11:25 am
Forum: Programs, Libraries and Tools
Topic: Every time the device restarts, the random number is a fixed value
Replies: 9
Views: 772

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

It is a definition in mpconfigport.h which has to be changed. The new value is:

#define MICROPY_PY_URANDOM_SEED_INIT_FUNC (esp_random())
by Roberthh
Wed Apr 28, 2021 9:26 am
Forum: ESP32 boards
Topic: PWM on ESP32
Replies: 3
Views: 339

Re: PWM on ESP32

The 74hc14 is an inverter, not an oscillator. It just inverts the polarity of a signal. You may use it to build an oscillator, but that is not the primary application.
by Roberthh
Tue Apr 27, 2021 8:21 pm
Forum: Raspberry Pi microcontroller boards
Topic: UART not working with today's version of micropython
Replies: 45
Views: 2774

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

Thank you for raising that question. That brought me to change my test. The problem with duplicate characters being sent disappears if the instantiation of the UART is made in the thread that finally uses the UART. So if you move the UARt set-up to core1 as well, then the problem may be gone. P.S.: ...
by Roberthh
Tue Apr 27, 2021 3:16 pm
Forum: Drivers for External Components
Topic: MCP9808 High Precision Temperature Sensor
Replies: 16
Views: 12321

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

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

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

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.