Go to advanced search

by Eirikur
Thu Apr 15, 2021 4:42 am
Forum: General discussion
Topic: Can you build an impact sensor with a Raspberry?
Replies: 17
Views: 554

Re: Can you build an impact sensor with a Raspberry?

I love that striped background idea. If you control the background, that's a really nice solution and OpenCV would work fine. No messy measuring distances every time you set things up.
by Eirikur
Mon Apr 12, 2021 9:44 pm
Forum: General discussion
Topic: Can you build an impact sensor with a Raspberry?
Replies: 17
Views: 554

Re: Can you build an impact sensor with a Raspberry?

Do some Googling and look at these two sites for sensors: adafruit.com and sparkfun.com. Both have various sensors that are made easier to connect via breakout boards. You want to measure speed? That's more complicated than most of us thought you wanted. Look at ultrasonic range finders if the dista...
by Eirikur
Sat Apr 10, 2021 10:56 pm
Forum: General discussion
Topic: USB Hub That Does Not Back Channel Power To Pi?
Replies: 2
Views: 135

Re: USB Hub That Does Not Back Channel Power To Pi?

I believe you can take a cheap USB cable with the right connectors for your application and cut it. You then splice together all the wires except for the power wire. It's just wires.

This site is a good resource:

https://www.electroschematics.com/usb-how-things-work/
by Eirikur
Sat Apr 10, 2021 10:51 pm
Forum: General discussion
Topic: connecting to BMS
Replies: 1
Views: 72

Re: connecting to BMS

Bluetooth wont' do this for you as far as I know. You have wired Ethernet but you want a wireless connection to it. Bluetooth (you can always read the specification for things like this) doesn't do Ethernet over Bluetooth. It would be slower than WIFI and a bit pointless. What you actually need is a...
by Eirikur
Thu Mar 18, 2021 10:02 pm
Forum: General discussion
Topic: I would like to use a Pi for station alerting
Replies: 3
Views: 229

Re: I would like to use a Pi for station alerting

USB audio dongles are cheap. I use the Syba brand, but any brand should work. Standard class-compliant USB audio devices work out of the box on Linux, including Raspbian and Pi OS.
by Eirikur
Mon Mar 15, 2021 3:09 am
Forum: General discussion
Topic: Use Pi to control power to usb-connected device
Replies: 4
Views: 262

Re: Use Pi to control power to usb-connected device

MiscBits has the story for you, which I quickly found via Google.

https://stackoverflow.com/questions/597 ... berry-pi-4

Looks like it's all or nothing, unfortunately, but I didn't even think it was possible at all, so I have learned something.
by Eirikur
Wed Mar 10, 2021 10:52 pm
Forum: Networking and servers
Topic: How sniff packets sent to another IP address on wlan0?
Replies: 5
Views: 273

Re: How sniff packets sent to another IP address on wlan0?

You are saying you want to run a sniffer on computer A, the pi, and sniff packets sent by computer B to some computer C, right? I always suggest reading up on how Ethernet works, but let me tell you something I learned when I wrote my own security scanner and sniffer: when you have an Ethernet switc...
by Eirikur
Wed Mar 10, 2021 9:36 pm
Forum: General discussion
Topic: Turn LED On When Script Terminates
Replies: 5
Views: 257

Re: Turn LED On When Script Terminates

I couldn't find a way to avoid the "automatic cleanup" that gpiozero does at program exit. So, I think you should set the pin high using some other method. The Pi has wonderful integration with the Linux sysfs filesystem. The article that I'm linking tells you how to manipulate pins at the...
by Eirikur
Mon Mar 01, 2021 8:32 pm
Forum: General discussion
Topic: USB Matrix Switch
Replies: 1
Views: 110

Re: USB Matrix Switch

I think you need to actually switch the wires. I have a suggestion for that. I've done a crosspoint switch like this for MIDI signals using pis, but I could do that as a non-kernel traditional application program, using USB <-> MIDI adapters. To make it look like the USB device is actually attached ...
by Eirikur
Tue Feb 23, 2021 5:31 pm
Forum: General discussion
Topic: virtualization of rpi4 hardware
Replies: 4
Views: 319

Re: virtualization of rpi4 hardware

I love the idea of this script, but it doesn't work for me right out of the box. Is this the version that you are actually using? You create the LOOPDEV variable but do not use it when you mount the partitions. I changed that, but that didn't make it work for me. Linux Mint 20.1 (Ubuntu, kernel 5.4)...
by Eirikur
Tue Feb 02, 2021 4:56 am
Forum: General discussion
Topic: Re: FM Sounds
Replies: 1
Views: 221

Re: FM Sounds

There are many, many, software solutions in this space. I'm personally familiar with the VST plugin world, but Google on 8bit or chipsound synthesis and you should find many options.
by Eirikur
Thu Jan 28, 2021 11:56 pm
Forum: General discussion
Topic: Nixie Clock Project Help
Replies: 2
Views: 137

Re: Nixie Clock Project Help

Do you have any information on using the phone screens as displays? I suspect this would be extremely difficult due to lack of documentation about the hardware and the size of the connections that you would have to make. I would not even attempt it myself, and I work on watches with dental picks. Yo...
by Eirikur
Thu Jan 28, 2021 1:41 am
Forum: Raspberry Pi OS
Topic: Linux Sampler on a RPI4B?
Replies: 7
Views: 1206

Re: Linux Sampler on a RPI4B?

Getting ready to move my music keyboard project back on the the Pi, on the Pi 4B. If you didn't know about the patches, here's a handy pointer. I've built Linuxsampler for ARM and run it on Pi 2B and 3B (and built the rt-preempt kernel!) using the patches. It's just nonsense that the patches aren't ...
by Eirikur
Thu Jan 28, 2021 12:08 am
Forum: Android
Topic: android raspberry pi 4
Replies: 3
Views: 502

Re: android raspberry pi 4

May I ask what need you have for Android on a Raspberry Pi? It will not be optimized for video, and it's a pretty terrible platform for learning programming. Perhaps you have some program that you could port to a standard Linux and thereby get all versions of the Pi (still no accelerated video on th...
by Eirikur
Wed Jan 27, 2021 2:45 am
Forum: General discussion
Topic: Grep help needed.
Replies: 10
Views: 483

Re: Grep help needed.

Zowie! This should win a prize for clean, well-documented shell scripts. I am impressed.
I saved this even though I don't need it right now.
I love the collaborative effort, too.

I was going to grouch about looping in shell script, but then I looked at it. There is nothing to complain about there!
by Eirikur
Fri Jan 22, 2021 1:51 am
Forum: General discussion
Topic: AnyDesk on Pi Zero W
Replies: 3
Views: 311

Re: AnyDesk on Pi Zero W

You should check with AnyDesk to see if the Pi Zero is supported. It has a different CPU. It's different enough that not all programs compiled for the Pi will run on it. I had this problem with one of the executable binaries in Docker.
by Eirikur
Thu Jan 14, 2021 9:09 pm
Forum: General discussion
Topic: Using Raspberry PI for streaming
Replies: 2
Views: 189

Re: Using Raspberry PI for streaming

Assuming that you have an audio signal, all you need is a simple USB audio adapter like this. They are a cheap generic part. I've used the Syba ones, but an "driverless" class-compliant ones will work on a pi just fine. The command "arecord -l" will tell you about what interfaces...
by Eirikur
Tue Jan 05, 2021 6:18 am
Forum: General discussion
Topic: power supply rpi4
Replies: 5
Views: 250

Re: power supply rpi4

And don't use a phone charger. They are battery chargers and then the battery powers the phone. Many of them do not produce clean enough DC power to directly run a computer like the Pi. The official Pi supply is good. The Canakit supply is good. I like the Argon40 supply because it provides a little...
by Eirikur
Tue Jan 05, 2021 6:15 am
Forum: General discussion
Topic: X86-64 on my PI 4B 8GB
Replies: 12
Views: 996

Re: X86-64 on my PI 4B 8GB

It's *always* much safer to stay with programs where the source code is available and that goes 10X when your target platform is not X86.
I'm sorry that you bought the Pi hardware before researching the software you had settled on. Is there some other software that could do the job?
by Eirikur
Sat Jan 02, 2021 5:21 pm
Forum: General discussion
Topic: Pull data from Pi.
Replies: 3
Views: 248

Re: Pull data from Pi.

Well, first you'll have to learn how that data is stored and where it is located. Perhaps there is a Home Assistant API to retrieve it. If it's in a file, you could read the contents via SSH, but you still have to read and parse it so if there's an API, that's going to be easier, so you have to hit ...
by Eirikur
Thu Dec 31, 2020 11:56 pm
Forum: General discussion
Topic: i wish ATX cases exists for the raspberry pi
Replies: 17
Views: 856

Re: i wish ATX cases exists for the raspberry pi

The ArgonOne and ArgonOne M.2 from Argon40.com are extremely nice pieces of engineering.
by Eirikur
Fri Dec 04, 2020 6:26 am
Forum: General discussion
Topic: Autostart script after connecting to internet
Replies: 1
Views: 123

Re: Autostart script after connecting to internet

I think that systemd (the startup system used in Pi OS) is the right answer, but but for networking, it seems as though it is not as simple as other systemd things. The definition of "network up" is not so precise. Systemd is really the right solution for starting services at boot time and...
by Eirikur
Tue Nov 17, 2020 4:59 am
Forum: General discussion
Topic: US timezone expert -- timedatectl and PI
Replies: 13
Views: 1383

Re: US timezone expert -- timedatectl and PI

geoip technology is pretty common, especially in installers. That's how the Pi setup guesses your time zone. I don't know if there are any fully free services.
by Eirikur
Tue Nov 17, 2020 4:56 am
Forum: General discussion
Topic: Window Borders Disappear On Raspberry Pi OS
Replies: 4
Views: 278

Re: Window Borders Disappear On Raspberry Pi OS

Backups. Always backups.

Go to advanced search