/r/raspberry_pi

3,204,207 Subscribers

1

Can't use PyAudio in a service

I have Python code that uses PyAudio to listen to the sound from the microphone on my Raspberry Pi. It runs fine in terminal in python3.

But when I try to run my program as a startup service, it fails while trying to execute:

pa = pyaudio.PyAudio()

_stream = pa.open(format=pyaudio.paInt16,

channels=1, rate=SAMPLING_RATE,

input=True,

frames_per_buffer=NUM_SAMPLES)

The error message is:

Nov 08 10:59:11 raspberrypi python3[7262]: File "/home/pi/laundry_alarm/laundry_alarm.py", line 125, in <module>

Nov 08 10:59:11 raspberrypi python3[7262]: _stream = pa.open(format=pyaudio.paInt16,

Nov 08 10:59:11 raspberrypi python3[7262]: File "/usr/lib/python3/dist-packages/pyaudio.py", line 750, in open

Nov 08 10:59:11 raspberrypi python3[7262]: stream = Stream(self, *args, **kwargs)

Nov 08 10:59:11 raspberrypi python3[7262]: File "/usr/lib/python3/dist-packages/pyaudio.py", line 441, in __init__

Nov 08 10:59:11 raspberrypi python3[7262]: self._stream = pa.open(**arguments)

Nov 08 10:59:11 raspberrypi python3[7262]: OSError: [Errno -9996] Invalid input device (no default output device)

Nov 08 10:59:11 raspberrypi systemd[1]: laundry_alarm.service: Main process exited, code=exited, status=1/FAILURE

Nov 08 10:59:11 raspberrypi systemd[1]: laundry_alarm.service: Failed with result 'exit-code'.

Nov 08 10:59:11 raspberrypi systemd[1]: laundry_alarm.service: Consumed 2.341s CPU time.

My laundry_alarm.service file looks like this:

[Unit]

Description=Start laundry alarm application on boot

After=multi-user.target

[Service]

ExecStart=/usr/bin/python3 /home/pi/laundry_alarm/laundry_alarm.py

User=pi

[Install]

WantedBy=multi-user.target

Any help would be greatly appreciated. It's driving me crazy that it works in terminal but not in a service. Thank you.

3 Comments
2024/11/08
17:23 UTC

114

Half-Life running on RPI 4B (Tiny11 arm64)

20 Comments
2024/11/08
16:42 UTC

14

A project for my boat

https://preview.redd.it/dbjyf4yx2pzd1.jpg?width=4000&format=pjpg&auto=webp&s=09dac8933a83e7d12421352f080252169b451289

https://preview.redd.it/ait3izwx2pzd1.jpg?width=4000&format=pjpg&auto=webp&s=e3e2c7f2c1d1362dd1f7fb7c7f89cc773f3e1e71

https://preview.redd.it/twhrhzwx2pzd1.jpg?width=4000&format=pjpg&auto=webp&s=2d48d775f052d93bea173d999367172d7aa6fad0

For my boat, i'm running a RPI 5 with 4 gb ram.
NVMe base from pimoroni with a 2280, 250 GB nvme drive.
A SupTronics Technologies X1201 V1.1 UPS with 2x 18650 batteries
and finally, a PICAN-M, Rev-b NMEA board for the boat instruments.

The OS i'm running, is the OpenPlotter 4.x.x, with signal-k, zigbee2mqtt and a 4g modem.

I get power from the NMEA bus, but i'm still testing if the UPS board will get power from the PICAN-M card. If not, i need to get a buck converter to supply the UPS board with 5V.
I plan to have a 12v supply constantly connected to the "house" battery on the boat

The boat is mostly on shore power when not used. I will also have a LVDO connected, so i do not drain the "house" battery when not on shore power and the boat is not running.

1 Comment
2024/11/08
15:25 UTC

36

We wanted to save some money on GitHub Actions, so now we run builders on a Kubernetes cluster of Raspberry Pis alongside our main cloud infrastructure. I think we're onto something! Is anyone interested in trying it out and giving some feedback?

Hi all! I have an interesting story to share! 😊 I’m working as a software developer on a fairly large project that takes ages to build. We run GitHub Actions on every push, and some time ago, we were surprised by a bill from GitHub. Someone on the team joked that we’d save a ton of money if we just ran builds on Raspberry Pis at home, and we actually turned it into a fun side project!

My homelab setup

Here are some things we learned along the way:

  • The GitHub Runner application is open source and available on GitHub. Initially, we ran it directly on an RPI, and it seemed to work quite well. However, only one build could run in parallel, so the RPIs were underutilized. Fortunately, GitHub also provides an “autoscaler” for self-hosted runners based on Kubernetes: actions/actions-runner-controller.
  • We had 2 RPIs running Ubuntu, which we used to set up a Kubernetes cluster. We considered two options: microk8s and k3s, and ultimately chose k3s. The setup was as simple as running a few bash commands like `curl -sfL https://get.k3s.io | sh -`. The whole configuration took us just a couple of minutes. Here’s a good tutorial for a setup similar to ours: https://anthonynsimon.com/blog/kubernetes-cluster-raspberry-pi/
  • Once the cluster was ready, we installed Helm and then used it to install the GitHub Actions Runner Controller (ARC). To configure ARC, you’ll need a personal access token (which you can obtain from GitHub at https://github.com/settings/tokens) and a link to your GitHub repo/organization.

This setup worked great! We moved a few of our repositories to these runners and monitored them for a week. We couldn’t find an easy way to fall back to GitHub-managed runners, so whenever my home network had issues, the cluster became unresponsive. But for hobby or non-critical projects, it’s a great money-saver! We ran close to 6,000 minutes with this setup!

If you’d like to try it out yourself, I’m happy to answer any questions and help troubleshoot!

Since then, we’ve made some improvements to this setup: to avoid disruption, we moved the Kubernetes control plane from the RPIs to our cloud environment, mixing cloud instances with RPIs. This way, when the RPIs aren’t available, there’s always at least one node, and builds can fall back to cloud VMs.

I showed this setup to a friend, and he liked it so much that now my colleague and I are wondering if others might need something similar. If you’d like to try it out or just want to learn Kubernetes, let me know, and I can set up a cluster for you to experiment with. We’re looking for honest feedback at this stage! 😄

4 Comments
2024/11/08
13:21 UTC

1

Dollar Bill Acceptor (pulse) to Raspberrypi

Has anyone been successful rigging up a dollar bill acceptor to a pi? I see there are some pi hats available but is really like to not have to work with a hat if not needed. I’ve been working on this for the better part of the day and nothing I do with my python script seems to be helping. I think the issue is the speed of the pulse - probably under 5-6ms - the pulse is 12vdc - witch I have an adjustable step down set up to it stepping it down to 3.2v which the pi should handle from what I’ve read. Normally open to gpio pin and common ground to ground.

The real hitter is my script starts when unplugging and plugging back in the gpio, but not from the pulse of the dba when a dollar is inserted.

If anyone’s had any success with this could you please point me in the right direction? I’ve seen cereal usb set ups but don’t quite understand how I would go about using one.

Thank you

3 Comments
2024/11/08
03:57 UTC

1

Pico I2C clock signal problem

Im trying to read the SCL clock signal from a rasperry pi pico but the frequency of the signal seems to be really low. Im pulling both the SDA and SCL lines to 3.3V with 2.2k resistors. I also dont have a slave device connected as for now could that affect the signal speed? I tried setting the frequency to 400kHz then 100kHz and then only 10000Hz but I keep getting around 1.5kHz reading with an oscilloscope.

https://preview.redd.it/ke73bgz5bizd1.png?width=4032&format=png&auto=webp&s=61a91b5be7036dc3d2dae76247d57df916bd662c

1 Comment
2024/11/07
16:34 UTC

1

Trouble adding USB Wifi Adapter to Pi 4

I need to connect my Pi 4 to two separate Wi-Fi networks at the same time so if I read everything correctly, I need to add a USB Wi-Fi adapter to it.

I need to run a Tailscale connection on the internal wifi adapter wlan0 which is connecting to tailscale.

When I plug in the new adapter lsusb shows it as

Bus 001 Device 007: ID 0bda:818b Realtek Semiconductor Corp. RTL8192EU 802.11b/g/n WLAN Adapter which brings me to an old post at Realtek RTL8192EU WiFi drivers for Raspbian - Audio Gear Talk / Raspberry Pi - Roon Labs Community that leads to a dead link.

I then found [SOLVED] RTL8192EU 802.11b/g/n WLAN Adapter will not connect LM 21 - Linux Mint Forums and started instructions found on it and it fails with the following

Building module:

cleaning build area...

'make' all KVER=6.1.21-v8+...(bad exit status: 2)

Error! Bad return status for module build on kernel: 6.1.21-v8+ (aarch64)

Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.

Any and all help will be appreciated.

5 Comments
2024/11/07
23:18 UTC

248

Automated Chess Board

Been working on this for some time using a raspberry pi some steppers and magnets, here is the website for it if you guys have any questions. All opinions appreciated thanks : https://readymag.website/u2481798807/5057562/

33 Comments
2024/11/07
08:15 UTC

1

Troubleshooting connecting M1 Macbook Pro to Raspberry Pi 4B

I have been trying to establish a serial or SSH connection from my M1 Macbook Pro to my Raspberry Pi(s), so far with no success. What could be going wrong?

  • I have tried:
    • USB C gadget mode ethernet (SSH)
      • Added the ssh file to boot with no extension
      • cmdline.txt with modules-load=dwc2,g_ether added after rootwait, no new line
      • config.txt with dtoverlay=dwc2
    • USB C gadget mode serial
      • cmdline.txt with console=serial0,115200 at the beginning and modules-load=dwc2,g_serial after rootwait, no new line
      • config.txt with enable_uart=1 and dtoverlay=dwc2
      • These commands (with or without sudo) resulted in a blank terminal:
      • screen /dev/tty.usbmodem2101 115200
      • minicom -D /dev/tty.usbmodem2101 -b 115200
    • USB C serial connection through GPIO pins with AA106 adapter
      • Set the jumper to 3.3V on the adapter
      • Connected the ground, RX and TX pins correctly
      • config.txt with enable_uart=1
      • cmdline.txt without console=serial0,115200 and without modules-load=dwc2,g_serial
      • These commands (with or without sudo) resulted in a blank terminal:
      • screen /dev/tty.usbserial-A5069RR4 115200
      • minicom -D /dev/tty.usbserial-A5069RR4 -b 115200
    • 3 different USB C ports on my Macbook
    • screen and minicom
    • 2 different USB C cables (One was the USB C cable for Apple airpods)
    • 2 different Raspberry Pi 4Bs (each with their own SD card)
    • Reflashing the OS onto the SD card
10 Comments
2024/11/06
11:35 UTC

135

Here's a cool project that I made from GitHub: Hope you like it!

10 Comments
2024/11/06
02:35 UTC

1

Possible to have RPI5 with 3 hats? m.2, vga666 and audio out?

I would like to upgrade my rpi3 to a pi5 using retropie. However, I'd like to:

  • continue to use the vga666 hat connected to my CRT
  • Add the m.2 hat+ to add an ssd
  • Add an audio hat since the pi5 no longer has a 3.5mm audio output.

If i understand correctly, you can only stack hats if they're all hat+. Otherwise you can only have one hat+ and one hat? Is that true? So I can't use 3 hats? Unless I use an audio hat that is also hat+?

Would I be able to use a combo hat+ with the vga666? So could I use the HatDrive! Piano for Raspberry Pi 5, which has both audio and m.2 and is a hat+?

Thanks

4 Comments
2024/11/05
19:39 UTC

731

Spotted at cancun airport

.

19 Comments
2024/11/05
14:51 UTC

3

2024 Nov 4 Stickied -FAQ- & -HELPDESK- thread - Boot problems? Power supply problems? Display problems? Networking problems? Need ideas? Get help with these and other questions!

###Welcome to the r/raspberry_pi Helpdesk and Frequently Asked Questions!

Link to last week's thread

Having a hard time searching for answers to your Raspberry Pi questions? Let the r/raspberry_pi community members search for answers for you!^(†) Looking for help getting started with a project? Have a question that you need answered? Was it not answered last week? Did not get a satisfying answer? A question that you've only done basic research for? Maybe something you think everyone but you knows? Ask your question in the comments on this page, operators are standing by!

This helpdesk and idea thread is here so that the front page won't be filled with these same questions day in and day out:

  1. Q: What's a Raspberry Pi? What can I do with it? How powerful is it?

A: Check out this great overview 2. Q: Does anyone have any ideas for what I can do with my Pi?
A: Sure, look right here!^(‡) 3. Q: My Pi is behaving strangely/crashing/freezing, giving low voltage warnings, ethernet/wifi stops working, USB devices don't behave correctly, what do I do?
A: 99.999% of the time it's either a bad SD card or power problems. Use a USB power meter or measure the 5V on the GPIO pins with a multimeter while the Pi is busy (such as playing h265/x265 video) and/or get a new SD card 1 2 3. If the voltage is less than 5V your power supply and/or cabling is not adequate. When your Pi is doing lots of work it will draw more power. Higher wattage power supplies achieve their rating by increasing voltage, but the Raspberry Pi operates strictly at 5V. Even if your power supply claims to provide sufficient amperage, it may be mislabeled or the cable you're using to connect the power supply to the Pi may have too much resistance. Phone chargers, designed primarily for charging batteries, may not maintain a constant wattage and their voltage may fluctuate, which can affect the Pi’s stability. You can use a USB load tester to test your power supply and cable. Some power supplies require negotiation to provide more than 500mA, which the Pi does not do. If you're plugging in USB devices try using a powered USB hub with its own power supply and plug your devices into the hub and plug the hub into the Pi. 4. Q: I'm trying to setup a Pi Zero 2W and it is extremely slow and/or keeps crashing, is there a fix?
A: Either you need to increase the swap size or check question #3 above. 5. Q: I'm having a hard time finding a place to purchase a Raspberry Pi for an affordable price. Where's the secret place to buy one without paying more than MSRP?
A: https://rpilocator.com/ 6. Q: I just did a fresh install with the latest Raspberry Pi OS and I keep getting errors when trying to ssh in, what could be wrong?
A: There are only 4 things that could be the problem:
1. The ssh daemon isn't running 2. You're trying to ssh to the wrong host 3. You're specifying the wrong username 4. You're typing in the wrong password 7. Q: I'm trying to install packages with pip but I keep getting error: externally-managed-environment
A: This is not a problem unique to the Raspberry Pi. The best practice is to use a Python venv, however if you're sure you know what you're doing there are two alternatives documented in this stack overflow answer: * --break-system-packages * sudo rm a specific file as detailed in the stack overflow answer 8. Q: The only way to troubleshoot my problem is using a multimeter but I don't have one. What can I do?
A: Get a basic multimeter, they are not expensive. 9. Q: My Pi won't boot, how do I fix it?
A: Step by step guide for boot problems 10. Q: I want to watch Netflix/Hulu/Amazon/Vudu/Disney+ on a Pi but the tutorial I followed didn't work, does someone have a working tutorial?
A: Use a Fire Stick/AppleTV/Roku. Pi tutorials used tricks that no longer work or are fake click bait. 11. Q: What model of Raspberry Pi do I need so I can watch YouTube in a browser?
A: No model of Raspberry Pi is capable of watching YouTube smoothly through a web browser, you need to use VLC. 12. Q: I want to know how to do a thing, not have a blog/tutorial/video/teacher/book explain how to do a thing. Can someone explain to me how to do that thing?
A: Uh... What? 13. Q: Is it possible to use a single Raspberry Pi to do multiple things? Can a Raspberry Pi run Pi-hole and something else at the same time?
A: YES. Pi-hole uses almost no resources. You can run Pi-hole at the same time on a Pi running Minecraft which is one of the biggest resource hogs. The Pi is capable of multitasking and can run more than one program and service at the same time. (Also known as "workload consolidation" by Intel people.) You're not going to damage your Pi by running too many things at once, so try running all your programs before worrying about needing more processing power or multiple Pis. 14. Q: Why is transferring things to or from disks/SSDs/LAN/internet so slow?
A: If you have a Pi 4 or 5 with SSD, please check this post on the Pi forums. Otherwise it's a networking problem and/or disk & filesystem problem, please go to r/HomeNetworking or r/LinuxQuestions. 15. Q: The red and green LEDs are solid/off/blinking or the screen is just black or blank or saying no signal, what do I do?
A: Start here 16. Q: I'm trying to run x86 software on my Raspberry Pi but it doesn't work, how do I fix it?
A: Get an x86 computer. A Raspberry Pi is ARM based, not x86. 17. Q: How can I run a script at boot/cron or why isn't the script I'm trying to run at boot/cron working?
A: You must correctly set the PATH and other environment variables directly in your script. Neither the boot system or cron sets up the environment. Making changes to environment variables in files in /etc will not help. 18. Q: Can I use this screen that came from ____ ?
A: No 19. Q: I run my Pi headless and there's a problem with my Pi and the best way to diagnose it or fix it is to plug in a monitor & keyboard, what do I do?
A: Plug in a monitor & keyboard. 20. Q: My Pi seems to be causing interference preventing the WiFi/Bluetooth from working
A. Using USB 3 cables that are not properly shielded can cause interference and the Pi 4 can also cause interference when HDMI is used at high resolutions. 21. Q: I'm trying to use the built-in composite video output that is available on the Pi 2/3/4 headphone jack, do I need a special cable?
A. Make sure your cable is wired correctly and you are using the correct RCA plug. Composite video cables for mp3 players will not work, the common ground goes to the wrong pin. Camcorder cables will often work, but red and yellow will be swapped on the Raspberry Pi. 22. Q: I'm running my Pi with no monitor connected, how can I use VNC?
A: First, do you really need a remote GUI? Try using ssh instead. If you're sure you want to access the GUI remotely then ssh in, type vncserver -depth 24 -geometry 1920x1080 and see what port it prints such as :1, :2, etc. Now connect your client to that. 23. Q: I want to do something that has been well documented and there are numerous tutorials showing how to do it on Linux. How can I do it on a Raspberry Pi?
A: A Raspberry Pi is a full computer running Linux and doesn't use special stripped down embedded microcontroller versions of standard Linux software. Follow one of the tutorials for doing it on Linux. Also see question #1. 24. Q: I want to do something that has been well documented and there are numerous tutorials showing how to do it with an Arduino. How can I do it on a Raspberry Pi Pico?
A: Follow one of the tutorials for doing it on Arduino, a Pico can be used with the Arduino IDE. 25. Q: I'm trying to do something with Bluetooth and it's not working, how do I fix it?
A: It's well established that Bluetooth and Linux don't get along, this problem is not unique to the Raspberry Pi. Also check question #20 above.

Before posting your question think about if it's really about the Raspberry Pi or not. If you were using a Raspberry Pi to display recipes, do you really think r/raspberry_pi is the place to ask for cooking help? There may be better places to ask your question, such as:

Asking in a forum more specific to your question will likely get better answers!


See the /r/raspberry_pi rules. While /r/raspberry_pi should not be considered your personal search engine, some exceptions will be made in this help thread.
‡ If the link doesn't work it's because you're using a broken buggy mobile client. Please contact the developer of your mobile client and let them know they should fix their bug. In the meantime use a web browser in desktop mode instead.

37 Comments
2024/11/05
00:20 UTC

1

How to get 5V output from a PCA9685 PWM Module?

I need to run several Linear Servos so I am using a PCA9685A PWM Module.

The code below works as expected EXCEPT it only give 0.33V when firing the 5V Linear Servo.

I need to increase it to 5V - any ideas?

import time 
import board 
import busio 
from adafruit_pca9685 import PCA9685 
from adafruit_motor import servo 

# Create I2C bus interface 
i2c = busio.I2C(board.SCL, board.SDA) 

# Create PCA9685 class instance 
pca = PCA9685(i2c) 
pca.frequency = 50 # Typical for servos and actuators (50Hz) 

# Define the channel the actuator is connected to (0-15) 
channel = pca.channels[0] # Adjust to the correct channel 

# Function to move the linear actuator using PWM 
def move_actuator(position): 
    """ 
    Moves the actuator to the given position. 

    Args: 
    position (int): PWM pulse length value (between 0 and 4095) 
    """
    # Ensure the position is within bounds for PWM control 
    if position < 0: 
      position = 0 
    elif position > 4095: 
      position = 4095 

    # Set the PWM pulse length to move the actuator 
    channel.duty_cycle = position 

try: 
  # Example: Move the actuator to several positions 
  while True: 
    print("Moving actuator to minimum position...") 
    move_actuator(1500) # Example position for retracted actuator 
    time.sleep(2) # Wait for 2 seconds 

    print("Moving actuator to maximum position...") 
    move_actuator(3000) # Example position for extended actuator 
    time.sleep(2) 

except KeyboardInterrupt: 
  print("Stopping actuator control.") 
finally: 
  # Cleanup 
  pca.deinit()
5 Comments
2024/11/04
21:17 UTC

44

Pi Pico Powered T-45 Power Armor Helmet

Sized to fit my 11 year old for Halloween and wired in a way to allow him to control some of the electronics. Both my paint job and wiring are crap and I plan on printing another helmet to redo everything. Power is provided by a 5V USB power bank.

Features:

  • Pi PICO micro controller
  • External blue LED to denote PICO is operational
  • Internal temperature sensor
  • 5v fans that activate based on internal temperature
  • 12-LED NeoPixel for main lamp
  • External stereo microphones that feed into stereo headphones (can hear things going on outside helmet)
  • Two external buttons and one external potentiometer to control lights/sound volume
  • Internal OLED screen that displays status of all electronics (Lights on/off, fans on/off, fans RPM, temperature, headphone volume)

Dressed up for Halloween

Crappy paint job

Crappy paint job part deux

Crappy wiring

Heads up display. Image is rotated but looks normal when worn.

12 Comments
2024/11/04
15:27 UTC

2

Screen goes White on Shutdown - Pi 5 + 3.5" Touch Screen

Hi all - I've been customizing a new raspberry pi 5 (2gb) for days now and been surprised at just how much I got done without asking any questions. Got this cheap SPI panel running at higher than default framerate, got drivers and touchscreen itself working, got all custom boot, boots custom into its own desktop entry, as someone fairly new I've problem solved 99% of my issues.

Finally I've reached one where I can't seem to get an answer, as most of the searching is muddled by people who can't get their drivers working.

I am using a 3.5" Hoysond (for all intents and purposes pretty sure it's a Waveshare with a different sticker) directly GPIO into my RPI5.

It has no issues booting, running, etc. but when I turn the pi-5 off whether through GUI or command, as long as there's power running to my pi the screen remains white.

I've tried turning off/on screen blanking, I've tried re-installing drivers and most basic solutions. I tried to research stuff and seems that most of the answers are not geared towards someone with a screen who only doesn't work on shutdown.

Any thoughts or directions I should research in?

Thanks

5 Comments
2024/11/04
00:14 UTC

145

Pi-Powered Pepper's Ghost

Raspberry Pi 4 with a Waveshare screen in a 3d printed base. I'm controlling the Pi via VNC. I have several videos, including one of my wife dancing.

14 Comments
2024/11/03
22:49 UTC

109

Open sourced a new OS for Smart Mirrors that is easy to install and completely configurable via a web app!

Hello everyone - wanted to share that I've been working on building software that allows makers to easily sell or gift a smart mirror, and finally got it ready to be open sourced!

It is called ReflectOS, and it's heavily inspired by the amazing MagicMirror^(2) project but offers the following features:

  • Easy to install - just flash the image onto a microSD card and go
  • Easy to configure - network setup, module configuration, and display arrangement are all configurable via a web app which is served from the mirror itself (no account creation or sign up required!)
  • Set up different arrangements of modules (called layouts) and manually change between them or even configure ITTT (If This Than That) integrations to change between them.

This is definitely an alpha release, and there are bound to be some rough edges. Would love this amazing community's feedback on any issues or how to make it better!

If you're interested in trying it out or learning more, you can check out the website here: https://reflect-os.github.io

It's built using Elixir and the Nerves Project - Github for the firmware can be found here: https://github.com/reflect-os/firmware. Contributions in the form of bug reports, feature requests, and pull requests are highly encouraged!

14 Comments
2024/11/03
13:56 UTC

1

Raspberry will not connect to Wifi after Wifi Change

Dear smart people,

I know this topics comes up a lot, but I have tried too long and am desperate for help.

So after moving my rasp to another location and thus changed wifi credentials and router, I faced the Problem that it just will not connect. After updating the "wpa_supplicant.conf", it kept refusing to connect to the new wifi. Also completely running a new partition of an OS over the SD card, did not help me either (using Raspberry Pi Imager).

Specs:

Model: Raspberry Pi zero 2 W

OS: Mainsail OS (for Klipper usage)

To further troubleshoot, I hooked up my rasp via USB and SSH to my PC, so i can access the rasp's interface (I have no micro hdmi). Following issue comes up when checking the iwconfig:

https://preview.redd.it/ntpwyrrg4kyd1.png?width=586&format=png&auto=webp&s=e1043ab41e00c97fd1d94662ccbb0d93d404ee79

When scanning for the new Wifi on my rasp, it shows up in the list. To my understanding, a connection should be physically possible.

Do you guys have any other suggestions for further troubleshooting or what to look into next? Thanks a lot in advance

PS: i have also completely reset the router to factory settings, just in case

5 Comments
2024/11/02
21:36 UTC

0

Using an Inverter for power RPi5 5v5a

Hi, I have been researching over the last couple weeks about how to power a Pi5 with the 5v5a requirement in my van for some Ham Radio stuff... In many of the threads, people were very annoyed as it is a non standard power requirement. Suggestions were UPS style power bricks, buck converters, etc. I searched "inverter" in a few reddit communities and elsewhere and didn't really come up with anything other than people powering 3b+ off solar. So, my simple question is, other than ignition drop and draining my battery if my van isn't running, why would this following solution not work? I would use this 12v inverter (output is 115vac, 60hz, 160w/1.4a and then the official 27w usb-c power supply which requires a standard input of 100-240v 50/60hz 0.8a and outputs for the RPi5...the only thing that is raising my eyebrow is the non-sinusodal disclosure on the output of the inverter.

19 Comments
2024/11/02
14:04 UTC

5

How can I tell if the Raspberry Pi Compute module 4 is using it's internal antenna or the external one I applied?

How can I tell if the Raspberry Pi Compute module 4 is using it's internal antenna or the external one I applied?

How can I tell if the Raspberry Pi Compute module 4 is using it's internal antenna or the external one I applied?

The external antenna is just a standard one wire that pops on to the RPi compute module.

Device is running Ubuntu and is a normal desktop screen, but I'm doing tests remotely so command line help is best.

Currently from the local machine I have access to, I run:

nmcli -f SSID,SIGNAL,SECURITY dev wifi

And for signal, if my external antenna is plugged in, it gives 100, but when it's not plugged in it only goes to 60.

Is there a way to confirm what antennas are being used? / detected?
I apologize if this is a noob question.

6 Comments
2024/11/01
19:34 UTC

2

Waveshare 15669 heats after getting power

I needed to use Waveshare 15669 with two stepper motors it worked fine for about 30min but then when i turned it on again it burned chip on the photo, luckily i have two of them and the other one gets hot (on the chip that got burned before) only when i connect it to my rpi 4, i tried on the other rpi 4 and it was working but when i changed the voltage from 9.2v to 8.5v it started to get hot again, did this happened to anyone before and how to fix it?

https://preview.redd.it/rwanxrewqcyd1.png?width=531&format=png&auto=webp&s=13a4458ced57a8f4739654a823c065452831d1a6

1 Comment
2024/11/01
20:45 UTC

1

Enviro Grow (Pico W Aboard) connect to WiFi that requires username?

I was hoping someone could help as we're a bit stuck!

We have a Enviro Grow (Pico W Aboard) which we're trying to set up but all of the available WiFi networks require username-based authentication (if it means anything to anyone, we're using for example Eduroam).

I'm not quite sure how Eduroam works but I think this might be along the right lines: https://www.miskatonic.org/2019/04/24/networkingpi/

Does anyone know how we might do something similar on a Pico W Aboard?

Does it have the wpa_supplicant file or something similar we can edit?

9 Comments
2024/11/01
22:11 UTC

1

Help with Pi-16 ADC by alchemy power

Hi everyone. I'm trying to use a Pi-16 ADC to read out a the voltage across a resistor. I have no trouble reading the output from a power supply, either in single ended mode or in differential mode, but, when I try to actually use it for the readout that I need, the reading is completely messed up (I'm reading 2 volts across a resistor through which no current is passing).

I reckon it might be some issue with ground loops, but I can't really seem to eliminate it.

Reading with a multimeter the voltage between the positive and negative input and ground, the one between positive and ground is correct, and there is about a 200 mV offset between negative and ground. I tried providing a path from negative to ground, but it has solved nothing.

For more context, I'm using a power supply to pass a current through something, and I want to monitor it continuously by reading the voltage drop across a resistor. The negative input of my differential reading is connected to the return of my power supply.

Has anyone been in a similar situation / has any ideas as to what I might be doing wrong?

Cheers

EDIT: I have tested all off the channels, and I see the same thing on all of thems

1 Comment
2024/11/01
16:52 UTC

2

Empty files created automatically in home directory

I have a raspberry pi 5 with bookworm installed, and in the last two days it has been creating some strange files with $ backslash and numbers in the home directory (ls output below)

''$'\231\377\177'       configs     mysocatscript.sh    socat-init
''$'\215\377\177'       Desktop     mysocatscript.sh~   some_job.err
''$'\377\177'           docker      Pictures            take_photo.py
''$'\b\377\177'         Documents   Public              temp2domoticz.py
''$'\025\377\177'       domoticz   's'$'\377\177'       temp2domoticz.py~
 Bookshelf              Downloads   servo1.py           Templates
 Capture_photo_old.py   dynudns     servo2.py           test.jpg
 Capture_photo.py       keys        servo_arm_old.py    Videos
 Capture_photo.py~      Music       servo_arm.py        zigbee2mqtt

The files have no size and are empty; I've opened one file and had nothing in it. I'm only bothered in the sense that it could be masking some other/larger issue... ls -ltr indicates that these files are being created at every hour or so

-rw-r--r-- 1 pi   pi         0 Nov  1 13:59 's'$'\377\177'
-rw-r--r-- 1 pi   pi         0 Nov  1 14:59 ''$'\231\377\177'
-rw-r--r-- 1 pi   pi         0 Nov  1 15:34 ''$'\215\377\177'
-rw-r--r-- 1 pi   pi         0 Nov  1 16:45 ''$'\377\177'
-rw-r--r-- 1 pi   pi         0 Nov  1 17:43 ''$'\b\377\177'

The closest (and unsolved) issue that I could find online is this one. Any thoughts? Anything worth checking? Thanks in advance.

7 Comments
2024/11/01
18:23 UTC

Back To Top