Go to advanced search

by scruss
Fri Nov 26, 2021 4:06 pm
Forum: MicroPython
Topic: Calling a function with a timer breaks Thonny
Replies: 8
Views: 233

Re: Calling a function with a timer breaks Thonny

(Disclaimer: I don't have a Pico at hand at the moment, so the following code is tested on an ESP 32) Can I help with that? I worked for a reseller in Canada and would be happy to send you one or two free of charge. I'll ping you via Twitter, but otherwise let me know at stewart @ elmwoodelectronic...
by scruss
Thu Nov 25, 2021 10:00 pm
Forum: General
Topic: Pico Crashing when PIR triggers
Replies: 17
Views: 319

Re: Pico Crashing when PIR triggers

It may not be exactly the same, but it's mostly what I see the developers on micropython.org using.
by scruss
Thu Nov 25, 2021 9:10 pm
Forum: General
Topic: Raspberry Pico Issue with Thonny
Replies: 12
Views: 551

Re: Raspberry Pico Issue with Thonny

This seems to be the same issue that the Thonny author is having with MicroPython 1.17 on the Pico: Re: Device is busy or does not respond - Raspberry Pi Pico
I can confirm that this problem affects me too
by scruss
Thu Nov 25, 2021 9:07 pm
Forum: MicroPython
Topic: Device is busy or does not respond - Raspberry Pi Pico
Replies: 18
Views: 1517

Re: Device is busy or does not respond - Raspberry Pi Pico

Can confirm exact behaviour, Aivar. Added my comment to the issue.
by scruss
Thu Nov 25, 2021 8:48 pm
Forum: Troubleshooting
Topic: fldigi wefax image sync issue on raspberry pi 4 PART 2
Replies: 1
Views: 61

Re: fldigi wefax image sync issue on raspberry pi 4 PART 2

If you keep something like top or htop running, you can see memory and CPU use.

Is fldigi fighting with CubicSDR and SDRuno for access to the sound card? wefax is pretty low bandwidth, and shouldn't be taxing a 4 GB Raspberry Pi 4B at all.
by scruss
Thu Nov 25, 2021 8:41 pm
Forum: General
Topic: Pico Crashing when PIR triggers
Replies: 17
Views: 319

Re: Pico Crashing when PIR triggers

cjdawson wrote:
Thu Nov 25, 2021 7:38 pm
utime means MicroTime. It's the library for MicroPython for doing time related things.
It seems that the MicroPython developers are keen on phasing out the u prefixes. The Getting Started book might have utime, but

Code: Select all

import time
works just as well.
by scruss
Thu Nov 25, 2021 2:07 pm
Forum: General
Topic: Pico Crashing when PIR triggers
Replies: 17
Views: 319

Re: Pico Crashing when PIR triggers

The PIR I have (which has a slightly different component layout from yours) has the pins L-R: GND - OUT - 5V
(not super-clear picture here: Modding an Adafruit PIR for 3.3 volts).

You may have put 5 V down an input port, which may have damaged your Pico
by scruss
Thu Nov 25, 2021 12:48 am
Forum: General
Topic: Pico Crashing when PIR triggers
Replies: 17
Views: 319

Re: Pico Crashing when PIR triggers

PIRs usually have a really clean output and stay in a triggered state for a decent amount of time.

What's the wiring of your circuit?
by scruss
Wed Nov 24, 2021 9:30 pm
Forum: General discussion
Topic: Will you make microchips like RP2040, but with leads (QFP)?
Replies: 19
Views: 630

Re: Will you make microchips like RP2040, but with leads (QFP)?

If only the Pico were 2.54 mm narrower, it'd be the same size as a wide 40-pin PDIP ...
by scruss
Wed Nov 24, 2021 8:18 pm
Forum: General discussion
Topic: Stateless Volume Knob
Replies: 4
Views: 158

Re: Stateless Volume Knob

If you want easy and this is a one-off device then buy a premade USB volume control. ... Or make one. I use one of these: todbot/qtpy-knob: QT Py Media Knob using rotary encoder & neopixel ring , or my own modification that uses a more generally available encoder: ElmwoodElectronics/qtpy-knob: ...
by scruss
Wed Nov 24, 2021 8:12 pm
Forum: MicroPython
Topic: Calling a function with a timer breaks Thonny
Replies: 8
Views: 233

Re: Calling a function with a timer breaks Thonny

It should work fine outside Thonny. Thonny's just annoyed that it's seeing output when it's not expecting any
by scruss
Mon Nov 22, 2021 10:10 pm
Forum: General
Topic: True Random Number Genetator
Replies: 23
Views: 801

Re: True Random Number Genetator

Apart from correcting for modulo bias the traditional way, no. I'm wondering if a means of generating true random numbers on the ATMega-based Arduinos has an analogue on the RP2040. The ATMegas have a main crystal or resonator-controlled clock, but also a less accurate clock (in the watchdog reset i...
by scruss
Sat Nov 20, 2021 6:22 pm
Forum: General
Topic: True Random Number Genetator
Replies: 23
Views: 801

Re: True Random Number Genetator

Won't you also lose uniformity? Floating point values aren't evenly spaced at all
by scruss
Sat Nov 20, 2021 6:08 pm
Forum: General
Topic: p-touch pico pin labels
Replies: 4
Views: 188

Re: p-touch pico pin labels

Never used SWD, probably never will: MicroPython or MMBasic live on my Picos. I mean, I suppose I could use machine.bootloader() to load a UF2, after all.
by scruss
Fri Nov 19, 2021 10:17 pm
Forum: Beginners
Topic: Espeak less robotic voice
Replies: 3
Views: 147

Re: Espeak less robotic voice

espeak doesn't sound great, and the package was abandoned some years ago. espeak-ng might have better voices.

Pico TTS doesn't seem to be available in Bullseye. It's only got one voice, but it's rather clear.
by scruss
Fri Nov 19, 2021 1:11 pm
Forum: General
Topic: True Random Number Genetator
Replies: 23
Views: 801

Re: True Random Number Genetator

@scruss, thank you for your message, I think it is the same implementation as rand() unless I am missing something. I'm pretty sure it's not. I ran a gigabyte of os.urandom() data through rngtest and it gave me 388 fails / 429108 passes. A gigabyte of /dev/urandom (= good enough for crypto) data on...
by scruss
Fri Nov 19, 2021 1:44 am
Forum: Off topic discussion
Topic: SCSI UFW SSB adapter
Replies: 14
Views: 550

Re: SCSI UFW SSB adapter

Glad you found a machine that would work! Rare and expensive is certainly a tragic understatement.... :) There are a couple of reasons that USB SCSI adapters are rare and expensive. One is a late 90s sampling synth with a very sought-after sound. The way to get data on and off it is via SCSI, so wel...
by scruss
Fri Nov 19, 2021 1:31 am
Forum: General
Topic: True Random Number Genetator
Replies: 23
Views: 801

Re: True Random Number Genetator

What you need is a small piece of radioactive material, a sensor to detect decay particles and some python code to generate a number sequence from that. Nothing else in the universe is truely random, iirc? That's not truly random, either. Because the material is decaying in radioactivity, its rate ...
by scruss
Thu Nov 18, 2021 6:38 pm
Forum: General
Topic: True Random Number Genetator
Replies: 23
Views: 801

Re: True Random Number Genetator

I thought that the RP2040 had a HWRNG, but it seems I was mistaken: 2.17.5. Random Number Generator If the system clocks are running from the XOSC and/or PLLs the ROSC can be used to generate random numbers. Simply enable the ROSC and read the RANDOMBIT register to get a 1-bit random number and read...
by scruss
Thu Nov 18, 2021 1:18 pm
Forum: General
Topic: p-touch pico pin labels
Replies: 4
Views: 188

Re: p-touch pico pin labels

and then you access BOOTSEL and see the LED how?

I've been toying with a dead-bug style Pico holder, but engineering a BOOTSEL-presser-thingy and making a light pipe for the LED seems too much like work.
by scruss
Thu Nov 18, 2021 2:12 am
Forum: General
Topic: p-touch pico pin labels
Replies: 4
Views: 188

p-touch pico pin labels

I keep forgetting which pin does what on the Pico, so I tried making breadboard pin labels on a P-touch label printer. For a first try, they're not bad: pico-labels-photo-smol.jpg I used the basic 12.7 mm tape that most machines can use. The printers don't have the greatest resolution, so I've only ...
by scruss
Wed Nov 17, 2021 1:36 pm
Forum: General
Topic: Converting library from Micropython to CircuitPython
Replies: 13
Views: 401

Re: Converting library from Micropython to CircuitPython

Echoing ame's congratulations. Please publish the working code somewhere. Don't worry if it's not very good: other people can pick it up and make it better. There's clearly a need for this in CircuitPython, and you've filled it. I agree that HX711s are cheap. They work well, too. But their protocol ...
by scruss
Tue Nov 16, 2021 10:53 pm
Forum: General
Topic: Converting library from Micropython to CircuitPython
Replies: 13
Views: 401

Re: Converting library from Micropython to CircuitPython

I'm not sure the CircuitPython forums will be much help. There have been a couple of queries which are basically "How do I use an HX711 with CircuitPython?" in that forum, and the answers range from "you can't" to "here's a really complex access method, go program it yoursel...
by scruss
Mon Nov 15, 2021 7:30 pm
Forum: Beginners
Topic: 1-bit audio through the GPIO pins?
Replies: 7
Views: 258

Re: 1-bit audio through the GPIO pins?

As others have said, these speakers might be a little beefy to drive directly from PWD'd GPIO pins. At worst, you might toast your Raspberry Pi. At best, it'll be very very quiet. An I2S interface with a Class D amp would sound much better. Also, if I remember the Macs I've maintained over the years...
by scruss
Mon Nov 15, 2021 5:08 pm
Forum: Other projects
Topic: How to add real time clock when headless Pi is using GPIO pins
Replies: 13
Views: 681

Re: How to add real time clock when headless Pi is using GPIO pins

FYI, I've been trying to get something useful out of a 60kHz Atomic Clock Receiver Module V3 board, but I think my surroundings are too noisy/far away for WWVB to be able to decode a single frame. This is odd, as we have three "Atomic Clocks" in the house that pick it up fine. I have the m...

Go to advanced search