#help-with-linux-sbcs

1 messages · Page 3 of 1

faint sparrow
#

If it hiccups you might leave the strand of APA102 in an odd state but it'll recover automatically when it receives the rest of the data making up that frame.

crisp lion
#

actually, speaking of hiccups... that's what I am getting from neopixels... must be the poor Pi choking

faint sparrow
#

I've never done this and never will so I could have something very very wrong here. ;)

crisp lion
#

as you mentioned earlier, it doesn't like them neopixels too much, very precise timing etc

faint sparrow
#

Beware the Turing tar-pit: where anything is possible and nothing is easy.

crisp lion
#

oh well, what is the worst that could happen? another reel of neopixels that misbehave terribly 🤷‍♂️ so what else is new lol

faint sparrow
#

Every day in every channel on discord I hear pie-in-the-sky fantasies about multiplying multipliers multiply. ;)
> what could go wrong:
Blow your last Raspberry Pi and wait 3 years for them to restock them.

crisp lion
#

yeah speaking of which that green icon next to my name probably doesn't add too much credibility to my ideas

faint sparrow
#

haha yeah and it's a scarlet letter that lasts probably 30 days or so.

#

(a better measure sometimes is to just check their stats here for how many posts and when they joined and such)
I think Discord should make you at least check a profile to see the Mark of the Poppy

arctic bobcat
#

New problem, why is that everytime I load up chromium, my wifi stops working in my raspberry pi?

crisp lion
#

never happened to me; but would it be possible to perhaps install a different browser just to see if the problem persists?

#

although they could all be chromium based... still, wouldn't hurt to give it a try I guess

zealous seal
#

Not sure who/if anyone needs this...but I need to hit up microcenter in the boston area today and they have 15 Pi 4 2gb in stock

crisp lion
#

I'd ask for two, but I'm in the EU, so... 😅

#

I wish tariffs weren't a thing lol

turbid rivet
zealous seal
#

I didn't happen to need one. My friend got one though. When we left they had 6 more in stock

turbid rivet
#

Ehhhh it’ll probably be gone by the time I can go

#

In hindsight I’d really only use it to upgrade a 3b+ that still works

zealous seal
#

The only pi I need right now is a zero 2 but those seem like they're unobtanium

arctic bobcat
livid fractal
#

Heyo Idk if anyone else has made a pigrrl 2 but I’m getting some audio issues

#

The wires are soldered to the pi but it’s only giving me a really faint buzzing sound

#

I’m wondering if I should resolder the wires or it’s the sound settings

#

Which audio device and which audio card should I use in the retropie sound settings ?

zealous seal
#

I haven't - but I saw a bunch of pigrrl 2 boxes at microcenter the other dayand was wondering what they were!

arctic bobcat
#

Yep, just like I expected, when I oopen up chronium on my raspberry pii, it disconnects from wifi, but when I opened up firefox, it stiill works like noormal.

#

what is going on?

subtle tapir
#

Hey, Is there a way to share my screen from PC to connected raspberry pi and use raspberry pi to "control" my PC's mouses / keyboards based on whatever is visible on my PC`s screen by running pyautogui for example for image detection and mouse movements etc?

#

and even more complex things like realtime objects detection etc? What I would like to do is to upload my scripts into RPi and run them from there instead from my local PC .. not sure thou if this is possible. I`ve spent whole week in research but have not found anything helpful and everything leads me to the answer = NO

faint sparrow
#

vnc maybe

wispy hazel
#

What’s everyone’s best advice purchasing a raspberry pi at retail prices? I need an 8gb but I’m not looking to spend $200 for one.

zealous seal
#

I haven't seen an 8gb in a while - lots of 2gb at retail prices

wispy hazel
#

I’ve occasionally seen 2gbs, even less the 4 and almost never the 8. It’s so frustrating. It seems all other areas impacted by the chip shortage are clearing up, why not pi’s?!

faint sparrow
#

Hey, i wish to use BH1750 Ambient Sensor with Raspberry Pi i2c pins (without using any package), is tehre any way to do, without using smbus ?

umbral sable
faint sparrow
signal karma
#

I have a tofu board and a cm4 to run it. Been doing some m2 Drive testing and added a heat sink today. The sink seems to be highly needed. The speed test is crazy. The eMMC flash is leaps and bounds over SD cars and m2 is even higher performance.

torn trench
#

Also just to be sure, what raspberry pi are we talking about? A 4/3/zero/etc? Or a pico?

rustic vault
#

Looking for the circuit diagram for raspberry pi pico?

#

the datasheet that actually would tell me about the IC's on the board

#

looking to replace a chip on one that arrived DOA

hard pike
rustic vault
#

chip designated 036 with a 6 leg package between 2 SMD capacitors

hard pike
#

Picture?

rustic vault
#

one second

hard pike
#

Oh the buck converter

rustic vault
#

yep it burned me, DOA

rustic vault
#

would you by some miracle have a digikey link?

hard pike
#

I’m not seeing a “singles” listing which is weird

#

Looks like it’ll let you add a single

rustic vault
#

two buckaroos

hard pike
#

Yeah, basically half the price of a new Pico

rustic vault
#

I might wait on this one, and add it to another part order

hard pike
#

Just tells you how many raspberry pi bought 🙂

rustic vault
hard pike
#

Yeah lol

hard pike
rustic vault
#

so I just got my replacement pico

#

in the mail today

#

after the first one tried to make creme brule out of my finger

#

plug it in
"this usb device is not recognized"

#

whether I use the bootSEL button or not

#

not good vibes

#

all's good

#

false alarm

lucid nebula
true oar
#

Hi all! picked up this gorgeous momentary push button for a project, but am having trouble figuring out how to best wire it up. The goal is to have it trigger a GPIO pin when pushed.

I think it's a DPDT switch, which is overkill for what I need, but what's the best way to wire it up? It has 8 pins (the central two are for the bulb), with the following labels:

1 - NO
2 - C
3 - NC
4 - NO
5 - C
6 - NC

torn trench
#

NO is normally open. NC is normally closed. I guess C is center?

#

DPDT basically just means two switches controlled by the same button, right?

#

So I think you could just set the switch up with NO and C to ground out a gpio when the switch is activated

true oar
#

Got it, so let's say 2C to a ground pin, and 1NO to whichever gpio I'm using?

torn trench
#

That’s what I would assume

#

I think you’d want to pull up the gpio

#

Or do it all in reverse. Pull down the gpio and have the switch set it high

true oar
#

i'll give this a shot, thanks @torn trench

torn trench
#

Would love to hear how it turns out! Good luck!

turbid rivet
#

Right idea, though.

alpine fox
#

i need massive help coding a project, i'm trying to make my own version of the adafruit IO canary with a regular raspberry pi pico and a SGP30 air quality sensor from pimoroni, but i'm completely lost in the rabbit hole of github trying to figure out how to program it! any help would be massive! https://shop.pimoroni.com/products/sgp30-air-quality-sensor-breakout?variant=30924091719763 https://learn.adafruit.com/iot-canary https://www.adafruit.com/product/4864 (edited)

Measure indoor air quality—total volatile organic compounds (TVOC) and equivalent CO2 (eCO2)—with this digital sensor for Raspberry Pi and Arduino.

Adafruit Learning System

Build a CO2 sensing project using Adafruit IO and WipperSnapper.

sonic pulsar
#

To use the Adafruit Mini GPS PA1010D on pi zero, do I need the full circuitpython installation?

Let me know if this is not the right channel to ask
I have a few sensors connected with the simple qwiic wiring and have been fantastic. But reading the GPS guide I am not sure if I need the full circuitpython... Which I don't think I need so far.

Any pointers and guidance will be great. Than you

lost wolf
#

@sonic pulsar For CircuitPython-related questions, I'd suggest #help-with-circuitpython. Even when it's Pi-related-CircuitPython, that channel might get you more folks to help out than this one. We discourage crossposting in multiple channels, but in this case I suggest it.

sonic pulsar
#

Thanks for the quick response. I shall post it there.

Was not even sure if I need that on pi... Thought it is more pi related. Thx

torn trench
alpine fox
#

The same as the original project, move the servo from up to down

torn trench
#

Ok the original project also talks about using adafruit.io, but that would require a device with wifi

#

moving the servo should be pretty doable though

#

I'd break it down into a few different tasks. I'd probably start with a pico program that just prints "hello world" every second over USB serial. That will let you know you're programming the board correctly

#

then I'd make it move the servo back and forth every second

#

then I'd make it print the C02 reading over serial every second

#

and then you can combine the pieces together, and change the servo position based on the CO2 reading

lucid nebula
torn trench
#

what does that have to do with raspberry pis?

#

that project seems to have its own discord server in any case, where you're more likely to find someone who knows how to install it

lucid nebula
night sail
lucid nebula
#

I'm not at home right now.

bold hornet
#

hello, im trying to get a webserver on raspberry pi pico w, with circuitpython on it (sorta as a wireless microcontroller), but i cant get it to connect to wifi when i import network module

vocal lava
bold hornet
#

i see, sorry

vocal lava
#

no need to apologize. 🙂

lusty perch
#

dumb question, first time making a button, https://raspberrypihq.com/use-a-push-button-with-raspberry-pi-gpio/ do i really need a resistor for this pushbutton? "The resistor is used as a current limiting resistor to protect our input pin by limiting the amount of current that can flow" i got no problem soldering it inline, but... why? how would "The resistor is used as a current limiting resistor to protect our input pin by limiting the amount of current that can flow" ever be relevant? I appreciate any really good answer.

#

also, would a resistor be relevant to a 5v l.e.d. workign on a 3v pin? Im currently doing that and it works fine. Im really curious why everyone wants to use resistors and breadboards but really you just connect one to the other and it works?

#

is the breadboard diagram just for design clarity, (opposed to just showing a wire in a line?

torn trench
#

Although they state the reasoning as protecting the LED, not the input pin

lucid nebula
lucid nebula
keen summit
#

any cool idea what can I do with measuring temperature,I display data in a website and in a chatbot.Any idea what can I add to make my project "cooler"

terse mantle
#

Good afternoon. If I want to add a fan to my Pi but I've added an Adafruit RGB Matrix Bonnet. What other ways can I connect the fan to my pi?

#

The fan came with my Cana kit

civic rune
#

I have a program on the pi that plays music with pygame. I started the program with thon y and then ended it with thonny but it's either still running or pygame is. What can I do to stop them both?

steady rose
#

depends on the program, how it initially ran pygame, and how you "ended" the program

#

could always just look for the processes and kill them

civic rune
#

Figured it out.

#

The cmd window was open and somehow picked up control of the program?

#

Idk

indigo cave
#

i am not too sure where to put this issue, but I made a custom rp2040 board, and it seems to work just fine (when i plug it in, it shows up as a "usb drive")

#

however, when i put a uf2 to it, it will eject itself, wait around 2 seconds, then it will appear back as if the code did not flash at all

#

this board is meant to be used as a keyboard, but neither qmk nor zmk flash without running into the same error mentioned

hard pike
#

I’d make sure the solder joints on the flash chip and the RP2040 are good, reflow with flux as necessary

indigo cave
#

Yeah so I got jlcpcb to make it

#

So I don’t think the connections are wrong

#

Could it be the qspi comms from the rp2040 to the flash?

#

@hard pike does this look right?

hard pike
#

Hard to know without seeing the schematic

#

I will say also that the crystal is too far away from the RP2040

indigo cave
#

this is the schematic

indigo cave
#

thank you so much for helping btw

hard pike
indigo cave
#

Dang it. Thank you for finding it 😅

sand lion
#

Hi guys so I'm having a problem with setting up my pi zero w with pitft screen using retropie command prompts I've been following the guide for the pigrrl zero but the installation code that's on the guide doesn't do what its supposed to do

digital sparrow
#

I recently moved my computer (raspberry pi) and switched monitors. I have the latest OS and a can’t get it to resize can anyone help?

sand lion
#

I keep on trying to run the install PiTFT (fbcp) support into the retropie cmd in my raspberry pi zero and I'm not getting anything am I doing something wrong?

#

Trying to build a pigrrl zero but having trouble with setting it up to my pi zero w

modern matrix
dim spade
#

is there an easy way to open a gif from the terminal on a raspberry pi? i have done it before but dont remember how, all i can find on the internet is to advanced and time consuming.

steady rose
#

try eog

tight solar
#

Hello! I had a general question if there's anyone here who may be able to help? I was wondering if this product https://www.adafruit.com/product/3662 would also be fine to use on a raspberry pi zero 2 w? I only saw that it mentioned zero, so just wanted to confirm it would be ok? Thank you !

turbid rivet
mint field
tight solar
#

Cool 😎 thanks again I appreciate it!!

midnight sage
#

is there a some kind of 3.3v to 5v converter I can use? - Amiga 1200 LEDs are 5V and can only run on 5V and not 3.3v

#

or anything to power 5V LEDS

midnight sage
#

how that can work as a converter?

fickle rose
#

? What is your setup? Are you asking for a logic-level converter?

midnight sage
#

I was gonna think to get one as I notice that the a1200's LEDs are about 2v-3v and the resistor value is 330 ohms making it needing 5v power - I'm gonna use the for the following

Green- Power/Status through TXD
yellow(orange) - HDD GPIO 23 (Amiberry HDD)
RED Floppy Drive GPIO 18 (Amiberry Floppy Drive Status)

I'm basically using two Leds for Amiberry's status while the Green to be my Pi's Power Indicator that it is on and running

fickle rose
#

You don’t need to power them from 5v 3.3 will work

cosmic imp
#

Hi everyone, was hoping to get some help with RGB 32x32 matrix panel connected with pi4 w/ HAT. I can’t seem to figure why only part of the matrix works

midnight sage
#

Are the Pi GPIO Pins off by default if not in use? here's what I need to do

Setup pins TXD (for power Status)
18, and 23 (these are the Amiberry Status

midnight sage
midnight sage
#

Turns out I'll need to make a circuit for the Amiga's LEDs as it needs 5v but how I make one?

raw solar
#

You could use a transistor to switch the 5v rail to an LED

fickle rose
cosmic imp
#

Hey thanks for responses, I’m checking the soldering and I changed the ribbon from HAT to panel still nothing

fickle rose
#

do you see anything out of the ordinary? (like a trace that looks odd)

rustic vault
#

any recommendations for stress-testing / Diag of a pi I used to think was short circuited and dead?

#

I plugged it in and loaded rasbian 32bit and it made it to the homescreen

#

I'd like to put it back into use, but I wanna make sure that it's good and working

#

I am not sure to the extent of the failure that caused me to put it into the storage

#

IIRC I had octopi running on it, and then it shorted, and failed to boot, so IDK if at that point I just considered it Ded and moved on

raw solar
#

I’d just run something that uses resources like calculating Pi to 10 million digits or something. If it doesn’t crash, probably fine

#

Maybe have a few browser windows open at the same time to stress RAM

fickle rose
#

run "stress -c 4" (i think it's been a while)

rustic vault
fickle rose
#

i will warn you it doesn't stop on it's own so you have to ctrl-c to exit

raw solar
#

Oh yeah, forgot about stress, lol

fickle rose
#

actually i'm pretty sure it's preinstalled on the desktop versions

rustic vault
#

anything that can test the component list?

#

I do a lot of phone repairs, and samsung, apple, and google phones all have a auto-diagnostic suite we have to run before returning a phone to a customer

rustic vault
fickle rose
#

run "sudo apt install agnostics" Once installed, you will find the new application “Raspberry Pi Diagnostics” in the main menu under “Accessories”

sharp quiver
# rustic vault any recommendations for stress-testing / Diag of a pi I used to think was short ...

In Python, run 2**2**2**2**2**2. That will attempt to calculate a number so large that the observable universe doesn't have enough particles to store it, but Python will try anyway. It will consume all of the computational resources of one core, and it will eventually consume 100% of the memory. If you want to test all of the cores, open one Python interpreter for each core and run that line in every window. That will run it on every core.

This works both for testing your memory and your CPU. If the kernel does not kill the processes when you run out of memory, your machine will eventually crash, due to lack of memory. You might want to have a window open with htop running, so you can watch it. If things start crashing before all of the memory is consumed, your chips might have a problem. (Individual instances crashing with OOM (out of memory) errors is normal though.)

rustic vault
#

:(){ :|:& };:

#

But that is quite a creative answer

sharp quiver
#

Lol! That might be faster for testing all of the CPUs as well!

rustic vault
rustic vault
#

In the phone repair business there's OQC processes after a phone repair in order to do warranty work that walks through testing the cameras. Microphones displays, touch signal, and any other device component

#

I'll be right back my phone's about to die

sharp quiver
#

Memory and CPU are pretty easy to test. Another option that won't crash due to lack of memory is calculating Fibbonachi sequences. Run one of those for each core, and you have a good CPU stress test. Memory testing can be done with a loop that continually traverses a list, increasing the size a bit each time until you run out of memory.

Testing other components is harder.

cosmic imp
#

Anyone try using an IR remote control with the 32x32 rgb matrix w/ HAT on a pi4?

fickle rose
#

It should work

half nexus
#

Hi there. Any C libraries for neopixels/ws281x that work on pi
Just choosing one to begin with. I've seen some, but not sure which to use, so I am asking here.

dense comet
#

Simple clean API, and it's pretty compact, the whole thing is a hair over 3300 LOC

half nexus
#

And as I accumulated more information, I think it's okay to conclude that mixing C and C# is okay

gaunt plover
#

Hello! I have an issue regarding i2c communication using the BNO055 Adafruit library on my sensor
I am trying to connect it to my RPI PICO and the sensor cannot detect the sensor on the line

I tried to see if I would have the same issue on an Arduino and that was not the case, the same code worked perfectly fine on it

#

(I quadruplechecked the connections ^^)

umbral sable
steady rose
#

yep. try an i2c scan.

#

could also be specific pins being used

gaunt plover
#

I will try it, thanks!

faint sparrow
#

Hey. I have a LPD8806 led strip I belive. But I cant figure out the rasp pi GPIO pins I used with this.

#

I had this working some years ago and using the same code. But I had this problem figuring out the GPIO pins before. I tried a bunch of different things but just cant get it working

#

Trying this. My code says

datapin = 10
clockpin 11
#

but I get nothing

raw solar
#

Missing an = for clockpin, but also might need to do datapin = GPIO10?

faint sparrow
#

Sorry. I got it working

#

things seem to work better if you run the right python script 😄

raw solar
#

lol

still notch
#

I am failing installing Twine on a Rasp Pi running latest bullseye. The challenge is the cryptography pkg which is packaged in what I'm getting as an SDIST. Bummer because cryptography takes a Rust compiler. Why can't I just get a wheel? I thought I googled about updating PIP. Did this. Didn't help...still SDIST. I think I am being dumb, but because it's dumb I'm not sure... help appreciated. Thank you.

still notch
#

OK. That was (NOT) fun. BUT on the bright side, the difference between a package distributed as SDIST versus a wheel is very clear. 1) Install Rust by swinging a chicken over your head 2) keep ohming and chanting pip install twine ... because the poor thing keeps failing until you install all this python dev stuff that rust needs...ohm a few more times have a few pieces of candy...because really, this is sad...but...but....lalala...AND FINALLY TWINE HAS BEEN PIP'D (enter rainbow stage left).

midnight sage
#

okay this is from LemonAmiga fourms how I can use transistors to make the amiga 1200 LEDs work out I have no idea on how to make it work I'm also may need to invert it too

tame light
#

Question on RP2040 internal pull-up resistors for I2C bus with CircuitPython 8.0.0 beta 4
Trying to test an OLED display with an I2C controller chip on a bare Raspberry Pi Pico board and running into problems getting the I2c bus set up. Using the dead simple code:
`import board
import busio

i2cBus = busio.I2C(scl=board.GP1, sda=board.GP0)

(using busio because of the multiple I2C buses and SCL and SDA pin choices), I get the following output:code.py | 8.0.0-beta.4\Traceback (most recent call last):
File "code.py", line 5, in <module>
RuntimeError: No pull up found on SDA or SCL; check your wiring`
Is busio actually doing an analog voltage test? Does it not set the GPIO pins to active pull-up (tried to do that with digitalio, but that appears to be incompatible with busio) and, if so, is that not sufficient? Are external pull-up resistors required in this case? (RP2040 datasheet states that internal pull-ups and pull-downs are in the 50K to 80K range, so I can see where a lower value would be required to achieve I2C rise-time specs.)

gaunt plover
#

Regarding my post from 2 days ago:
The solution was to check which pins are used for SDA, SCL as default in the pins_arduino.h file for the pico. By looking at the values I can connect to the right pins or change them in my script.

I have another question regarding the pico:
Would I be able to program a bit of the software in c and the rest in python, since it does support both natively?

tame light
#

OK, re my question just above, apparently external pull-ups are required. Tested with a low value (330 ohm) on both pins to 3.3v and error went away.

#

Will use something in the 1K to 10K ohm range when I figure out what's appropriate.

umbral sable
half nexus
unkempt loom
#

Good evening everyone, does anyone know if it's possible to have inputs to the RTC. I'm trying to set up a non interned connect alarm clock that displays date and time. I'm using an RTC and am trying to have 4 buttons to control the time up and down and the date month and day. Any input or direction will be greatly appreciated

earnest roost
unkempt loom
#

I will give this a try

#

Didn't work

#

Any other ideas

earnest roost
#

@unkempt loom These are command line calls.

#

Also what "didn't work"?

earnest roost
#

What happened? Did you do hwclock -r to read the clock?

unkempt loom
#

No it didn't didn't accept it

earnest roost
#

Did you get an error?

unkempt loom
#

Yes sir

earnest roost
#

It would be nice if you told me the error.

#

Normally, you might paste your output here.

unkempt loom
#

I will it's rebooting. Sorry

earnest roost
unkempt loom
#

Yes

#

I'm using this

#

It has a built in rtc

earnest roost
#

Oh. Then you just need to set the time.

#

So, what happened with date and hwclock?

unkempt loom
#

I want to be able to change the time and date while using the rtc function if that makes sense

earnest roost
#

@unkempt loom Well, that Python error has nothing to do with date or hwclock

fickle rose
#

the error says serial port not found so it's unrelated

unkempt loom
#

Ughhh yeah it's the nano that's connected to the pi which is giving me an error

#

Let me resolve that

midnight sage
#

okay I'm using this as my main Amiga/amiberry emulator project and I used up the two 5v pins one for LCD and the other for a fan - can a PCB like Shim can be made to give me extra 5v and GND can be made so my LCD and fan can still have their power? - something like this Pi Fan Shim?

tight wing
#

I am trying to read an analog microphone using MPC3008 as ADC and Raspberry Pi. I could not find how to use this MPC3008 to read microphone. The available example code is for other sensors and does not include sampling rate etc. I have used that code but could not see any reasonable results. Can you help me with that?

half nexus
#

Hello there. I'd like to receive some help guidance on jgarff/rpi_ws281x as I've had some struggles earlier understanding it.

fickle rose
#

what u need?

half nexus
#

Live support in general, don't know where to start

#

Learning a new language on a shiny thing is probably good, right now I've got a hand of STDIO and MATH global extensions

lucid nebula
#

I need help with editing the permissions of a folder to 1: access it and 2: make sure something got installed correctly

umbral sable
lucid nebula
#

So sudo chmod FOLDERPATH_HERE?

umbral sable
# lucid nebula So `sudo chmod FOLDERPATH_HERE`?

Before the path you'd want to provide the mode modification you want. This is often a numeric octal value encoding read-write-execute flags, or you can give a short parameter like "+x" to modify the flags. Depends on what you want to do to the permissions.

lucid nebula
umbral sable
#

Can you do ls -l /var/lib and see what permissions the docker directory has?

lucid nebula
#

drwx--x--- 13 root root 4096

umbral sable
#

Well, that explains why nobody but root can access it, though I'm a bit puzzled why the chmod commands seemingly didn't affect it. Just to get past this, you can do sudo chmod 777 /var/lib/docker to give it wide-open permissions, though that's probably not the correct setting it should have in this installation.

umbral sable
#

You can add the -R flag to recursively change the permissions the same way. However, I'd generally advise against that, since there's no way to set them back the way they were afterwards.

prisma fiber
#

Anyone able to give me the run down on how Debian installs packages from per say discord.deb, Also having trouble reading an external usb c baracuda sea gate external ssd connected one time said it was in read mode could be a bad cable

barren viper
umbral sable
#

That may be difficult to do from a userspace app on a Pi, since you'd need to do ~10,000 SPI transactions per second at a regular sampling rate, and there's all sorts of process scheduling which could screw that up. It might need a kernel driver or something instead.

plucky bone
prisma fiber
#

God bless

lucid nebula
#

Help! This box popped up after a reboot and everytime I enter the password, it pops back up after a black screen

vocal lava
lucid nebula
#

If I type in any other password, it throws an error, there are no other users

#

@vocal lava

vocal lava
#

Huh, I've never seen that when you're typing the right password. Can you SSH into the Pi from another computer?

lucid nebula
#

I never set SSH up

#

I have XDRP, but that's a black screen

#

@vocal lava

#

Got it. I just removed .profile

#

Ok, now I'm having a storage leak

#

Keeps dropping to 0 then resetting

#

@vocal lava You able to help with this?

vocal lava
lucid nebula
vocal lava
lucid nebula
lucid nebula
#

Ok, onto my next issue

#

I have a Pi Zero W that is not outputting display. I just did the USB test and it is not dead

#

Anyone have any ideas?

turbid rivet
lucid nebula
#

Using one from Microcenter that says it's designed to work with the Zero. Comes in a plastic bag with a black background and white text for the product information

primal path
#

Ermmmn hi guys,
Anyone familiar with adafruit ble?

civic rune
#

Lots of folks are! It helps everyone help out to just post your question.

primal path
#

I used the adafruit ble phyton library on rasberry pi

#

Apparantly, i wanna fix my data channel on BLE for some troubleshooting purpose

#

Is this possible?

#

Central device: Rasberry Pi with adafruit BLE phyton codes
Pheripheral device: nordics nRF52840

lucid nebula
#

What is the latest version of Raspbian?

fresh oriole
#

Hi guys does anyone know any open source code for using a Pico to read and log electricity meter readings? 😁

half nexus
gray wharf
#

I have a CM4 and the I/O board. Are there wire kits that you can use for plugging things in to the pins on to that 40-pin port?

#

Also, are there better I/O boards made my third parties, that have newer features you can use with the CM4, or is that a myth?

fickle rose
languid leaf
#

Hey everyone I am trying to use nau7802 (https://learn.adafruit.com/adafruit-nau7802-24-bit-adc-stemma-qt-qwiic/python-circuitpython#step-3118890) with raspberry pi - 4. I am connecting it through a seeed studio CAN Bus board. I have followed the procedure mentioned in the guide. (https://learn.adafruit.com/adafruit-nau7802-24-bit-adc-stemma-qt-qwiic/python-circuitpython#step-3118890) to interface it through python. But currently when I try to run t he "simpletest" program I am getting an error " NameError: name 'I2CDeviceDriver' is not defined.

Can someone help me with this?

Adafruit Learning System

Measure force over I2C

fickle rose
#

that's i2c not canbus

#

it connects to the i2c gpio pins

languid leaf
fickle rose
#

oh

#

i just read canbus and thought it was canbus only

#

did you enable i2c in the config?

#

(it's been a year at least so i might be incorrect) add the line "dtparams-i2c=1" to /boot/config.txt

#

or just use raspi-config to enable it

steady rose
#

@languid leaf post full text of stacktrace output when hitting the error

languid leaf
#

@steady rose from now on I will do. I apologize for cross posting. I was not sure where to post it and that's why I did that. From now on I will stick to just one.

gray wharf
#

So, no recommendations on kits for use with the Official I/O Board?

worldly oasis
cunning wyvern
#

Anyone here know a little networking? I know a decent amount, but I'm wondering: how do two devices on the same network discover each other? Like if two mobile phones on a network are play a game together, or in my case, I want a Pi Pico W to find another Pico on the network automatically once powered on.

All I can think of is spoofing an ARP protocol message, or some sort of UDP broadcast/multiplexing method. Anyone know how something like this is usually done?

humble nova
#

Not that i'm a networking expert, let alone on embedded devices, but couldn't you make your being-connected device send a broadcast message when it powers on? (maybe on a loop until it gets a reply from the 2nd one)

cunning wyvern
#

Yeah, I guess some sort of UDP broadcast on a known-to-all-picos port containing the actual connection info could be the way to go

hard pike
#

Generally devices don’t know another exists on a network until it asks the gateway (might be router) if the device exists, and subsequently sends a message/data

cunning wyvern
hard pike
#

But I’m general of a device is trying to discover other devices on the network, they send ARP messages

rotund pivot
#

DNS or mDNS

cunning wyvern
#

isn't ARP a link-layer protocol? It's definitely not transport level, and I'm not quite sure how to go about spoofing that low of a protocol.

hard pike
#

ARP messages allow devices on the network to resolve routes to the destination through the local gateway. Basically saying “hey, does this address exist”

#

ARPs are for resolving physical addresses from IP addresses

#

And to confirm if some IP exists on the network

#

You don’t really spoof ARP, you can flood a network with ARP and resolve all reachable devices

rotund pivot
#

you can easily spoof MAC addresses, IP addresses, and hostnames on microcotrollers

cunning wyvern
#

Ooh interesting 🤔

rotund pivot
#

I suspect that on your original question, they are using a highler-level protocol like mDNS / DNS-SD / ZeroConf / Avahi / Bonjour, or perhaps something custom over UDP

#

most of those wouldn't require a central server

hard pike
night sail
#

So DNS would be my go-to here, giving them DHCP reservation and registering in the firewall's DNS server

but if you know any identifying characteristic, you don't have to "search" for it, you can just "talk" to it.

If you know the MAC ahead of time, just send packets. If you know the IP address, send them there and it'll be translated to the MAC address via ARP.

If you know only a partial MAC, you can sometimes ping the broadcast address to populate the ARP table with devices that respond to ping.

fickle rose
#

Use dhcp reservation and just give them a high ip in the hundreds so they won’t conflict with the other devices and hardcode the ip for the other pico in the software

#

I use it with a small server so i always know the address (192.168.1.103)

tranquil stratus
#

where would be the best place to ask questions about the rpi pico, specifically, writing something in PIO for one of the state machines on the pico

faint sparrow
#

@tranquil stratus Pico Unoffical discord ;)

tranquil stratus
faint sparrow
#

I don't know what the rulez are about that. ;)

tranquil stratus
faint sparrow
#

go for it @tranquil stratus

marsh belfry
#

I am designing a custom baseboard for a Raspberry Pi Compute Module 4. I want to add a 20 pin ZIF connector for a FFC/FPC to a DIY USB Cable Parts - Straight Type A Jack Product ID: 4110 https://www.adafruit.com/product/4110. Can anyone point me to the pinout for the FFC ZIF connector for this DIY USB cable?

fickle rose
#

Looking at this image all you would need is a continuity tester and a usb pinout

keen summit
#

One question,I have some sensors in chain and I am using a LTC4311 I2C Extender to reach distances like 2-3m,but the bus should also be hot swap so I bought a Adafruit TCA4307 Hot-Swap I2C Buffer.Will this work?And is there any importance is I place befeore the Buffer or after the extender.So can the components be placed in this order Raspberry--Buffer--Extender--Sensor1--Sensor2--Sensor 3.

half nexus
#

Hi there. anyone active? Just same ol' question with LEDs. I've got 15 minutes to spare to get a contact with one of members to rule out the LED situation. Forgive me if I'm being pesky, just kinda feeling lost here

umbral sable
fickle rose
#

in theory you could use the extender on any 3.3v pull-up signal

#

also it's discouraged to cross-post

half nexus
#

New objective:
Learn to drive WS2812b matrix on raspberry pi using C
Library chosen: jgarff/rpi_ws281x (suggested by Xanthia)
Step stuck on: Getting started
I would like to have a conversation ruling out the different questions that might pop up

steady rose
#

that's a potentially broad topic question

half nexus
#

Extended information: Currently I have some clues of importing the library into the code, but I don't think it's the right way
#import "ws2811.h" with the project file located in the same directory as the all of the extracted files from rpi_ws281x

#

And I am accustom to $ gcc -o [result] [source.c]

half nexus
#

whoops, my fault of writing import.
Looks like the code was right when I attempted to write it

#

I haven't done the rest part, because I like to approach problems in order

faint sparrow
#

I like to setup a Makefile very early on for testing and repeatability. ;)

half nexus
#

Yeah, I have a junk folder of prototypes, dull part is they're are complied, so the only way I can mess with them is in the intended one

steady rose
#

just cloned that repo, ran cmake, built the example, attached some neopix to pin 18, ran example and the neopixels lit up

#
pi@raspberrypi:~ $ git clone https://github.com/jgarff/rpi_ws281x.git
Cloning into 'rpi_ws281x'...
remote: Enumerating objects: 975, done.
remote: Counting objects: 100% (70/70), done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 975 (delta 32), reused 53 (delta 25), pack-reused 905
Receiving objects: 100% (975/975), 417.17 KiB | 603.00 KiB/s, done.
Resolving deltas: 100% (588/588), done.
pi@raspberrypi:~ $ cd rpi_ws281x/
pi@raspberrypi:~/rpi_ws281x $ mkdir build
pi@raspberrypi:~/rpi_ws281x $ cd build/
pi@raspberrypi:~/rpi_ws281x/build $ cmake ..
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/rpi_ws281x/build
pi@raspberrypi:~/rpi_ws281x/build $ make
Scanning dependencies of target ws2811
[ 11%] Building C object CMakeFiles/ws2811.dir/mailbox.c.o
[ 22%] Building C object CMakeFiles/ws2811.dir/ws2811.c.o
[ 33%] Building C object CMakeFiles/ws2811.dir/pwm.c.o
[ 44%] Building C object CMakeFiles/ws2811.dir/pcm.c.o
[ 55%] Building C object CMakeFiles/ws2811.dir/dma.c.o
[ 66%] Building C object CMakeFiles/ws2811.dir/rpihw.c.o
[ 77%] Linking C static library libws2811.a
[ 77%] Built target ws2811
Scanning dependencies of target test
[ 88%] Building C object CMakeFiles/test.dir/main.c.o
[100%] Linking C executable test
[100%] Built target test
pi@raspberrypi:~/rpi_ws281x/build $ sudo ./test
half nexus
#

I am ready to take a second approach on this topic:
Currently stuck at: understanding cmake

#

It sure has a lot of functions, but this load of functions dumped on me isn't gonna help

#

I've tried something yesterday, the logs look... well, I'll better start from scratch again

half nexus
#
pi@raspberrypi:~/c/rpi_ws281x/build $ cmake ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:86 (add_executable):
  The target name "test" is reserved or not valid for certain CMake features,
  such as generator expressions, and may result in undefined behavior.


CMake Error at CMakeLists.txt:87 (target_link_libraries):
  Cannot specify link libraries for target "test" which is not built by this
  project.


-- Configuring incomplete, errors occurred!
See also "/home/pi/c/rpi_ws281x/build/CMakeFiles/CMakeOutput.log".

Currently it looks like it doesn't like the "test" name, let's see if I can do something about it

half nexus
#

Nah, I have no idea, even after a break

#

The line 87 refers to this target_link_libraries(${TEST_TARGET} ${LIB_TARGET})
And currently I have no idea in which part it is wrong

shrewd flax
polar timber
#

hi there, not sure if this is the right place, but i have a raspberry pi rgb matrix bonnet https://www.adafruit.com/product/3211, and i also have one p2 128 * 64 rgb matrix that i am looking to use with my rpi3 with the bonnet. i was reading the guide for the bonnet https://learn.adafruit.com/adafruit-rgb-matrix-bonnet-for-raspberry-pi/pinouts, and it looks like that i would need a 5v power supply with more than 10 amps to power my board properly. is that correct? if this is the case, i'm curious as to what makes this different to the rgb cube that uses 6 of the 64 * 64 panels https://learn.adafruit.com/rgb-led-matrix-cube-for-pi and only uses a 5V 3 amp power bank (cube would power ~24,000 leds and my panel powers ~8,000 leds) any advice?

Adafruit Learning System

3D PixelDust, Globe, and other fun designs

vital lodge
#

Does anyone have any examples/library for a http server on a pico w?

#

^ using the C sdk

turbid rivet
gaunt sphinx
#

Hello

Is it possible to run NeoPixel without sudo? Basically I want to start a script from a CI

fickle rose
#

That’s why the cube can get away with a 3a power bank because the leds are at full white all the time

polar timber
#

one last question, if you happen to know what info about the panel would i need to determine what to solder for the address e port?

fickle rose
#

It will work just don’t light up all the leds at once

polar timber
fickle rose
#

Np

faint sparrow
#

1.8 Amps / 0.06 Amps = 30 RGB's at full brightness using 1.8 Ampere capable supply (100%, not derated for practical use).

#

So figure 60 RGB's at 50% brightness .. and they're very bright at 10% brightness (they are absurdly bright for indoor daylight/well-lit conditions, at full brightness).

#

I would put in a PTC (a type of 'fuse') in the main power going to the array.
I would think that would protect the power supply.

mystic jasper
#

I have a Raspberry Pi zero 2 W that I can’t get to boot. I’ve tried multiple sd cards and cables, including a set that works with an older zero W. When plugged into USB, I get 5v on the 5v pad, but only 2.5v on the 3v3 pin.

I don’t think the image is from a power delivery circuit, but can someone else see if their board is missing a component by the SD card slot/HDMI port?

raw solar
#

omg I didn’t know there was a new Zero

The one in the stock photo on the RPi site lacks that component as well

mystic jasper
raw solar
#

I had kinda lost touch with the maker world a little before that, so no wonder I missed it! I shall dream of having one...

steady rose
mystic jasper
steady rose
#

bummer. that'd agree with the vreg output though. seems like it got zapped maybe 😦

mystic jasper
#

Not sure how, I hadn't gotten around to solder headers to it yet.

edgy oar
naive holly
#

Has anybody got a remote idea when a raspberry pi 4B might ever be available again? I know we are in the middle of a worldwide chip shortage but this is ridiculous. You can't buy one anywhere friend or a couple of hundred dollars which is ridiculous since the list price on the 8MB model is $75.

raw solar
#

The RPi foundation has maintained that they're "working on the supply chain issue", and sounds like they hope to have it resolved/eased early 2023

mystic jasper
raw solar
#

It sucks the prices must rise, but... c'est la vie

faint sparrow
#

I have two RPI 3's (3B?) I rarely use, and a single RPi4 that gets used 'once in a while'.

raw solar
#

I have an original, 3 of the 2B and 3B, 3A, and for the 4 I have an 8GB, a 4GB, 2 2GB, and 2 1GB... I need to use them more >~> some of those are used for OctoPrint servers

#

The original is currently in its box in a container in my basement... Not sure what to do with it

#

Might just make it a display piece...

fickle rose
#

The only working rpi i have is a zero w with broken wifi

#

I think my pi 4 8gb was zapped or smthn

fickle rose
raw solar
#

Probably for the best, it can't do much

#

Oh, I also have 2 of the Pi Zero and like a billion of the Zero W, lol

rotund pivot
#

worldwide shortage now makes more sense

raw solar
#

Hey, I bought them like 3 or 4 years ago!

#

I worked at Micro Center and would basically buy a Zero W every time I took lunch or was leaving for the day, lol

turbid rivet
#

That accounts for maybe a thousand of em, tops. Where’s the other 999,999,000 from lmao

raw solar
#

Space?

half nexus
#

Finally I'll have a chance to see a pi zero

torn trench
#

thanks past me

raw solar
#

Hehe

torn trench
#

I just had to swap out a zero w in a project today and it made me sad to think about how hard they are to get now 😦

#

Although I'm tempted to spin a PCB for compute modules

#

but my application really doesn't need aarch64 at all...

raw solar
#

Hopefully they will be easier to get soon... Even the compute modules are rare

torn trench
#

Is it normal that I have to ping my 0w for a while before it will respond?

#

and if I walk away with an SSH session up, it takes a while to get back to normal when I come back to it (unless I leave a shell up pinging the pi in the background)

#

this feels like some kind of brcmfmac power saving "feature"?

#

I believe I had this problem with an OS I got off the rpi web site. Currently using a buildroot image, so there's a possibility it's just a setting somewhere I need to change

raw solar
#

Like, when it first boots? Or when it's idle?

torn trench
#

either

#

basically there needs to be like 5-10 seconds of IP traffic going to the pi for it to start responding

raw solar
#

Hmm... I've had networking take a bit of time to get started after boot, but never had one not respond to pings when idle

torn trench
#

actually with my buildroot image it might be even worse... it doesn't seem to come "back" once it goes away. So basically unless I'm pinging the pi while it boots, I will never be able to reach it via ssh

faint sparrow
#

The Pi has a getty on the Serial port if enabled.
CP2102N will talk to the Pi's USART and offer a USB interface to a connected host PC.
The device associated with it plays the role of a connected Hayes Smartmodem.

torn trench
#

I'm testing out a solution adding iw wlan0 set power_save off to /etc/network/interfaces post-up hook for wlan0

#

this seems to fix the issue

half nexus
#

Just a quick refresher:
Learn to drive WS2812b matrix on raspberry pi using C
Library chosen: jgarff/rpi_ws281x (suggested by Xanthia)
Step stuck on: building the project; using cmake

half nexus
#

Yeah, can't figure that out, search results haven't been changed much upon the cmake, maybe I'm reading instructions wrongly.

torn trench
#

What system are you building on?

#

The pi itself?

half nexus
#

Yeah, in SSH

#

Pi model B to be exact

dusk grotto
#

Old boy

half nexus
#

Yh

torn trench
#

Ok and are you running into an error? Or just don’t know where to begin?

#

I can try and read chat history a sec lol. On my phone

half nexus
#

I was replicating the steps that cater did to run the demo included with the library

torn trench
#

Ok that error sounds like the lib declares a target named test and that’s not allowed. Maybe a difference in cmake versions. But should be fixable.

#

Gonna peek at the cmake source a sec

#

Try just bypassing the tests for now, with cmake .. -DBUILD_TEST=Off

#

Instead of plain cmake ..?

#

Or change line 20

#

Of CMakeLists.txt so that TEST_TARGET is named something other than “test”

#

My guess is that maybe different versions of cmake disallow that? It is a bit strange though

#

What does cmake —version output btw?

#

I think my iPhone glyphed that double dash btw so copy paste might not work

half nexus
#

3.7.2

torn trench
#

That’s extremely old I think?

half nexus
#

Lemme do the update&upgrade real quick

#

Fetched 11.9 MB in 35s (336 kB/s) 💀

zinc jackal
#

You aren't doing anything "quick" at that speed... 😅

half nexus
#

The seller tried to scam me, but the marketplace was generous enough to give me some compensation

#

it was 2018 I think

#

Unfortunately the marketplace isn't around us anymore

torn trench
#

Does the project build with either of those changes?

half nexus
#

Which changes?

half nexus
torn trench
#

To rename the test executable to something cmake allows

half nexus
#
pi@raspberrypi:~/c/rpi_ws281x/build $ cmake .. -DBUILD_TEST=off
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/c/rpi_ws281x/build
pi@raspberrypi:~/c/rpi_ws281x/build $ ls
CMakeCache.txt  cmake_install.cmake  Makefile
CMakeFiles      libws2811.pc         version.h
pi@raspberrypi:~/c/rpi_ws281x/build $
#

Sucsess!

#

Can you remind please how to run these?

torn trench
#

Run make next

half nexus
#

Right, now it's made into a file called ws2811

#

but where is it now?

#

Too bad files and directories look the same in this terminal session

#

Although it's deep linux stuff it's my messy client theme

#
pi@raspberrypi:~/c/rpi_ws281x/build $ make
Scanning dependencies of target ws2811
[ 14%] Building C object CMakeFiles/ws2811.dir/mailbox.c.o
[ 28%] Building C object CMakeFiles/ws2811.dir/ws2811.c.o
[ 42%] Building C object CMakeFiles/ws2811.dir/pwm.c.o
[ 57%] Building C object CMakeFiles/ws2811.dir/pcm.c.o
[ 71%] Building C object CMakeFiles/ws2811.dir/dma.c.o
[ 85%] Building C object CMakeFiles/ws2811.dir/rpihw.c.o
[100%] Linking C static library libws2811.a
[100%] Built target ws2811
pi@raspberrypi:~/c/rpi_ws281x/build $ ls
CMakeCache.txt  cmake_install.cmake  libws2811.pc  version.h
CMakeFiles      libws2811.a          Makefile
#

Just for a recap

torn trench
#

Now you can link your application to libws2811.a

half nexus
#

ugh, more specifics?

torn trench
#

It looks like you turned off the test app? Try renaming it instead, then you should be able to use the test application it builds to change LEDs

torn trench
half nexus
#

right

torn trench
#

Do you know how to use a library in C? You basically need to include the header in your program, and then link to the library when you compile

half nexus
#

Also been thinking of routing SSH trough messengers though, to access my machine without opening ports or showing my IP to everyone wherever I log

half nexus
half nexus
#

Just like... Don't know what to do on that step

#

I've used only gcc before on this the raspberry

torn trench
#

So assuming you have a normal home network, your router gets a WAN IP but your LAN is separate and firewalled

#

When you connect the pi to the LAN it gets an IP from the router in a private subnet (10.x.x.x, 192.168.x.x, 172.16+.x.x)

half nexus
#

oh, about this one

#

haven't paid attention on the message you've pinged to

torn trench
#

In order for anyone to access the LAN from the WAN, you would need to tell your router to say, forward port 22 connections from the WAN interface (With a public ip) to the private IP of the pi

half nexus
#

I know how port-forwarding works, just don't like the idea of entering my personal IP somewhere that I can't thrust, if I have a middle man that I do to some extent thrust.

#

Well, I'll better go sleep by now, bye

torn trench
#

Ok I guess I see what you’re suggesting. I guess I never really understood why people seem to have so many misgivings about their IP being public

fickle rose
#

Ngrok works well and is secure

#

It’s only big problem is it needs an account to work

torn trench
#

I feel like some of the “hide your IP’ concern has been overblown to sell VPN subscriptions

fickle rose
#

Yeah

#

It has

torn trench
#

But prove me wrong lol. Pwn ahepp.dev

fickle rose
#

Like right now I’m pretty sure my ip is listed as in texas but I’m in a completely different state

torn trench
#

I’d rather it be a curious hobbyist than some Russian hacker

dusk grotto
#

Hey so im trying to update my pi but I keep getting this error

#

It say 404 on some of the things

#

Can I manually download all the files

#

Or can I bypass it

zinc jackal
#

It's showing a 404 result.. update the repos with ones that work.

dusk grotto
#

I can't tho

#

That doesn't help me

zinc jackal
#

Why can't you change it?

torn trench
dusk grotto
#

That’s what my source file looks like

#

Which fits with what the pi page says

#

Anyone got ideas

torn trench
#

The link I posted has a couple possible solutions. One seems to be DNS related, but I am not convinced your problem is DNS since Wheezy is just so old. But the link also contains a suggestion to update your mirror

torn trench
dusk grotto
#

Hmmm I know that my router is has a security feature and I wonder if it’s blocking it

torn trench
#

That seems unlikely to me

#

no wheezy

#

wheezy was initially released almost 10 years ago

#

but maybe a different mirror still has it

dusk grotto
#

So I should Change wheezy to diets?

#

Sorry autocorrect

#

Diets

#

I swear to god

#

You know what I’m saying

turbid rivet
#

Which means I don’t even think there are any updates available specifically for wheezy

#

Another mirror might have it still, but you’ll have to do some serious hunting to find one…

faint sparrow
dusk grotto
#

So what should I do?

turbid rivet
#

Does it have to be wheezy?

#

I guess the question here should be “what is your objective”

dusk grotto
#

Honestly I don't know much about wheezy im just trying to update my software to the latest update

turbid rivet
#

Which pi?

dusk grotto
#

3 model b if I'm not wrong

turbid rivet
#

Oh

#

At that point I’d consider doing a fresh install of the latest pi OS instead

#

Just backup your files and reimage the SD card?

dusk grotto
#

Good point

#

I'll do hst

#

That*

zinc jackal
#

It would certainly save a lot of faff.

dusk grotto
#

A lot of what??

faint sparrow
#

;) haha

dusk grotto
#

Did you mean fluff?

zinc jackal
dusk grotto
#

What

#

Bro I am so lost right now

#

😂

zinc jackal
#

No worries.

#

I just mean that reinstalling will be far less hassle than trying to upgrade the OS install.

dusk grotto
#

Ohhhh

#

Yeah I'm not the sharpest

zinc jackal
#

Don't worry, just odd Englishisms.

#

My wife is American, so I love catching her out with odd words she doesn't know.

dusk grotto
#

Lmao

dusk grotto
#

How come this is not working?

#

It says it works on the website

#

Is my crap so out of date it doesn't work

raw solar
#

Try apt-get

dusk grotto
#

Invalid operator

#

And if I tried to go to the website

raw solar
#

That’s… really weird. Apt not working if it’s old makes sense because that’s newer, but apt-get is ancient

dusk grotto
#

Well it hasn't been updated since about 2017

#

Soooo

zinc jackal
#

Shall we assume you don't have another PC to write the SD card image with... ?

dusk grotto
#

Not really

zinc jackal
#

Dang.

dusk grotto
#

I could convince one of my family members to let me use theirs but besides that no

raw solar
#

Try sudo apt-get update and sudo apt-get upgrade?

zinc jackal
#

If I were at least in the same country, I'd help you out. Lol

dusk grotto
#

Look up I cant

zinc jackal
#

'apt-get' isn't the same as 'apt', if I recall..

dusk grotto
raw solar
#

And apt-get update isn’t the same as apt-get upgrade

zinc jackal
#

Ohh, yes.. the original 404.

dusk grotto
#

Yup

zinc jackal
#

I'm on night shift and it's a slow one. Lol

raw solar
#

You’ll need to update your sources

dusk grotto
#

If you dont mind me asking what do you work?

zinc jackal
#

IT tech support.

dusk grotto
#

Ahhh

dusk grotto
raw solar
zinc jackal
#

Derp

#

Not Raspbian

dusk grotto
#

Still brokes

zinc jackal
#

Do you have another SD card to write to?

dusk grotto
#

Yeah

zinc jackal
#

Ohh.. you'd need an SD card reader too

dusk grotto
#

Yup I got that to

zinc jackal
#

Might be worth using 'dd' to write it.

dusk grotto
#

Wdym?

zinc jackal
#

But then.. you'll need enough space to download the image.

dusk grotto
#

Its a 64gb so I'm good on space

zinc jackal
#

'dd' can write the image to an SD card and should already be part of the installed OS.

#

It's just the old fashioned way of doing it.

#

All command line.

dusk grotto
#

Hmmm

zinc jackal
#

'dd --version' should work, to see if it's installed.

dusk grotto
#

Would you be able to walk me through that process

zinc jackal
#

Uuuugggggghhhhhhhhhhh... Not me.
I'm too tired for that.. and I don't have a Linux machine with me.

dusk grotto
#

Lmao

zinc jackal
#

sudo dd if=NameOfImageToWrite.img of=/dev/rdiskNUMBER bs=1m

#

Something like that

#

Of course... If you get it wrong, it's a world of hurt.

#

Like, overwriting the current OS....

#

No bueno

dusk grotto
#

Wait could install it on my phone and have a flash drive hooked up to move the app over

zinc jackal
#

I'm actually struggling to stay awake here. Lol

dusk grotto
zinc jackal
dusk grotto
#

Because I have a type c to usb

zinc jackal
#

I think having image writer apps has made my old brain lazy..
Took a while to even consider dd. Lol

dusk grotto
#

@raw solar where'd you go we need some help here LMAO

#

Btw sorry for the ping

raw solar
#

I have no idea how to help here XD

zinc jackal
#

I'm going out for a smoke.. see if -5c wakes up a few braincells. 😅

dusk grotto
#

Oops didn't realize I can't curse

#

My bad

#

Lmao

#

Well crap it kinda sounds like we're out of ideas

raw solar
#

Time to beg to borrow a computer

dusk grotto
#

Lmao yeah

#

The issue is no one's home so I have to wait

boreal juniper
#

quick question does anyone know when adafruit will get rpis back in stock?

dusk grotto
#

God knows

raw solar
#

RPi foundation says stock in general will be better in Q2 2023

dusk grotto
#

Sorry that wasn't really answer but all we know is what kyoshii just said

raw solar
#

Yup. I think in the meantime it’s random

dusk grotto
#

I mean you really want one you could buy it on eBay and pay hundreds of dollars

raw solar
#

Don’t do that

dusk grotto
#

Yeah

boreal juniper
#

no worries I'm just astounded at the moment of what re sellers are asking ive been looking at doing a variant of the pelican pis with a sdr,lora focus

dusk grotto
#

I'm actually thinking about selling one of my old pies and getting some money off of it

#

Before the crash happens

boreal juniper
#

not a bad idea

dusk grotto
#

I have a pi 3 and 2 well I have 2 pi 3s but one doesn't work so I'm thinking about selling the pi 2 and maybe see what I could get off the broken one

raw solar
#

Maybe I should sell my Pi 4 8GB

dusk grotto
#

Bro what..

raw solar
#

What is your OS time set to?

#

And date

dusk grotto
raw solar
#

Weird

boreal juniper
#

if you guys want to make the bank yee

dusk grotto
#

Yeah I'm saving for a quest 2 so

#

Lmao

#

Should I just go to it

raw solar
#

I need to feed my Adafruit addiction

dusk grotto
#

Lmao

raw solar
dusk grotto
#

Bro sounds like that what NPC that sends me on a quest to find the treasure but only gives me riddles

raw solar
#

Lol

zinc jackal
#

I still have my Pi model B, 512MB. 😂

dusk grotto
#

Lmao

#

That's what I'm using now

raw solar
#

I have an original Pi B! Forget if it was 256MB or 512MB

zinc jackal
#

256

zinc jackal
#

Sorry.. the first Pi was 256MB.

raw solar
dusk grotto
#

Y'all remember this

zinc jackal
#

Narp. 😅

raw solar
#

I don’t remember last week

dusk grotto
#

It does load anymore

dusk grotto
zinc jackal
#

I never used that.

raw solar
#

Did I have breakfast?

#

Where am I

#

WHY ARE YOU IN MY HOUSE

dusk grotto
#

You take the blue pill, the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill, you stay in wonderland, and I show you how deep the rabbit hole goes

#

Lmao

raw solar
#

My pills are green

zinc jackal
#

If you think this is fun... I'm expecting delivery of the Pine64 Ox64 SBC soon.

#

You have to flash the OS onto it via serial UART.

#

...and that's still in early development.

raw solar
#

Omai

dusk grotto
#

yo they both work

#

I could get about a 100 off of both

#

Which means I only need 148 dollars more

zinc jackal
#

Oof

dusk grotto
#

And i don't have a job

zinc jackal
#

Dayum

dusk grotto
#

Yeah

torn trench
#

although it's nice to be able to do things like specify the block size, and see status, etc

#

I just think that's a fun bit of trivia

zinc jackal
#

Never used cp for block writes to a device..

torn trench
#

is there a way to read from a file in linux, repeatedly, without closing the file descriptor?

#

for broader context, I've opened a file in /sys representing my temperature sensor

#

and I would like to repeatedly read it

#

I believe the gpio /sys entries can do this, but it might be down to the backing driver? (this is an IIO device)

#

It seems like lseek(fd, 0, SEEK_SET) fixes the issue

dusk grotto
#

So about the thing about manually downloading it I found the USB to type c thing so im planing on downloading the imager later today

solar meteor
#

I'm trying to get Node-Red to play an audio file but am having issues. I have an exec node run "paplay -p --device=3 /usr/share/sounds/alsa/Front_Center.wav"
That command runs fine via terminal, but when called from Node-red I get this in the debug-log

Command failed: paplay -p --device=3 /usr/share/sounds/alsa/Front_Center.wav
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

turbid rivet
#

You only need a microSD reader, no?

dusk grotto
#

For my phone because I dont have a computer to download the imager on and I for some reason can't get the link to download the imager working on my rpi so I'm using my phone to install it and then move it over to my rpi

raw solar
#

There’s an app to write images on a phone? :0

dusk grotto
#

No

#

But I'm gonna download it and move it over

#

I wish tho

raw solar
#

Ohh

#

Phone just to download then

dusk grotto
#

Yeah

dusk grotto
#

Nah I'm good

#

I like to do thing the harder way

#

It makes it interesting

uneven solstice
#

I'm having a problem with a Raspberry Pi Zero 2 W: I configured the device as an USB multigadget, with a serial port and an Ethernet interface. It has DNS and DHCP servers, so I can use it as an USB modem. I'm noticing a problem that, when transferring a lot of data from/to the internet, errors may start to happen and the wlan0 interface dies:

[  840.686461] brcmfmac: mmc_submit_one: CMD53 sg block read failed -110
[  840.686511] brcmfmac: brcmf_sdio_rxglom: glom read of 9216 bytes failed: -5
[  840.688557] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame
[  840.689543] brcmfmac: brcmf_sdio_hdparse: HW header checksum error

And then I have to power off and on the Pi to get the wlan0 working again. The Wi-Fi seems to overheat. Is it OK to add a passive heatsink to the Wi-Fi chip or it can cause interference/connection problems?

torn trench
#

is there something that makes you think it's heat, specifically, as opposed to a software bug in the driver?

#

are you on USB power?

#

that could explain it

uneven solstice
#

It may be a software bug, but I can stand only a few seconds touching it after it happens

uneven solstice
# torn trench are you on USB power?

Yes, it was. Now I connected a portable charger to the power port, so there are two USB interfaces powering it. I'll see if it happens again
Edit: 🤣 Now the 4G modem crashed first, it got in a boot loop. Have to use the 3G modem now. It seems it was an issue with power on the Pi, really

torn trench
#

is that gonna cause issues with two different grounds? (I legitimately don't know)

uneven solstice
#

I never had problems doing this (that I'm aware of)

#

I made that error happen before when the data USB was connected to the computer and the power USB was connected to a modem, so the Pi and the modem were getting power from the data USB. Which had the multigadget file limiting to 250 mA. I set it to 500 mA now

supple yoke
#

hlo

#

pls help me

#

when i connect my pico to computer it alwasys shows as a mass storage device

worn glen
#

You don't need to say "please help me". You are in a channel with the word "help" literally in its name

faint sparrow
#

My guess is it shows mass storage as it 'sees' no second choice.
For RP2040, the boot sequence is affected by that button on most boards, which simply disrupts reading from external flashROM.

#

With no alternative, then, it does an 'internal' boot sequence that does not directly depend on the flashROM chip.

#

Part of that is to present a mass storage device on the USB interface.

#

So (presumably) if flashROM storage doesn't have some minimum signature stored on it, a similar process happens.

#

You can leverage this for daily development: if you compile to a RAM-only image, it'll load the .UF2 (as usual) but won't change flashROM contents (at all).

#

I use this to keep a permanent copy of a debugger on flashROM (it is in fact a Forth interpreter that lets me examine contents of memory, interactive at the keyboard).

Then I'll upload a nearly identical program to RAM, and use that to examine the debugger (Forth code) stored in flashROM.

dusk grotto
zinc jackal
#

Yeah, but I'm ok.

#

Just left a face-dent in the wall.

dusk grotto
#

Lmao

smoky birch
#

I have a Pico W and Circuitpython problem: I've uploaded the adafruit_requests.mpy library to the pico, I import it but then when I try to use it the error message says: "File "adafruit_requests.py", line 809, in get
AttributeError: 'NoneType' object has no attribute 'request'"
I VSCode with the Circuitpython extension

#

I bet I miss something obvious but can't figure out what.

dusk grotto
smoky birch
#

Thank you, will try that

worn glen
dusk grotto
#

It's fine as humans people make mistakes and sometimes are in the right head space so it totally normal to get annoyed sometimes

worn glen
#

Thanks

fickle rose
tired marsh
#

yep

twin helm
#

third-party, but yes. i'm not sure how well it's maintained

dark wagon
#

hi guys, i have a problem, every time i upload a version of circuit-python on my raspberry pi pico the upload starts but when it' finished there are no folders like "lib", but there is a file named boot_out. nothing more, nothing less. obviusly evry time thath i upload the file the pi change name into "circuitpy". i am trying to use the pi as a bad USB just to test how it works. pls elp

#

i tried to reset the pi but nothing changes

dusk grotto
dark wagon
#

ok thz

limpid mulch
#

i have a question is it here i need to ask things about my raspberry pi pico?

turbid rivet
limpid mulch
#

ok becouse i want to make the ultimate prank and i have a azerty keyboard and becouse of that it types wrong code and i cant find the rickroll/prank script

turbid rivet
#

What language is it coded in?

limpid mulch
#

python

#

i think

#

and i want to make my pico work like a rubber ducky

#

what do i need to do

#

how can i change the keyboard layout

tired marsh
#

the pico-ducky repo has info on how to setup a layout

tired marsh
limpid mulch
#

O thx and do I need to change my payload?

limpid mulch
#

Becouse my keyboard is azerty

tired marsh
#

normally no, unless there are characters that can't be typed with the normal layout, in xhich case they should be on a separate line as a key shortcut

limpid mulch
#

Huh?

#

It's the rickroll script

#

And how do i make a shortcut

tired marsh
#

yeah it should not be a problem

limpid mulch
#

Ow ok can I add you for tomorrow i wil finish it

tired marsh
#

just follow the readme to use the correct keyboard layout

limpid mulch
#

Ok can I add you on discord

tired marsh
limpid mulch
#

Ok

#

I need to go sleep have a nice day/night

limpid mulch
#

But if you try to turn it of is there a way I can make the cursor move so he can't trun the file of

echo hare
#

.

paper crater
#

I'm reading through some beginner examples and have a question about buttons
The diagrams show connecting one terminal to the power rail and another to the pin on the pi
But what controls the current in this situation? Since the button is low resistance, wouldn't it be better to wire it to a low-voltage output pin instead of the main power line of the circuit? I don't want to overheat my board if someone holds the button down
Or maybe the board itself has built in resistance on the pin and will limit the current appropriately?

faint sparrow
#

The button gets a pullup resistor. There are internal pullups available for most target boards' GPIO pins.

#
   +----------------------------------------------+
   |                                              |
   |              10k           \                 |
   |     Vcc o---/\/\/---+----o  o-----o Ground   |
   |     +5V             |    SPST                |
   |                     |                        |
   |                     +----o GPIO pin          |
   |                                              |
   +----------------------------------------------+
#

External 10k pullup.
The pullup pulls the GPIO pin up to Vcc 5.0 volts. When the pushbutton switch is pressed (SPST, normally open) it grounds the pin, and the 10k resistor conducts as well.

#
I = E / R
I = 5 / 10,000
I = 0.5 milliamperes
#

The two rails are always separated by a 10k resistor, in the worst case scenario.

paper crater
#

Thanks, that looks kind of like what I was expecting with the resistor to limit current.

I think the difference in the tutorial I'm reading is that they use the 3.3v out from the board, instead of direct from VCC - so maybe the available current is much lower and its ok to connect it without a resistor? Or would you still expect to see a resistor in this circuit for the switch
https://learn.adafruit.com/assets/98808

Alternatively, sometimes I see schematics connecting one side of the button to ground, and the other end to a pin, which seems safer to me. That seems to be what most of the diagrams on this page do
https://learn.adafruit.com/circuitpython-essentials/circuitpython-digital-in-out

Adafruit Learning System

The next step in learning CircuitPython.

faint sparrow
#

Using a pulldown turns the logic right side up. Pullups invert it. So code is usually easier to write (and to read) using pulldowns.
Older tech often only had pullups. Some more recent chips can do both. ;)

No idea why you think you need to 'select a' Vcc ;)

Every datasheet states something very similar about GPIO: when it is on (logic 1) it's at Vcc.

#

If you're confused buy a target board that is supplied with documentation (a schematic) and look for the Vcc pin on the chip.

#

Look in particular at the 32u4 since it can be strapped for 3.3 or 5.0 vdc logic.

steady rose
#

might also help to understand the general issue that the pull up/down resistor helps avoid - "floating inputs"

#

since the pull can be either up or down and the pull resistor itself might be internal or external - you'll end up seeing lots of variations in button wiring

paper crater
#

Thanks for the help. I'm on an rp2040 (pi pico). Guessing there's an internal resistor which is why that adafruit sample didn't add a resistor with the high side switch?
Another concept thats confusing me is low side vs high side switching, I didn't realize they were both options

steady rose
#

if no resistor is shown, that typically implies an internal one is being used. but always best to verify somehow. for example, the associated code should show enabling the internal pull

#

that same guide discusses how the arrangement can go either way, in terms of wiring to GND vs VCC

pliant anchor
#

hi everyone, so i'm on a rp2040 (the pi pico) running circuitpython and i would like to control a single neopixel with a gpio of the pi pico, to be sure the 1 and 0 logic would be read i put a n-channel mosfet (the bs270, r_ds(on) = 2ohms, 400mA, t_on = t_off = 10ns) with the following circuit (where the +5V is provided by a voltage regulator, the L7805CV, which provides 5V 1.5A and the +3.3V is provided by the 3.3V(OUT) pin of the pi pico) to convert the 3.3V logic to a 5V one. Would I be fine running the neopixel white at full brightness? thanks

civic rune
#

A single neo at full consumes .06A

pliant anchor
#

will the bs270 be fast enough to transmit the 24 bits of data correctly? because i tried with a bs170 and the results where unstable (there were mostly flickerings)

#

and the color was totally wrong sometimes

civic rune
#

Do you need to use that fet?

#

The one adafruit uses to do this would work

pliant anchor
#

it's the only one i have on my hands rn

civic rune
#

Ah

#

I can't remember how to determine rise time stuff

pliant anchor
#

data transmission time is 1.25us according to sk6812 datasheet there's like a 1000 factor difference i think it should be fine

steady rose
#

the current on the data line generally shouldn't vary with power draw

#

could try with 3.3V level logic on din and see if it works

pliant anchor
#

3.3V was very inconsistent when i tried

steady rose
#

bummer. yah. it's out of spec for neopixels (theyre 5v). but quite often can get away with it.

pliant anchor
#

i could try and cheat with the 5v on vdd but i'm not sure that's a very reliable practice

steady rose
#

you mean power at 5V and data at 3.3V?

pliant anchor
#

but i don't know it feels really hacky lol

steady rose
#

yah. it's a hack.

fickle rose
#

it might work tho

steady rose
#

yep. general idea is it all becomes 5V after the second pixel.

#

sort of like using the neopixel itself as a level shifter

fickle rose
#

the first pixel brings the 3.3v up to ~4.3v and that becomes 5v after the second pixel

steady rose
#

i've gotten away with 5V power and 3.3V data without any extra hardware though. might not work for all setups. but can try.

pliant anchor
#

well i will give it another shot then maybe this time it will work

#

but running it like that means that the neopixel can't draw more than 16mA otherwise the gpio of the pi pico would suffer no?

steady rose
#

its the power line that needs to worry about the current draw

#

not the data line

#

which is what the gpio is connected to

pliant anchor
#

oh ok

#

i'll try then thanks for the help 🙂

steady rose
#

has some good basic power etc. info

pliant anchor
#

thanks i'll read it carefully

brisk leaf
#

Howdy, I'm trying to setup a rpi pico with a separate esp32 wifi module to make api requests, and an rgb led matrix, to display some info like time/stocks/weather.
I've excluded the led matrix for now, because I want to get the data fetching working performantly. I originally was just using the basic requests lib in a forever while loop, but some api requests take multiple seconds, and I want the display to be updated multiple times a second, so I'm looking into adding asyncio to let the api requests be deferred, but I'm having trouble setting up the async stuff.
As it stands now, the loop runs once, makes one api request and prints the data, and then the second loop fails with AttributeError: 'list' object has no attribute '__await__' and googling that error didnt turn up anything

rotund pivot
brisk leaf
#

Here's a pastebin of the code.py https://pastebin.com/3ZYz1CLM
The update stock info method is pretty basic, it awaits the api.get request and then unpacks some data. stock_list is an array of objects, for the specific stocks to get (ie different stocks fetch from different apis, and have different response models to handle)

rotund pivot
#

I mean, you can run asyncio, but Requests is still a monolith

brisk leaf
#

yeah I saw a closed issue in the requests github about a future async supported requests library. are you saying it's just not possible to do async http requests with circuitpython? or there might be and I should ask in that other channel?

rotund pivot
#

what line number is the exception?

brisk leaf
#

here's the full stack:

#   File "code.py", line 55, in <module>
#   File "asyncio/core.py", line 265, in run
#   File "asyncio/core.py", line 229, in run_until_complete
#   File "asyncio/core.py", line 214, in run_until_complete
#   File "code.py", line 49, in main
#   File "asyncio/funcs.py", line 113, in gather
#   File "asyncio/funcs.py", line 108, in gather
#   File "asyncio/core.py", line 214, in run_until_complete
#   File "code.py", line 39, in update_data
# AttributeError: 'list' object has no attribute '__await__'```
rotund pivot
#

you can do async requests, but requests isn't written for async right now, so it will still take a few seconds

brisk leaf
#

although I think the line numbers are off by 2 in the pastebin

rotund pivot
#

no await here: data = await update_stock_info(stock_list=data)

brisk leaf
#

so its actually line 37 in the pastebin

#

youre saying I should remove that await from update_stock_info? I made it (and all it's downstream method calls) be async def although the only actual async thing I'm awaiting in that stack is the await requests.get(url) call

rotund pivot
#

you may be doing some advanced usage I'm not savvy to, but the await asyncio.sleep() are the key ways to release and re-schedule

brisk leaf
#

cool, will do thanks!

civic rune
#

What language are you using?

placid linden
#

python

civic rune
#

Circuitpython?

placid linden
#

yeah

civic rune
#

I'd move your post to #help-with-circuitpython then. This is really more for the SBC Raspberry Pi. Delete your post here tho so folks don't get confused.

#

See above 🙂

#

Single board computer. It's a bit confusing since they called it a raspberry pi Pico. This channel was named a long time before the Pico existed

#

The Pico is a microcontroller, a bit of a different beast.

#

No stress at all

#

It's a very common occurrence

compact crypt
#

Hey
I recently got the 400 and was just wondering what moniter to get?
I have only a laptop and right now I only have the display working on my TV

civic rune
#

Are you working from home wifi most of the time?

torn trench
#

do you want to use the pi with a display, or would you be interested in VNC / SSH access?

#

(from your laptop)

tropic flame
#

Hi! Does anyone know of a good way to confirm that my PI 0 W is connected to the internet with Python with some sort of output? I'd like to use the output to light an LED if i'm correctly connected.

tropic flame
#

Just figured it out. I'm going to use the requests to try and connect to google. If it returns an error i'm not connected.

rotund pivot
#

@tropic flame you could also ping a server

prisma fiber
#

my pi went straight red light im yet to reset the card curious if theres any other issues i may be missing

wheat escarp
#

hello can i install kali sticky fingers to raspberry pi 4 model b

tropic flame
#

Hi! I’m working on a raspberry pi project that uses a relay to control a high voltage pool pump. I’m using the guide here: https://www.instructables.com/Raspipool/?amp_page=true

While hooking up the pump it says to use contractors between the relays and pump. Is this standard practice? If so why?

wheat escarp
torn trench
ornate verge
#

Hi All, I'm curious if any one has any suggestions on a C/C++ library to interact with the GPIO pins on a raspberry pi running 64bit Raspberry Pi OS. Looks like WiringPi won't be a good option moving forward https://git.drogon.net/?p=wiringPi;a=summary. Any Ideas?

torn trench
#

I've been using sysfs

#

In general, to turn on GPIO 17:

$ echo "17" > /sys/class/gpio/export
$ echo "out" > /sys/class/gpio/gpio17/direction
$ echo "1" > /sys/class/gpio/gpio17/value
#

(you should be able to write to these files using any programming language)

torn trench
#

Or read them. And you can to similar things for sensors even!

gloomy carbon
#

Hey folks I was wondering what you would like to see added to the Raspberry pi pico w like any improvements etc

dusk grotto
#

Question how would I go about running a .deb program

twin helm
dusk grotto
#

The rpi image download for Linux came in a .Deb how would I run thst

#

Imager*

twin helm
#

where did you find this? and which Linux are you running?

dusk grotto
#

Rpi os

#

And on the website

#

I think that's the urp

#

Url

#

Yeah that is the url

twin helm
dusk grotto
#

Due to past issues I can't do that

#

It says it doesn't understand install

#

And I can't update or upgrade

twin helm
#

i think the .deb on that page is for x64, not ARM, so i'm not sure you can install it on Raspberry Pi OS

torn trench
#

What are the issues preventing you from installing rpi-imager from apt?

dusk grotto
#

@torn trench

torn trench
#

Yeah I remember this now haha

#

The easiest way to do this would be to backup any files you need, then use another computer to reimage the pi’s disk

twin helm
#

@dusk grotto from looking at your prior issues, you seem to be running an outdated release, and it might be so old that you don’t have an easy upgrade path. if you’re also getting SSL handshake errors, you’re going to have trouble accessing other web sites, because your cipher suite support is probably out of date in your OS. it might be theoretically possible for you to upgrade, but it would take a lot of specialized knowledge and locating an active legacy package archive that still hosts wheezy packages

ornate verge
turbid rivet
#

I’m wondering if rpi-imager works on wheezy. Will it even allow you to install it?

dusk grotto
twin helm
river spade
#

Hey, I'm looking to attempt to make a drone largely from scratch. For this I want to take some arduino or maybe raspberry pi and have that run the show. I'd want it to have capability to stream video back to me through LTE or wifi (not sure yet). I was looking for advice on what should my main microcontroller or sbc be?
I imagine processing video and streaming as well as controlling the craft on top of all that could require a fair bit of performance and I am not sure what could deliver that. Obviously I am looking to not spend any more than I have to. Thanks.

torn trench
#

That sounds like a really cool project. I have heard of a maybe similar project called ardupilot. I think they have moved on from just arduinos though.

#

My suspicion is that you'll want both MCUs and an SBC

#

MCUs running real time control algorithms to keep the thing in the air, and the SBC crunching video, getting high level commands and sending them to the MCUs, etc

#

Something like the BeagleBoard/Bone products could work really well right out of the box. The cheapest ones have PRUs (programmable realtime units) on the SOC, but the main application cores of the SOC run linux. All in one convenient pacakge. Higher capabilities of the same product family have additional Cortex-M MCUs, GPUs, DSP coprocessors

#

But I think a raspberry pi with a UART connect to an MCU might work just as well.

ornate verge
dusk grotto
#

I would have never known where to find that kind of stuff

#

So thanks again

robust copper
#

Anyone know how to hold down a key in VNC viewer mobile? I'm trying to hold down arrow keys but I can only tap.

paper crater
#

I'm confused about the flash storage on the Pi Pico. From the product page (https://www.adafruit.com/product/5526):
It does not have built-in FLASH memory. Instead, that is provided by the external QSPI flash chip. On this board, there is 2MB, which is shared between the program it's running and any file storage used by MicroPython or CircuitPython

How is that 2mb of memory different than flash memory? I am wondering if I can write to it for logs and temp files, or if thats a bad idea for some reason

#

Would it degrade the chip lifespan to write and rewrite the same sectors of the onboard qspi with dynamic files during execution?

umbral sable
#

It's flash, but it's in a separate chip accessed over SPI instead of inside the microcontroller on the direct memory bus, so it's slower to access. It'll have the same sort of 100,000-write lifetime.

paper crater
#

Ah so thats what "it does not have built-in flash memory" means: the RP2040 microcontroller doesn't have any built in, but the pi pico has a 2mb chip accessible via SPI
I was under the impression that QSPI was a type of flash, but I think I get it now. Thanks for the help

#

I want to use it to write a small audio file downloaded from the net, then read it back using the audio libraries. I think it should work speed-wise since it will be reading from the same place as a file copied from my computer

twin helm
#

it kind of is; QSPI is a Quad SPI interface, so you can say QSPI flash to mean a flash chip with a QSPI interface

paper crater
#

(I was going to try to stream the network packets into the mp3 decoder, but circuitpython doesnt want to take a BytesIO instance)

wispy hazel
#

What’s my best option if I need a 25ft 5v 4a power supply?

torn trench
#

25ft being the length of the cable between the supply and the wall outlet?

wispy hazel
#

From outlet to pi. It’s outdoors

steady rose
#

[outlet]=======(basic 25ft extension cord)=======[5V 4A supply]--(USB cable)--[RPI]

twin helm
#

yeah, your resistive losses will be lower if you do the long cable run at line voltage instead of 5V

wispy hazel
steady rose
#

do you already have the 5V 4A supply?

wispy hazel
#

Yes, but the cord isn’t long enough. I thought about just cutting it and splicing my own.

#

I guess I could do a secondary enclosure for just that

#

And then be able to run the extension cord.

#

Might just do that

civic rune
#

You can get away with quite a lot with something like that

#

Leave drainage space and try to add some extra cover

#

IP54 isn't amazing so be cautious

wispy hazel
#

That’s just an example I found so not set on it and will keep looking. Thanks though!

steady rose
#

can you link to info on the 5V 4A power supply

wispy hazel
steady rose
#

is it just a basic wall wort type?

wispy hazel
steady rose
#

yep

#

if a second enclosure would work, then that'd probably be easiest

wispy hazel
#

Yeah I think that’s the route I’m going to go. Definitely sounds easiest. Thanks everyone!

steady rose
#

does it terminate in a barrel style connector?

wispy hazel
steady rose
#

could possibly make a "custom" extension cable - barrel to micro-usb

#

[outlet][5V 4A supply] }}=======(custom 25ft extension cord)========{{ [RPI] }}

#

squiggle brackets are weather proof enclosure

wispy hazel
#

Yeah I think I’m just going to go with running an extension cable and using another weather proof enclosure to house the power supply and then running the cable into the enclosure with the pi. Seems the easiest option. Can mount that enclosure right under the pi enclosure.

faint sparrow
#

You may be undervoltage at the far end. I'd run it hot to at least 5.4 volts at the source end.

twin helm
#

assuming it's adjustable, which it might not be

torn trench
wispy hazel
dusk grotto
#

Alright quick question if I have one pi os could I install a another image and then flash that on the same device

copper summit
#

Would it be possible to use a pico to do 1.3v uart without additional hardware?

umbral sable
#

Do you really mean 1.3V? That's an unusual voltage.

copper summit
umbral sable
#

You'll likely need some extra hardware, then. On the Pico TX, you could get away with just a resistor divider, but the RX is likely too low-voltage for the GPIO pin threshold, so probably the best bet is a real level-shifter.