FreshRSS

Normální zobrazení

Jsou dostupné nové články, klikněte pro obnovení stránky.
PředevčíremHlavní kanál
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • building a budget outdoor sports camera/u/luisrudge
    Hi, folks! Long time lurker, but now I decided to share a bit more about what I'm trying to do and ask some questions 😅 I want to create a budget sports camera that has a good enough quality for me to run some machine learning algorithms on the footage later on. It needs to be portable, battery powered, and weather resistant (although this part can wait). Instead of trying to create something from scratch, I wanna validate the idea first by using off-the-shelf, commercial products. If it works,
     

building a budget outdoor sports camera

Hi, folks! Long time lurker, but now I decided to share a bit more about what I'm trying to do and ask some questions 😅

I want to create a budget sports camera that has a good enough quality for me to run some machine learning algorithms on the footage later on. It needs to be portable, battery powered, and weather resistant (although this part can wait).

Instead of trying to create something from scratch, I wanna validate the idea first by using off-the-shelf, commercial products. If it works, I'll figure out the next steps later. Right now, my idea is to use: - Reolink duo 3 POE camera (https://reolink.com/ca/product/reolink-duo-3-poe/) - Maxxwave 500mAh POE+ Power Bank (https://www.balticnetworks.com/en-ca/products/maxxwave-802-3af-at-7500mah-gigabit-poe-power-bank) - Raspberry PI (not sure about the model yet)

Since the camera provides a RTSP feed, my idea is to basically use a raspberry pi (zero, 3, 4, 5 - I don't know yet) to read the feed and save the files in the SD card (say, every 10min). I tested this with another RTSP-capable camera and it works on my machine, but I don't have any RPIs to test.

So, finally the questions!

Do you think that power bank can provide enough power to the camera and raspberry pi during ~2h? What raspberry pi model would work best for this? It'll mainly be 2h of writing files in the sd card (rtsp >> ffmpeg >> sd card) Is there anything that I might not be considering for a setup like this? Thanks!

submitted by /u/luisrudge to r/RASPBERRY_PI_PROJECTS
[link] [comments]

OpenAuto Pro Alternative for Volvo v70 RTI rebuild based on 6,8inch screen and Raspberry Pi 4

Hey guys I want to update my 2002 RTI pop up navigation system with a CarPlay based on raspberry pi. The hardware is done the screen is changed and the pi 4 is build. I wanted to use OpenAuto Pro but it seems like the page is now longer existing ist their an alternative for apple car play?

submitted by /u/TjayFL to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Turning My Raspberry Pi 4 into a Portable Download Station/u/NegotiationExpert855
    Hi everyone, I'm working on a small project with a Raspberry Pi. Recently, I've been traveling a lot and I’m not often at home near my NAS to manage and access my downloads. So, I decided to revive a Raspberry Pi 4 Model B that was lying around in a drawer. What I love about this setup is that the Raspberry Pi 4 is small and portable, so I can take it with me anywhere I go, making it the perfect companion for managing my downloads on the move. I've installed Raspberry Pi OS Lite, qBittorrent, Ar
     

Turning My Raspberry Pi 4 into a Portable Download Station

Hi everyone,

I'm working on a small project with a Raspberry Pi. Recently, I've been traveling a lot and I’m not often at home near my NAS to manage and access my downloads. So, I decided to revive a Raspberry Pi 4 Model B that was lying around in a drawer. What I love about this setup is that the Raspberry Pi 4 is small and portable, so I can take it with me anywhere I go, making it the perfect companion for managing my downloads on the move.

I've installed Raspberry Pi OS Lite, qBittorrent, Aria2, and AriaNg for the WebUI. I also connected an SSD optimized for downloads and set up Samba for file sharing.

I've ordered a 3.5" touchscreen (480x320) that I plan to configure as a control center to monitor various aspects of my Raspberry Pi, such as the IP address, and to handle basic configurations like Wi-Fi and Bluetooth with an on-screen keyboard for text input. The goal is to be able to configure my Raspberry Pi without needing to SSH into it.

I’ll keep you updated on the progress of my little project and will post an update as soon as I receive my screen and have everything set up. If anyone is interested, I can also do a detailed tutorial on how to replicate this setup :)

submitted by /u/NegotiationExpert855 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Speed control of 12V 0.24A 120mm brushless fan./u/JoeKongdeezNuts
    My goal is to control the speed of a 12V 0.24A 120mm 2 wire pc fan. After googling PWM seemed like a valid approach. I used an nchannel mosfet (LR7843) to turn the 3.3V raspberry pi PWM signal into a 12V signal and wired the fan accordingly. https://preview.redd.it/4tzi3biunfjd1.png?width=688&format=png&auto=webp&s=09ae95515e84788ae8e7b45c170affc3b92d59be Now this worked perfectly fine with one fan I have but a newer fan did not respond as expected. After some more googeling I found
     

Speed control of 12V 0.24A 120mm brushless fan.

My goal is to control the speed of a 12V 0.24A 120mm 2 wire pc fan.

After googling PWM seemed like a valid approach. I used an nchannel mosfet (LR7843) to turn the 3.3V raspberry pi PWM signal into a 12V signal and wired the fan accordingly.

https://preview.redd.it/4tzi3biunfjd1.png?width=688&format=png&auto=webp&s=09ae95515e84788ae8e7b45c170affc3b92d59be

Now this worked perfectly fine with one fan I have but a newer fan did not respond as expected. After some more googeling I found out that most 2 wire brushless pc fans should not be controlled via a pwm signal but an analog signal.

Using a potentiometer I can vary the speed as desired on both fans. Now I would like to vary the speed via software.

This is where I'm currently stuck at. How do I turn my 12V PWM signal into an analog signal?

submitted by /u/JoeKongdeezNuts to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • GPI Case No Display on TV? Need Help/u/Significant_Bulge_69
    I have the gameboy style GPI case with retropie its all running but i had to take the pi out and hook it to the tv with a keyboard so i could put in my current ip address and wifi password but im not getting display on the tv i know my hdmi adapter is good because i tried my raspian card and it booted and i know all the connections are right, I'm hoping someone can give me a easy solution and that I'm just overthinking it making it seem harder to fix than it is submitted by /u/Significant_
     

GPI Case No Display on TV? Need Help

I have the gameboy style GPI case with retropie its all running but i had to take the pi out and hook it to the tv with a keyboard so i could put in my current ip address and wifi password but im not getting display on the tv i know my hdmi adapter is good because i tried my raspian card and it booted and i know all the connections are right, I'm hoping someone can give me a easy solution and that I'm just overthinking it making it seem harder to fix than it is

submitted by /u/Significant_Bulge_69 to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Fork this repository to create a RPi image that automatically emails its IP address

Fork this repository to create a RPi image that automatically emails its IP address

The purpose of this post is to share a tool that enables a Raspberry Pi to automatically connect to WiFi, login with secure credentials, and email its IP address for SSHing. We developed this tool through my academic lab and are sharing it to help others. It’ll even broadcast its own access point network if there are no known WiFi networks in range. It was developed for robotics applications but would work well for any remote deployment use of the RPi (i.e. without a keyboard / monitor). Once forked, the tool can generate the OS image for an RPi that works out of the box. The image will be an artifact from the build that can be downloaded and flashed.

The documentation describes how to use the tool, but you have to fork the repo, create secrets, and run a workflow from the Actions tab. This will prompt a dialog box where you can enter the specifics of your image (OS, host name, access point SSID, etc).

The tool builds the latest RPi image in the cloud, and enables automatic installation of Python packages. As is, it currently installs packages related to robotics research. The workflow can be customized after forking the repo, if desired.

It works for the RPi 4 and RPi 5, and can support 32 and 64-bit versions of Raspbian. It also enables Ubuntu.

The WiFi utility is able to login with secure credentials via enterprise networks.

The tool is open access, so please share far and wide. This is the result of >1k hours of development from the University of Michigan, funded by the NSF.

submitted by /u/__newerest__ to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Looking for a battery power supply for the Pi Zero 2W but I'm not sure what to get or if there's any I should avoid

I have a Pi zero that I am using to drive an e-ink display as part of a project I am working on (custom e-ink typewriter). I am using a Waveshare display which uses a HAT driver board. The HAT has GPIO jumper cables so jumpers on the power supply would likely be fine, though it'd be a bit messy.

I've come across several options:

https://www.adafruit.com/product/4114

https://uk.pi-supply.com/collections/pijuice/products/pijuice-zero

https://www.waveshare.com/ups-hat-c.htm

https://www.tindie.com/products/pisugar/pisugar-3-battery-for-raspberry-pi-zero/

But this is outside my realm of knowledge so I don't really know the benefits and drawbacks of each.

Something to note is that the GPIO header on my Pi is a solderless hammer header since I don't know how to solder. Is anyone aware if something like the Pi Sugar would even work with one of those? The headers extend further down below the Pi than a soldered version would.

The only real thing that I want is the ability to easily power on/off the pi once it's in an enclosure and not easily accessible.

This is my first Pi project so please excuse any missing knowledge on my part

Thanks!

submitted by /u/mista_rida_ to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • powering a pi zero 2 w using battery/u/WayAdministrative720
    i am trying to make a gameboy emulator using retro pi and a pi zero 2 w. for powering the pi itself i have 2 options: 1: a standard tp4056 USB c chrger module. use of this will only allow me to use the pi until it reaches 3.3 v thus leaving unused power left over in the battery. 2 : another type c charger with adjustable voltage(idk what it is called or how it works) Type-C QC AFC PD2.0 PD3.0 to DC Fast Charge Decoy Trigger Support 5V 9V 12V 15V 20V Fixed Voltage Output - Besomi Electronics or
     

powering a pi zero 2 w using battery

i am trying to make a gameboy emulator using retro pi and a pi zero 2 w. for powering the pi itself i have 2 options:

1: a standard tp4056 USB c chrger module.

use of this will only allow me to use the pi until it reaches 3.3 v thus leaving unused power left over in the battery.

2 : another type c charger with adjustable voltage(idk what it is called or how it works) Type-C QC AFC PD2.0 PD3.0 to DC Fast Charge Decoy Trigger Support 5V 9V 12V 15V 20V Fixed Voltage Output - Besomi Electronics

or I can use an adafruit powerboost but that costs $25 3-4X more expensive than the other 2 options.

so I would like to know whether option 2 is viable and can take 3.7v to 5v or should I just use the powerboost.

ps: can I make a 3.7 v battery pack using 3-4 3.7 3800mah batteries and should why be in series or parallel?

submitted by /u/WayAdministrative720 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • RPi to Arduino - is USB or UART better?/u/DarkYendor
    Hi Guys, I've currently got a project where I'm using an RPi to communicate with two Arduinos for I/O. I was going to connect them via the RPi UART pins to the Arduino UART pins (with level shifters), but now I'm wondering is there any benefit to using the UART pins on the RPi, rather than just using the virtual serial port created by the USB? I tried googling, and it looks like either will work, but I couldn't find much else? submitted by /u/DarkYendor to r/RASPBERRY_PI_PROJECTS [
     

RPi to Arduino - is USB or UART better?

Hi Guys,

I've currently got a project where I'm using an RPi to communicate with two Arduinos for I/O. I was going to connect them via the RPi UART pins to the Arduino UART pins (with level shifters), but now I'm wondering is there any benefit to using the UART pins on the RPi, rather than just using the virtual serial port created by the USB?

I tried googling, and it looks like either will work, but I couldn't find much else?

submitted by /u/DarkYendor to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Headless browser display: which DE and browser?/u/prankousky
    Hi everybody, I am planning to build a "cheat sheet display" to place next to my computer monitor. All I need this to do is display whatever URL I need at the moment. All pages will be hosted locally. Perhaps it could also display mpv at times to display the front gate security cam, but that is optional (depending on what pi I'll use and how well resources can handle both at the same time). The pi will be connected to some hdmi monitor or raspberry display (not sure yet). Then, I want to automa
     

Headless browser display: which DE and browser?

Hi everybody,

I am planning to build a "cheat sheet display" to place next to my computer monitor.

All I need this to do is display whatever URL I need at the moment. All pages will be hosted locally. Perhaps it could also display mpv at times to display the front gate security cam, but that is optional (depending on what pi I'll use and how well resources can handle both at the same time).

The pi will be connected to some hdmi monitor or raspberry display (not sure yet).

Then, I want to automatically send commands to it from my PC, depending on the cheat sheet. Let's say I'm working with krita, I'd like to press a button on my stream deck that will then send something like ssh <cheatsheetpi> <browser> <url>, so that the pi will display the krita cheat sheet.

I won't have a mouse or keyboard connected, so there doesn't even have to be a fully functioning desktop environment. If I have to do anything, I'll ssh into the device.

The browser needs to display one single page at the time. No tabs, no bookmarks, nothing. Ideally, the browser would be capable of this: either the ssh command should automatically replace the single existing tabs contents, or there should be a parameter to do so (so I won't end up with countless background tabs).

While typing this I realize that I should probably use a touch screen display and not a regular hdmi monitor, so that I could scroll pages with a lot of content.

What desktop environment and browser would you recommend?

I run awesomewm and Firefox on my desktop machine, but the pi monitor won't need tiling. The browser should always be maximized. if I do also implement a temporary mpv popup, that windows should float.

Afaik, Firefox is not able to replace the active tab, but rather will always open a new tab (hopefully I'm wrong, but I couldn't find a parameter for this).

Is there a low resource browser that does this by default? No tabs, only one maximized browser windows at all times, replacing the existing tab with the new url?

Thank you in advance for your ideas :)

submitted by /u/prankousky to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Help! Automated watering system for my grandma/u/Neither-Oil4754
    Hey! Complete beginner here. I've had a raspberry PI 5 for a few months but just for selenium automation, I know nothing about hardware. I want to make an automated plant watering system for my grandma who forgets to water her plants very often! The idea is to have a moisture monitor, and when it goes down too low, a water pump will activate and water the plants. I can deffo do all the code for it, but the hardware confuses me... Does my basket look good? Do I need anything else? And below
     

Help! Automated watering system for my grandma

Help! Automated watering system for my grandma

Hey! Complete beginner here. I've had a raspberry PI 5 for a few months but just for selenium automation, I know nothing about hardware.

I want to make an automated plant watering system for my grandma who forgets to water her plants very often!

The idea is to have a moisture monitor, and when it goes down too low, a water pump will activate and water the plants. I can deffo do all the code for it, but the hardware confuses me...

Does my basket look good? Do I need anything else? And below the pictures I tried to explain everything, but maybe I'm missing something?

https://preview.redd.it/yblwcgghqvhd1.png?width=1822&format=png&auto=webp&s=4fa4cc542279a5c8e3325ff92f50dd0f81d67753

Here is the way I understand it, am I wrong anywhere? Thank you!!!!

  • Raspberry Pi Zero WH: The central processing unit, controlling all other components. Connects directly to the Zero Relay Board via its 40-pin GPIO header.
  • Zero Relay: 2-Channel 5V Relay Board: Controls the DC water pump by acting as a switch. Turns the pump on or off based on signals from the Raspberry Pi. Plugs into the Raspberry Pi's GPIO header.
  • Extra-Tall Push-Fit Stacking GPIO Header: For clearance above relay board to prevent interference when stacking the Anavi Gardening uHAT. Plugs into the GPIO header on the relay board.
  • Anavi Gardening uHAT: Monitors soil moisture and controls the relay board based on sensor data. Stacks on top of the extra-tall header.
  • DC Water Pump: Pumps water to plants based on the relay’s activation. Connects to the Female DC Power Adapter.
  • Female DC Power Adapter: Interfaces the DC water pump with the relay. The adapter’s positive terminal connects to the NO terminal on the relay, and the negative terminal connects to the power supply.
  • 3-12V Universal Power Supply: Powers the DC water pump. Positive connects to the COM terminal on the relay, and negative connects to the pump’s negative terminal.
  • Argon ONE Raspberry Pi 4 UK Power Supply: Provides stable power to the Raspberry Pi. Connects to the Raspberry Pi’s micro-USB power port.
  • RPi Jumper Wires: For connecting the GPIO pins on the Raspberry to the relay board and other components as needed.

yahoooooo

submitted by /u/Neither-Oil4754 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Raspberry pi python 3.9.8 virtual environment or default/u/SuperGlue1111111
    so i have a raspberry pi 4 and i wanted to install opencv 4.6.0.66 version but the OS that i have with my raspberry pi comes with python 3.9.8 so i am thinking if i should make python 3.9.8 my default or i should just make it my virtual environment i need python for future stuff but it looks like to much work which one would you guys recommend i am on the 64 bit bullseye operating system and also i have no idea how to make a virtual environment or make python 3.9.8 my default submitted by
     

Raspberry pi python 3.9.8 virtual environment or default

so i have a raspberry pi 4 and i wanted to install opencv 4.6.0.66 version but the OS that i have with my raspberry pi comes with python 3.9.8 so i am thinking if i should make python 3.9.8 my default or i should just make it my virtual environment i need python for future stuff but it looks like to much work which one would you guys recommend i am on the 64 bit bullseye operating system and also i have no idea how to make a virtual environment or make python 3.9.8 my default

submitted by /u/SuperGlue1111111 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • BATMAN-ADV Mesh network setup issues/u/trees_in_storage
    I am trying to build a project for a remote area that uses multiple raspberry pi's to collect data and report it back to a server. I was thinking of using batman-adv to build a mesh network and then have one of them use a cellular modem as a gateway. I have been following this guide and have 2 pi's setup (using ethernet for gateway to test) and apparently both are on the mesh network (see below). Testing: When I run ifconfig I get this (I took out lo): edge@edgeunit1:~ $ sudo ifconfig bat0: fla
     

BATMAN-ADV Mesh network setup issues

I am trying to build a project for a remote area that uses multiple raspberry pi's to collect data and report it back to a server. I was thinking of using batman-adv to build a mesh network and then have one of them use a cellular modem as a gateway.
I have been following this guide and have 2 pi's setup (using ethernet for gateway to test) and apparently both are on the mesh network (see below).

Testing:
When I run ifconfig I get this (I took out lo):

edge@edgeunit1:~ $ sudo ifconfig bat0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1468 inet 192.168.199.1 netmask 255.255.255.0 broadcast 192.168.199.255 inet6 fe80::2095:9ff:fecd:912e prefixlen 64 scopeid 0x20<link> ether 22:95:09:cd:91:2e txqueuelen 1000 (Ethernet) RX packets 9430 bytes 399250 (389.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 57 bytes 5522 (5.3 KiB) TX errors 0 dropped 71 overruns 0 carrier 0 collisions 0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.17.102 netmask 255.255.255.0 broadcast 192.168.17.255 inet6 fe80::2764:a542:2cbf:d23e prefixlen 64 scopeid 0x20<link> ether e4:5f:01:00:c5:f4 txqueuelen 1000 (Ethernet) RX packets 8200 bytes 2378489 (2.2 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2259 bytes 215511 (210.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::e65f:1ff:fe00:c5f5 prefixlen 64 scopeid 0x20<link> ether e4:5f:01:00:c5:f5 txqueuelen 1000 (Ethernet) RX packets 156384 bytes 10012800 (9.5 MiB) RX errors 0 dropped 4 overruns 0 frame 0 TX packets 159603 bytes 12452466 (11.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

And running batctl o gives me this:

edge@edgeunit1:~ $ sudo batctl o [B.A.T.M.A.N. adv 2023.3, MainIF/MAC: wlan0/e4:5f:01:00:c5:f5 (bat0/22:95:09:cd:91:2e BATMAN_IV)] Originator last-seen (#/255) Nexthop [outgoingIF] * b8:27:eb:c8:f6:53 0.440s (255) b8:27:eb:c8:f6:53 [ wlan0] 

I can use batctl to ping unit2:

edge@edgeunit1:~ $ sudo batctl ping -c 5 b8:27:eb:c8:f6:53 PING b8:27:eb:c8:f6:53 (b8:27:eb:c8:f6:53) 20(48) bytes of data 20 bytes from b8:27:eb:c8:f6:53 icmp_seq=1 ttl=50 time=7.66 ms 20 bytes from b8:27:eb:c8:f6:53 icmp_seq=2 ttl=50 time=7.60 ms 20 bytes from b8:27:eb:c8:f6:53 icmp_seq=3 ttl=50 time=7.66 ms 20 bytes from b8:27:eb:c8:f6:53 icmp_seq=4 ttl=50 time=7.65 ms 20 bytes from b8:27:eb:c8:f6:53 icmp_seq=5 ttl=50 time=7.82 ms --- b8:27:eb:c8:f6:53 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss rtt min/avg/max/mdev = 7.605/7.676/7.815/0.072 ms 

I'm interpreting this as my mesh is up and both are connected.

My question:
Does the above output mean the gateway is gatewaying and handing out 192.168.199.* addresses? The pi's are headless and I can't figure out how to ssh into the pi that is not directly connected to my home network over ethernet (unit2). I have it's MAC from above and can ssh into the gateway unit (unit1) over ethernet, how do I ssh into unit2?
I'm just trying to figure out if unit2 has access to the internet.

submitted by /u/trees_in_storage to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Pi5 Cyberdeck in a vintage enclosure from 1953/u/hansj66
    https://preview.redd.it/vwh7016x0vgd1.jpg?width=4032&format=pjpg&auto=webp&s=88f869bc63931cda58c827567424cea9726e389a This is my first cyberdeck build. The enclosure is a 26 x 12 x 7 cm new old stock enclosure. The panels that hold the keyboard and monitor are made from FR4 PCBs. Inside, there is a Pi 5 with an active cooler. I also added a Pimorini NVMe base and a 500Gb SSD. I also added a 30mm fan for the enclosure itself. The display is a standard 7" USB powered HDMI display
     

Pi5 Cyberdeck in a vintage enclosure from 1953

Pi5 Cyberdeck in a vintage enclosure from 1953

https://preview.redd.it/vwh7016x0vgd1.jpg?width=4032&format=pjpg&auto=webp&s=88f869bc63931cda58c827567424cea9726e389a

This is my first cyberdeck build. The enclosure is a 26 x 12 x 7 cm new old stock enclosure. The panels that hold the keyboard and monitor are made from FR4 PCBs. Inside, there is a Pi 5 with an active cooler. I also added a Pimorini NVMe base and a 500Gb SSD. I also added a 30mm fan for the enclosure itself. The display is a standard 7" USB powered HDMI display.

I also made a short video of the build.

submitted by /u/hansj66 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • How can I use Ubuntu encrypted using LUCKS on my RPI5?/u/temal32
    Hello, I want to use Ubuntu Desktop or Server (doesn't really matter which one) on my Raspberry Pi 5 using my NVME 1TB SSD. I have no SD-Card so the way im installing Ubuntu on my RPI is that I plug the USB Stick into my normal Windows PC, then using RPI Imager flash Raspbian (Raspberry PI OS) onto the USB Stick, then plug the stick into RPI and boot up, on the RPI OS go to /boot/firmware/config.txt then add dtparam stuff to enable pci, next open Imager and install Ubuntu os on the ssd. Then jus
     

How can I use Ubuntu encrypted using LUCKS on my RPI5?

Hello,

I want to use Ubuntu Desktop or Server (doesn't really matter which one) on my Raspberry Pi 5 using my NVME 1TB SSD. I have no SD-Card so the way im installing Ubuntu on my RPI is that I plug the USB Stick into my normal Windows PC, then using RPI Imager flash Raspbian (Raspberry PI OS) onto the USB Stick, then plug the stick into RPI and boot up, on the RPI OS go to /boot/firmware/config.txt then add dtparam stuff to enable pci, next open Imager and install Ubuntu os on the ssd. Then just unplug the usb and reboot, done.

But now I want to add full disk encryption to to that Ubuntu system on the ssd, how can I achieve this?

submitted by /u/temal32 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • HyperHDR project Help Needed!!/u/GameKnight9000
    Hello! I am working on adding an Ambilight system to a TV using a Raspberry Pi 3 B+. I started this project last week, but the RPi 4 I was using at the time got fried due to overvoltage (as some commenters on r/WLED warned me of). Lesson learned, and I pivoted from using a now extra crispy RPi 4 to the Pi 3 B+ you see in the picture. I have some problems with the final pieces of this project, and I was hoping reddit could come to my rescue again. (I will give a detailed description of the
     

HyperHDR project Help Needed!!

HyperHDR project Help Needed!!

Hello! I am working on adding an Ambilight system to a TV using a Raspberry Pi 3 B+. I started this project last week, but the RPi 4 I was using at the time got fried due to overvoltage (as some commenters on r/WLED warned me of). Lesson learned, and I pivoted from using a now extra crispy RPi 4 to the Pi 3 B+ you see in the picture. I have some problems with the final pieces of this project, and I was hoping reddit could come to my rescue again. (I will give a detailed description of the setup at the end of the post)

I cannot get the lights to do anything when connected to the Pi. I know the lights work, as I have tested both the lights and the harness using a separate Bluetooth controller made by the same company as the light strip. I do not have the backup wire (blue) connected, as it was not necessary to run the lights with the Bluetooth controller. The DAT wire (green) is connected to the GPIO18 pinout on the Pi, and I am confident the crimped connectors used are not the problem. I have also added a common ground between the lights and the Pi (white). Basically, I have narrowed it down to either a software issue (No doubt my fault) or an issue between the pinout and the connector. I am already out of my depth regarding this project and am hesitant to continue trying things on a whim (See burnt RPi 4). I will happily share screenshots of my HyperHDR settings if needed.

For my set-up, I have a Raspberry Pi 3 model B+, powered by a 5V 3A PSU coming from the top of the picture, and plugged into the USB Micro adaptor on the Pi (HyperHDR warns me the Pi isn’t being supplied with enough voltage, but I do not have another solution for power on hand. Suggestions are welcome). The Pi is running HyperHDR 20.0.0.0 and does not seem to have any issues doing so. Entering the Pi from the left side of the screen is the HDMI cable, which then runs into and HDMI to USB type-A Video Capture, which is then connected to the Pi. On the right side of the screen is a 12V 15A power supply wired to the harness connected directly to the lights. The white cable running directly from the lights to the Pi is the common ground connected to a ground pinout on the Pi. The green wire leading from the harness to the Pi is the DAT wire connected to the GPIO18 pinout. The blue wire is the backup wire. This backup wire does not need to be connected to the first-party controller for the LED strip to work, so I assume it does not need to be connected to the Pi. I have run several tests with this backup wire and the DAT wire connected to the GPIO18 pinout using a 1 to 2 terminal block, but nothing has changed.

As I said, I am way out of my comfort zone with this project, and as such I am open to any and all constructive feedback and will be as responsive as possible. I appreciate any help you can provide. If and when I finish this project, I will be sure to post the results!

https://preview.redd.it/24kql0jlpqgd1.jpg?width=2901&format=pjpg&auto=webp&s=582904b120746fd0243b0bd606b5f5dedb9230fa

submitted by /u/GameKnight9000 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Pi5 Cyberdeck in a vintage enclosure from 1953/u/hansj66
    https://preview.redd.it/vwh7016x0vgd1.jpg?width=4032&format=pjpg&auto=webp&s=88f869bc63931cda58c827567424cea9726e389a This is my first cyberdeck build. The enclosure is a 26 x 12 x 7 cm new old stock enclosure. The panels that hold the keyboard and monitor are made from FR4 PCBs. Inside, there is a Pi 5 with an active cooler. I also added a Pimorini NVMe base and a 500Gb SSD. I also added a 30mm fan for the enclosure itself. The display is a standard 7" USB powered HDMI display
     

Pi5 Cyberdeck in a vintage enclosure from 1953

Pi5 Cyberdeck in a vintage enclosure from 1953

https://preview.redd.it/vwh7016x0vgd1.jpg?width=4032&format=pjpg&auto=webp&s=88f869bc63931cda58c827567424cea9726e389a

This is my first cyberdeck build. The enclosure is a 26 x 12 x 7 cm new old stock enclosure. The panels that hold the keyboard and monitor are made from FR4 PCBs. Inside, there is a Pi 5 with an active cooler. I also added a Pimorini NVMe base and a 500Gb SSD. I also added a 30mm fan for the enclosure itself. The display is a standard 7" USB powered HDMI display.

I also made a short video of the build.

submitted by /u/hansj66 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • How can I use Ubuntu encrypted using LUCKS on my RPI5?/u/temal32
    Hello, I want to use Ubuntu Desktop or Server (doesn't really matter which one) on my Raspberry Pi 5 using my NVME 1TB SSD. I have no SD-Card so the way im installing Ubuntu on my RPI is that I plug the USB Stick into my normal Windows PC, then using RPI Imager flash Raspbian (Raspberry PI OS) onto the USB Stick, then plug the stick into RPI and boot up, on the RPI OS go to /boot/firmware/config.txt then add dtparam stuff to enable pci, next open Imager and install Ubuntu os on the ssd. Then jus
     

How can I use Ubuntu encrypted using LUCKS on my RPI5?

Hello,

I want to use Ubuntu Desktop or Server (doesn't really matter which one) on my Raspberry Pi 5 using my NVME 1TB SSD. I have no SD-Card so the way im installing Ubuntu on my RPI is that I plug the USB Stick into my normal Windows PC, then using RPI Imager flash Raspbian (Raspberry PI OS) onto the USB Stick, then plug the stick into RPI and boot up, on the RPI OS go to /boot/firmware/config.txt then add dtparam stuff to enable pci, next open Imager and install Ubuntu os on the ssd. Then just unplug the usb and reboot, done.

But now I want to add full disk encryption to to that Ubuntu system on the ssd, how can I achieve this?

submitted by /u/temal32 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • HyperHDR project Help Needed!!/u/GameKnight9000
    Hello! I am working on adding an Ambilight system to a TV using a Raspberry Pi 3 B+. I started this project last week, but the RPi 4 I was using at the time got fried due to overvoltage (as some commenters on r/WLED warned me of). Lesson learned, and I pivoted from using a now extra crispy RPi 4 to the Pi 3 B+ you see in the picture. I have some problems with the final pieces of this project, and I was hoping reddit could come to my rescue again. (I will give a detailed description of the
     

HyperHDR project Help Needed!!

HyperHDR project Help Needed!!

Hello! I am working on adding an Ambilight system to a TV using a Raspberry Pi 3 B+. I started this project last week, but the RPi 4 I was using at the time got fried due to overvoltage (as some commenters on r/WLED warned me of). Lesson learned, and I pivoted from using a now extra crispy RPi 4 to the Pi 3 B+ you see in the picture. I have some problems with the final pieces of this project, and I was hoping reddit could come to my rescue again. (I will give a detailed description of the setup at the end of the post)

I cannot get the lights to do anything when connected to the Pi. I know the lights work, as I have tested both the lights and the harness using a separate Bluetooth controller made by the same company as the light strip. I do not have the backup wire (blue) connected, as it was not necessary to run the lights with the Bluetooth controller. The DAT wire (green) is connected to the GPIO18 pinout on the Pi, and I am confident the crimped connectors used are not the problem. I have also added a common ground between the lights and the Pi (white). Basically, I have narrowed it down to either a software issue (No doubt my fault) or an issue between the pinout and the connector. I am already out of my depth regarding this project and am hesitant to continue trying things on a whim (See burnt RPi 4). I will happily share screenshots of my HyperHDR settings if needed.

For my set-up, I have a Raspberry Pi 3 model B+, powered by a 5V 3A PSU coming from the top of the picture, and plugged into the USB Micro adaptor on the Pi (HyperHDR warns me the Pi isn’t being supplied with enough voltage, but I do not have another solution for power on hand. Suggestions are welcome). The Pi is running HyperHDR 20.0.0.0 and does not seem to have any issues doing so. Entering the Pi from the left side of the screen is the HDMI cable, which then runs into and HDMI to USB type-A Video Capture, which is then connected to the Pi. On the right side of the screen is a 12V 15A power supply wired to the harness connected directly to the lights. The white cable running directly from the lights to the Pi is the common ground connected to a ground pinout on the Pi. The green wire leading from the harness to the Pi is the DAT wire connected to the GPIO18 pinout. The blue wire is the backup wire. This backup wire does not need to be connected to the first-party controller for the LED strip to work, so I assume it does not need to be connected to the Pi. I have run several tests with this backup wire and the DAT wire connected to the GPIO18 pinout using a 1 to 2 terminal block, but nothing has changed.

As I said, I am way out of my comfort zone with this project, and as such I am open to any and all constructive feedback and will be as responsive as possible. I appreciate any help you can provide. If and when I finish this project, I will be sure to post the results!

https://preview.redd.it/24kql0jlpqgd1.jpg?width=2901&format=pjpg&auto=webp&s=582904b120746fd0243b0bd606b5f5dedb9230fa

submitted by /u/GameKnight9000 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • RaspPI 3.5 display not working/u/Ok_Quail_385
    Hello there, I recently bought a RasPI 3.5-inch TTF touch module and am facing issues using it. The module, even after all drivers are installed, does not display any output. The guild on the website also does not go into detail on how to troubleshoot it and I was not able to find any useful info on debugging this issue. I will list out everything I have done until now: - Reinstalled Raspbian Desktop image. - Configured the Xserver to work (even though the driver install script does it). - Trie
     

RaspPI 3.5 display not working

Hello there, I recently bought a RasPI 3.5-inch TTF touch module and am facing issues using it. The module, even after all drivers are installed, does not display any output. The guild on the website also does not go into detail on how to troubleshoot it and I was not able to find any useful info on debugging this issue.

I will list out everything I have done until now: - Reinstalled Raspbian Desktop image. - Configured the Xserver to work (even though the driver install script does it). - Tried to manually display an Image (this is interesting and I will further explain this below). - Used Python to try and display an image.

So at first, I thought while installing it, I followed the standard procedure and it did not display anything other than a black screen with an _ in it. next, I tried to delete everything and then reinstalled it, but still no luck. Next, I removed the image and used a fresh image, no use. then I tried using this command: ``` sudo fbi -T 1 -d /dev/fb1 -noverbose -a /home/pi/test_image.png

``` to forcefully display something and when I did this a terminal interface got printed but was not usable, then I figured the framerate was flicked so, I tried changing the refresh rate that also did not work.

Now I am lost on what to do. Any suggestions will be appreciated.

I am using a rasp pi zero 2 w for this.

submitted by /u/Ok_Quail_385 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • PWM mosfet output does not correspond to pwm input/u/JoeKongdeezNuts
    My goal is to use the PWM signal of a raspberry pi to control the speed of a 12V 0,24A DC fan. The drawing below shows how I've wired everything up. https://preview.redd.it/q3hajn2igegd1.png?width=696&format=png&auto=webp&s=b7f9c7a46d9a186b513c4aae2346e2c07711fb6d I purchased a cheap mosfet module off of aliexpress: https://de.aliexpress.com/item/1005005625110568.html Amazon carries them too: https://www.amazon.de/gp/product/B07HBQZ9BK The module uses a FR120N mosfet. Link to d
     

PWM mosfet output does not correspond to pwm input

PWM mosfet output does not correspond to pwm input

My goal is to use the PWM signal of a raspberry pi to control the speed of a 12V 0,24A DC fan.

The drawing below shows how I've wired everything up.

https://preview.redd.it/q3hajn2igegd1.png?width=696&format=png&auto=webp&s=b7f9c7a46d9a186b513c4aae2346e2c07711fb6d

I purchased a cheap mosfet module off of aliexpress:

https://de.aliexpress.com/item/1005005625110568.html

Amazon carries them too:

https://www.amazon.de/gp/product/B07HBQZ9BK

The module uses a FR120N mosfet.

Link to datasheet: https://pdf1.alldatasheet.com/datasheet-pdf/view/1223399/VBSEMI/FR120N.html

I use the pigpio python library to control the duty cycle of the pwm signal at 20kHz. When using a multimeter the readings (RPi PWM - RPi GND) perfectly correspond to the duty cycle I set in the code.

The problem: The voltage readings across the fan do not match the duty cycle at all.

At 50% duty cycle I would expect 6V but I get almost the max voltage already. (See table below)

https://preview.redd.it/gkeewuljgegd1.png?width=193&format=png&auto=webp&s=e0943f62f52e10331250e1eb1cc709ac4650a733

In summary I am able to control the duty cycle of the PWM signal but the output of my mosfet module is not what I expected.

The subjective fan speed matches the measurements of VFan (meaning there is no observable change between a duty cycle of 50-100%)

I understand that a minimum average voltage to turn on the fan is needed but why does the fan get about 6 V at 20% duty cycle and not at 50%?

Why is there minimal voltage change across the fan from 50% to 100% duty cycle?

Why does the voltage across the fan not correspond to the duty cycle?

I guess it has sth to do with the mosfet module but I am unable to pinpoint the issue.

submitted by /u/JoeKongdeezNuts to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • 2.8inch DPI LCD and WM8960 Audio HAT together, possible?/u/the_jeby
    Hi, for a project I bought a 2.8inch DPI LCD and WM8960 Audio HAT both from Waveshare. Since the audio hat has GPIO extension I thought it would it be possible to stack one on top of the other. THe idea is to give "comact" audio and video output to a Raspberry Pi Zero, as much pankake as possible with no wires going around. For speaker I'm using 2w 28 mm speakers, no need for hd audio. Well, I followed the intsructuon to edit the config.txt and add the overlays for the LCD and all went ok, once
     

2.8inch DPI LCD and WM8960 Audio HAT together, possible?

Hi,

for a project I bought a 2.8inch DPI LCD and WM8960 Audio HAT both from Waveshare. Since the audio hat has GPIO extension I thought it would it be possible to stack one on top of the other. THe idea is to give "comact" audio and video output to a Raspberry Pi Zero, as much pankake as possible with no wires going around. For speaker I'm using 2w 28 mm speakers, no need for hd audio.

Well, I followed the intsructuon to edit the config.txt and add the overlays for the LCD and all went ok, once I understood that the drivers works only with Legacy 32 full image. Then I installed the audio drivers and the display stopped working. I uninstalled the audio drivers and checked the config.txt file were clean and the display worked again.

Is there a way to make this happen? Can you suggest another compact way of bringing audio out for the rpi? Maybe by using a usb board, taking data and power from the testing pads?

submitted by /u/the_jeby to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Troubleshooting IR Sensor Project: Seeking Guidance/u/sawyer000000
    Hi everyone, I’m working on my first Raspberry Pi project and could use some guidance. I’m building a theremin-like digital instrument using two SHARP GP2Y0A51SK0F IR sensors. Each sensor is supposed to trigger one of five audio clips based on distance. Here’s what I’ve done so far: I’ve set distance thresholds for each audio clip (e.g., 14-15cm triggers Clip 1, 11-13cm triggers Clip 2, etc.). I’ve written code to handle sensor input and play the clips accordingly. However, I’m encountering a
     

Troubleshooting IR Sensor Project: Seeking Guidance

Hi everyone,

I’m working on my first Raspberry Pi project and could use some guidance. I’m building a theremin-like digital instrument using two SHARP GP2Y0A51SK0F IR sensors. Each sensor is supposed to trigger one of five audio clips based on distance.

Here’s what I’ve done so far:

  • I’ve set distance thresholds for each audio clip (e.g., 14-15cm triggers Clip 1, 11-13cm triggers Clip 2, etc.).
  • I’ve written code to handle sensor input and play the clips accordingly.

However, I’m encountering a few issues:

  • Erratic Playback: The audio clips play erratically and seem to be cut off at the low and high ends of the distance range.
  • Persistent Playback: When no object is in front of the sensors, one clip plays continuously until something comes into range.

I’m wondering if:

  • There might be improvements or adjustments I can make in the code to address these issues.
  • The IR sensors might not be ideal for this application, and if alternatives like ultrasonic or Time-of-Flight sensors could be better (ideally want to solve with coding before buying new hardware)

Here’s my code for reference:

import RPi.GPIO as GPIO import time import spidev from subprocess import call import threading import statistics # Setup SPI spi = spidev.SpiDev() spi.open(0, 0) spi.max_speed_hz = 1350000 # MCP3008 channel configuration sensor1_channel = 0 sensor2_channel = 1 # Distance to audio mapping with updated intervals distance_ranges = [(14, 15), (11, 13), (8, 10), (5, 7), (2, 4)] audio_files_sensor1 = [f"/home/jss/audio_clips/s1_clip{i+1}.m4a" for i in range(len(distance_ranges))] audio_files_sensor2 = [f"/home/jss/audio_clips/s2_clip{i+1}.m4a" for i in range(len(distance_ranges))] # Smoothing parameters smoothing_window_size = 5 sensor1_data = [] sensor2_data = [] def read_adc(channel): adc = spi.xfer2([1, (8 + channel) << 4, 0]) data = ((adc[1] & 3) << 8) + adc[2] return data def get_distance(sensor_channel, sensor_data): adc_value = read_adc(sensor_channel) distance = (adc_value * 3.3 / 1024) * 30 # Smoothing the distance using a simple moving average sensor_data.append(distance) if len(sensor_data) > smoothing_window_size: sensor_data.pop(0) smoothed_distance = statistics.mean(sensor_data) print(f"Smoothed distance from sensor {sensor_channel}: {smoothed_distance}") # Debugging return smoothed_distance def play_audio(file): try: print(f"Playing audio file: {file}") # Debugging call(["mpv", file]) except Exception as e: print(f"Error playing audio file: {file}. Error: {e}") def handle_sensor(sensor_channel, audio_files, sensor_data): last_played_index = -1 while True: distance = get_distance(sensor_channel, sensor_data) for i, (low, high) in enumerate(distance_ranges): if low <= distance <= high: if i != last_played_index: play_audio(audio_files[i]) last_played_index = i break time.sleep(0.1) def main(): print("Script started...") # Debugging # Create and start threads for each sensor sensor1_thread = threading.Thread(target=handle_sensor, args=(sensor1_channel, audio_files_sensor1, sensor1_data)) sensor2_thread = threading.Thread(target=handle_sensor, args=(sensor2_channel, audio_files_sensor2, sensor2_data)) sensor1_thread.start() sensor2_thread.start() # Wait for both threads to finish (they won't in this case) sensor1_thread.join() sensor2_thread.join() if __name__ == "__main__": main()import RPi.GPIO as GPIO import time import spidev from subprocess import call import threading import statistics # Setup SPI spi = spidev.SpiDev() spi.open(0, 0) spi.max_speed_hz = 1350000 # MCP3008 channel configuration sensor1_channel = 0 sensor2_channel = 1 # Distance to audio mapping with updated intervals distance_ranges = [(14, 15), (11, 13), (8, 10), (5, 7), (2, 4)] audio_files_sensor1 = [f"/home/jss/audio_clips/s1_clip{i+1}.m4a" for i in range(len(distance_ranges))] audio_files_sensor2 = [f"/home/jss/audio_clips/s2_clip{i+1}.m4a" for i in range(len(distance_ranges))] # Smoothing parameters smoothing_window_size = 5 sensor1_data = [] sensor2_data = [] def read_adc(channel): adc = spi.xfer2([1, (8 + channel) << 4, 0]) data = ((adc[1] & 3) << 8) + adc[2] return data def get_distance(sensor_channel, sensor_data): adc_value = read_adc(sensor_channel) distance = (adc_value * 3.3 / 1024) * 30 # Smoothing the distance using a simple moving average sensor_data.append(distance) if len(sensor_data) > smoothing_window_size: sensor_data.pop(0) smoothed_distance = statistics.mean(sensor_data) print(f"Smoothed distance from sensor {sensor_channel}: {smoothed_distance}") # Debugging return smoothed_distance def play_audio(file): try: print(f"Playing audio file: {file}") # Debugging call(["mpv", file]) except Exception as e: print(f"Error playing audio file: {file}. Error: {e}") def handle_sensor(sensor_channel, audio_files, sensor_data): last_played_index = -1 while True: distance = get_distance(sensor_channel, sensor_data) for i, (low, high) in enumerate(distance_ranges): if low <= distance <= high: if i != last_played_index: play_audio(audio_files[i]) last_played_index = i break time.sleep(0.1) def main(): print("Script started...") # Debugging # Create and start threads for each sensor sensor1_thread = threading.Thread(target=handle_sensor, args=(sensor1_channel, audio_files_sensor1, sensor1_data)) sensor2_thread = threading.Thread(target=handle_sensor, args=(sensor2_channel, audio_files_sensor2, sensor2_data)) sensor1_thread.start() sensor2_thread.start() # Wait for both threads to finish (they won't in this case) sensor1_thread.join() sensor2_thread.join() if __name__ == "__main__": main() 
submitted by /u/sawyer000000 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Spotify telegram bot running on pi 0 2w/u/jiduk
    So i got sick of the spotify shuffle bcoz it was not playing the old songs in my playlist. So i made python telegram bot to shuffle the playlist and also it can update a playlist with the songs from shazam and liked songs. It basically collects the uri id of songs from liked,main playlist and shazam and builds a database. From that can easily add or rearrange songs in the playlist. Now I'm really up for saving money for a decent pi 4/5 in future😙. https://github.com/jidukrishna/spotify_upd
     

Spotify telegram bot running on pi 0 2w

Spotify telegram bot running on pi 0 2w

So i got sick of the spotify shuffle bcoz it was not playing the old songs in my playlist. So i made python telegram bot to shuffle the playlist and also it can update a playlist with the songs from shazam and liked songs. It basically collects the uri id of songs from liked,main playlist and shazam and builds a database. From that can easily add or rearrange songs in the playlist. Now I'm really up for saving money for a decent pi 4/5 in future😙. https://github.com/jidukrishna/spotify_updater

submitted by /u/jiduk to r/RASPBERRY_PI_PROJECTS
[link] [comments]

Portable Pi test terminal, handy for portable pi needs

Portable Pi test terminal, handy for portable pi needs

Ive seen the clock work u console around and wanted something a bit more utilitarian, as well as being upgradeable. It doesn't look nearly as nice but it serves my purpose and hopefully inspires someone else to build something even better

submitted by /u/AsuraZero to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • BB1-zero update. Arms fine tuning and wire cleanups/u/TheRealFanger
    Finally been cleaning up the wires and doing some fine tuning on smoothing out the arms. Unfortunately I’m pretty sure he pulled out one of the grounds (my fault ) at the end of this dance. It started doing that pulsing thing it does when a ground is lose. So another takedown and redo is in order. 🤦‍♂️😂. Still pretty happy with it tho. submitted by /u/TheRealFanger to r/RASPBERRY_PI_PROJECTS [link] [comments]
     

BB1-zero update. Arms fine tuning and wire cleanups

BB1-zero update. Arms fine tuning and wire cleanups

Finally been cleaning up the wires and doing some fine tuning on smoothing out the arms. Unfortunately I’m pretty sure he pulled out one of the grounds (my fault ) at the end of this dance. It started doing that pulsing thing it does when a ground is lose. So another takedown and redo is in order. 🤦‍♂️😂. Still pretty happy with it tho.

submitted by /u/TheRealFanger to r/RASPBERRY_PI_PROJECTS
[link] [comments]

How to properly connect a bidirectional data line to Raspberry Pi 5 GPIO? [Project details & documentation inside]

How to properly connect a bidirectional data line to Raspberry Pi 5 GPIO? [Project details & documentation inside]

I am new to the Pi community and my head is spinning from learning all about GPIO pins, voltages, and communication protocols. Though it has been fun learning all these new concepts.

I am struggling to properly connect a bidirectional data wire from an external machine [coin hopper] to my Raspberry Pi 5. When I use my Pi to send a request to the hopper, I get no response. I'm not sure if I am setting up this data wire correctly, so I would love insights from the community.

High-level Project Details and Objective

  • My project is an automated coin identifier & sorter. I am using a Raspberry Pi 5

https://preview.redd.it/haj0u0tc6cfd1.png?width=720&format=png&auto=webp&s=32dbe2ed85517b33461accfd85448970b0f9e0d8

  • Here is a video of the most recent project prototype [coin hopper has not been added to the system yet]
  • Have the Pi be able to transmit data to & receive data from a coin hopper
  • I am using Python
  • The coin hopper uses the ccTalk & UART serial interface protocol
  • Avoid frying my coin hopper and Pi
  • I am using a 16-gauge solid core copper wire [insulated] for the power supply and data wire

Details

I am trying to connect a Coin Hopper [Money Controls SCH 2 model] to my Pi 5. The SCH2 uses a 10-pin Moxel connection scheme and uses a bi-directional serial data line.

SCH2 Coin Hopper

10-pin Molex Serial Connector

Pin Configurations

SCH2 Online Manual/Documentation

SCH2 uses the serial interface ccTalk & UART protocol**. ccTalk** is a very old protocol which makes sense as the coin hopper was produced in 2005.

From Manual

From ccTalk Wikipedia page: https://en.wikipedia.org/wiki/CcTalk

The coin hopper is powered by a 24v power supply. Below is what the power supply looks like

Power Supply from Amazon: https://www.amazon.com/dp/B07VL8W6MQ

I am using a female terminal connector adapter to connect the 24v wire and ground wire from the coin hopper directly to the power supply. [Pins 4 & 6 on the hopper]

https://preview.redd.it/izfz20md3cfd1.jpg?width=4372&format=pjpg&auto=webp&s=687b11ebcf7062054fd895d12df19754a5cdc2fa

https://preview.redd.it/1k3y8y0e3cfd1.jpg?width=3046&format=pjpg&auto=webp&s=2eb38827f83b1dac8fa4daa5cddf2508fa943ee4

I read that since the coin hopper uses 24v, it could damage the Pi 5 as the Pi operates at 3.3v logic level. Even though the only connection from the coin hopper to the Pi is with the bi-directional data line. As such, I am using a 3.3V/5V to 3.6V/24V 4 Channel Voltage Converter Optocoupler board. The board is NOT bi-directional.

Voltage Converter from Amazon: https://www.amazon.com/dp/B07WFGTNQC

To better communicate with the Pi's GPIO, I am using this GPIO expansion board

GPIO Extenstion board from Amazon: https://www.amazon.com/dp/B08GKQMC72

This GPIO expansion board has a TXD and RXD port.

My current understanding

  • Pi5 GPIO structure does not allow for bi-directional data communication. As such I need to use my GPIO extension board which has a TXD [Transmit] and RXD [Receive] port. I can not connect the coin hopper's bi-directional data wire solely to the TXD or RXD port and expect bi-directional communication
  • Since the coin hopper operates at 24v, I assume it uses 24v logic level. As such, a voltage converter is needed. Though, I am unsure why as I would think a data wire is not powering anything, just sending data and thus very low voltage.
  • The ground wire from the coin hopper [Pin 6] should connect to the ground socket on the power supply female terminal.

Outstanding Questions

  • What do I need to consider to connect the coin hopper's bi-directional data wire to the Pi? Am I missing a key part/board?
  • Do I need to use the UART serial protocol? Is there a better alternative that will still work with the coin hopper?
  • Do I need a GPIO extension board? If so, is my current extension board appropriate?
  • Do I need a voltage converter board? If so, is my current converter board appropriate? Do I need to get a bi-directional converter board? [My current one is not bi-directional]
  • Should the ground wire from the coin hopper [Pin 6] connect to the ground socket on the power supply? Or should the ground wire from the coin hopper [Pin 6] connect to the ground socket on the GPIO extension board on the Pi?
  • Does it matter if my wires are solid or stranded copper?

This has been a confusing journey but I'm excited to get the coin hopper up and running. The idea is to automate my coin sorter so that I don't have to place a coin manually each time. The Pi will communicate with the hopper to queue up the next coin after a coin has gone through the sorter.

Edit: Clarification on what I have already done and tested

I have already attached the GPIO extension board and voltage convertor to the Pi

https://preview.redd.it/3u7k8y2k6efd1.png?width=683&format=png&auto=webp&s=ea358c61f93acddc69b68d87ebc58500697ff65d

https://preview.redd.it/fdisgigl6efd1.png?width=696&format=png&auto=webp&s=a9c7b61604c49e8ad1bb1fa509d80a99762537f1

On the voltage convertor there, on the left side in the picture, are ports indicating Input & Ground. On the right side is Voltage Output and Ground. I connected a 22-gauge wire from IN1 [Input 1] to the GPIO extension board [TXD]. I also connected the wire from the input ground port to the ground port on the GPIO extension board [next to the TXD port.

https://preview.redd.it/dy69vjm97efd1.png?width=553&format=png&auto=webp&s=bb9449eba777f728aecaba64adcf4a36a7fba5ff

https://preview.redd.it/2rz3oeb87efd1.png?width=562&format=png&auto=webp&s=25535bcc934c1d3d1997ea7dcf63a04a594c91c7

For the connection with the coin hopper, I connected the data cable wire from the hopper to V1 and a ground wire from the hopper in G.

https://preview.redd.it/xufskpgl7efd1.png?width=567&format=png&auto=webp&s=4f3ec1c81607a318c7a90118811a757ca8461233

I am trying to send a command from the Pi through to the GPIO extension board. That data then goes through the extension board to the data cable wire to the coin hopper.

However, the coin hopper does not send a response back confirming communication.

Below is what I have done to troubleshoot:

  • Testing Communication Protocols:
    • Verified ccTalk protocol uses UART for serial communication.
    • Ensured the correct baud rate (9600 8N1) for ccTalk messages.
    • Enabled the Pi serial port and confirmed the correct serial is online and avaliable
  • Software and Library Installations:
    • Installed and configured pyserial for serial communication.
submitted by /u/SomeGuyInDeutschland to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Raspberry Pi 5 NAS using Argon Neo 5 NVME case/u/xVeranex
    Hello all! I'm new to the Raspberry Pi scene; however, I have recently found my interest piqued by the tinkering possibilities of the Raspberry Pi. I am currently in the process of creating a NAS server that will be primarily used to maintain a photo library to offload from my phones. I am looking for suggestions, feedback, and any remarks on my build. The build will be as follows: - Raspberry Pi 5 - Argon Neo case with NVME support - 64GB Micro SD to download Pi OS Lite and Open Media Vault - 1
     

Raspberry Pi 5 NAS using Argon Neo 5 NVME case

Hello all! I'm new to the Raspberry Pi scene; however, I have recently found my interest piqued by the tinkering possibilities of the Raspberry Pi. I am currently in the process of creating a NAS server that will be primarily used to maintain a photo library to offload from my phones. I am looking for suggestions, feedback, and any remarks on my build. The build will be as follows: - Raspberry Pi 5 - Argon Neo case with NVME support - 64GB Micro SD to download Pi OS Lite and Open Media Vault - 1 TB Crucial NVME

Additionally, I am also planning on buying a Black Shark phone cooler that I will stick above the Argon Neo's aluminum case with the theory that it will cool the metal down, which will cool the air within the case down, and therefore the fan's in the case will be circulating cold air to the Raspberry Pi.

I understand some of you might be asking me why I am not running RAID and multiple bays. Well, I don't want to increase the budget of this build anymore. It was supposed to be USD 250, and I'm already at USD 260.

submitted by /u/xVeranex to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Need help picking parts for an autonomous car (Raspberry Pi 5)/u/Popular-Remove-3536
    Hi, Recently I bought a Raspberry Pi 5 so that I can use it in a project of mine, an autonomous car. Unfortunately I'm not very experienced with electronics and I need help because I see that everybody online chooses different parts. I want the car to be powered by a single LiPo battery with 11.1V and 2200mAh (with the XT60 plug). I want it to power the Raspberry Pi 5, a small 130 motor (3V) and a servomotor. My question is, how do I power all of them from the same battery? I've searched and fou
     

Need help picking parts for an autonomous car (Raspberry Pi 5)

Hi, Recently I bought a Raspberry Pi 5 so that I can use it in a project of mine, an autonomous car.

Unfortunately I'm not very experienced with electronics and I need help because I see that everybody online chooses different parts.

I want the car to be powered by a single LiPo battery with 11.1V and 2200mAh (with the XT60 plug). I want it to power the Raspberry Pi 5, a small 130 motor (3V) and a servomotor.

My question is, how do I power all of them from the same battery? I've searched and found that I can use a motor driver, I've seen more complex builds that use some additional parts. I'm just really unsure on how to connect all these so that they are powered by the Raspberry Pi only. I doubt the motor driver can power all 3 of them so I'm searching for either something else or something additional.

If anyone has some recommendations, articles that I can read, videos or anything to point me in the right direction, please send 'em my way.

submitted by /u/Popular-Remove-3536 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • Mounting an NVMe on a Raspi 5 with Ubuntu server/u/stoffel2107
    Heyo everyone, So this is quite frustrating.. I got myself a raspberry pi 5... A rasperry pi 5 pcie M.2 hat ( The pimoroni Duo ) The idea is to use proxmox on the PI. Just for fun. My current problem is that the ubuntu server can't see nor mount the nvme.. And whenever I search for help I get loooots of sites helping me on how to boot from an nvme.. I do not want to boot from my nvmes.. I want the os to run from the SD card and then mount the nvmes into the os... Does anyone here have any ideas
     

Mounting an NVMe on a Raspi 5 with Ubuntu server

Heyo everyone,

So this is quite frustrating..

I got myself a raspberry pi 5... A rasperry pi 5 pcie M.2 hat ( The pimoroni Duo )

The idea is to use proxmox on the PI. Just for fun.

My current problem is that the ubuntu server can't see nor mount the nvme.. And whenever I search for help I get loooots of sites helping me on how to boot from an nvme.. I do not want to boot from my nvmes.. I want the os to run from the SD card and then mount the nvmes into the os...

Does anyone here have any ideas how to accomplish that?

Thanks for reading.

P.S. I'm slightly triggered that there's no one just mounting an nvme.

submitted by /u/stoffel2107 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • RuntimeError On My Raspberry Pi Code/u/ameerkatofficial
    I am using a very basic test code provided at the end of this video linked below (I'm basically trying to rebuild her robot with a few extra mods but I haven't even added the mods yet) https://www.youtube.com/watch?v=Bp9r9TGpWOk I keep getting this error: RuntimeError: The GPIO channel has not been set up as an OUTPUT It marks the error at the first line of my forward function. I have tried googling the solution and this is the only link that comes close to solving my issue but not quite as I'm
     

RuntimeError On My Raspberry Pi Code

I am using a very basic test code provided at the end of this video linked below (I'm basically trying to rebuild her robot with a few extra mods but I haven't even added the mods yet)

https://www.youtube.com/watch?v=Bp9r9TGpWOk

I keep getting this error:

RuntimeError: The GPIO channel has not been set up as an OUTPUT

It marks the error at the first line of my forward function.

I have tried googling the solution and this is the only link that comes close to solving my issue but not quite as I'm not using GPIO.cleanup(), so I have no idea what else my issue can be. I've reviewed the code a dozen times, and it should be working, as I'm essentially doing this but with some extra steps:

import time

import RPi.GPIO as GPIO

GPIO.setwarnings(False)

GPIO.setmode(GPIO.BOARD)

GPIO.setup[29, GPIO.OUT]

GPIO.setup[31, GPIO.OUT]

#30 GND

GPIO.setup[32, GPIO.OUT]

GPIO.setup[33, GPIO.OUT]

GPIO.output(29, True)

time.sleep(3)

GPIO.output(29, False)

GPIO.output(31, True)

time.sleep(3)

GPIO.output(31, False)

GPIO.output(32, True)

time.sleep(3)

GPIO.output(32, False)

GPIO.output(33, True)

time.sleep(3)

GPIO.output(33, False)

time.sleep(3)

exit()

And this code worked perfectly fine. I don't know why it shit the bed as soon as I brought classes into the equation. The pins all work, and they all respond to the pi calling them out exactly like this. I think it must be something in my syntax that's making it freak out and throw this error. I removed all the extraneous stuff I added in for my future mods (except for some of the imports), and nothing fixed it. I'm putting my code below.

#GPIO Settings

GPIO.setwarnings(False)

GPIO.setmode(GPIO.BOARD)

#labeling pins

GPIO.setup[29, GPIO.OUT]

GPIO.setup[31, GPIO.OUT]

#30 GND

GPIO.setup[32, GPIO.OUT]

GPIO.setup[33, GPIO.OUT]

class Robot:

def __init__(self, name, rwheel, lwheel):

self.name = name

self.rwheel = tuple(rwheel)

self.lwheel = tuple(lwheel)

self.rwheel_f = int(rwheel[0])

self.rwheel_b = int(rwheel[1])

self.lwheel_f = int(lwheel[0])

self.lwheel_b = int(lwheel[1])

def forward(self, sec):

GPIO.output(self.rwheel_f, True)

GPIO.output(self.lwheel_f, True)

#stop

time.sleep(sec)

GPIO.output(self.rwheel_f, False)

GPIO.output(self.lwheel_f, False)

def backward(self, sec):

GPIO.output(self.rwheel_b, True)

GPIO.output(self.lwheel_b, True)

#stop

time.sleep(sec)

GPIO.output(self.rwheel_b, False)

GPIO.output(self.lwheel_b, False)

def lturn(self, sec):

GPIO.output(self.rwheel_f, True)

#stop

time.sleep(sec)

GPIO.output(self.rwheel_f, False)

def rturn(self, sec):

GPIO.output(self.lwheel_f, True)

#stop

time.sleep(sec)

GPIO.output(self.lwheel_f, False)

#establishing ob

smelly = Robot("smelly", (29, 31), (32,33))

#test run

smelly.forward(3)

smelly.backward(3)

smelly.lturn(3)

smelly.rturn(3)

Again, I'm following her code exactly, so I'm not sure where I could have gone wrong on this. Again, I get the error attached to the first line of my forward function.

submitted by /u/ameerkatofficial to r/RASPBERRY_PI_PROJECTS
[link] [comments]

BB1-zero Update! Beefier arms Egg test passed ! Great success !

BB1-zero Update! Beefier arms Egg test passed ! Great success !

Sorry for back to back updates. Pulled an all nighter on getting the arms calibrated 🙏🏽 saved the moment of truth for this morning . Loving the new arms sofar.

submitted by /u/TheRealFanger to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • RaspPI 3.5 display not working/u/Ok_Quail_385
    Hello there, I recently bought a RasPI 3.5-inch TTF touch module and am facing issues using it. The module, even after all drivers are installed, does not display any output. The guild on the website also does not go into detail on how to troubleshoot it and I was not able to find any useful info on debugging this issue. I will list out everything I have done until now: - Reinstalled Raspbian Desktop image. - Configured the Xserver to work (even though the driver install script does it). - Trie
     

RaspPI 3.5 display not working

Hello there, I recently bought a RasPI 3.5-inch TTF touch module and am facing issues using it. The module, even after all drivers are installed, does not display any output. The guild on the website also does not go into detail on how to troubleshoot it and I was not able to find any useful info on debugging this issue.

I will list out everything I have done until now: - Reinstalled Raspbian Desktop image. - Configured the Xserver to work (even though the driver install script does it). - Tried to manually display an Image (this is interesting and I will further explain this below). - Used Python to try and display an image.

So at first, I thought while installing it, I followed the standard procedure and it did not display anything other than a black screen with an _ in it. next, I tried to delete everything and then reinstalled it, but still no luck. Next, I removed the image and used a fresh image, no use. then I tried using this command: ``` sudo fbi -T 1 -d /dev/fb1 -noverbose -a /home/pi/test_image.png

``` to forcefully display something and when I did this a terminal interface got printed but was not usable, then I figured the framerate was flicked so, I tried changing the refresh rate that also did not work.

Now I am lost on what to do. Any suggestions will be appreciated.

I am using a rasp pi zero 2 w for this.

submitted by /u/Ok_Quail_385 to r/RASPBERRY_PI_PROJECTS
[link] [comments]
  • ✇posts from RASPBERRY_PI_PROJECTS, Purei
  • PWM mosfet output does not correspond to pwm input/u/JoeKongdeezNuts
    My goal is to use the PWM signal of a raspberry pi to control the speed of a 12V 0,24A DC fan. The drawing below shows how I've wired everything up. https://preview.redd.it/q3hajn2igegd1.png?width=696&format=png&auto=webp&s=b7f9c7a46d9a186b513c4aae2346e2c07711fb6d I purchased a cheap mosfet module off of aliexpress: https://de.aliexpress.com/item/1005005625110568.html Amazon carries them too: https://www.amazon.de/gp/product/B07HBQZ9BK The module uses a FR120N mosfet. Link to d
     

PWM mosfet output does not correspond to pwm input

PWM mosfet output does not correspond to pwm input

My goal is to use the PWM signal of a raspberry pi to control the speed of a 12V 0,24A DC fan.

The drawing below shows how I've wired everything up.

https://preview.redd.it/q3hajn2igegd1.png?width=696&format=png&auto=webp&s=b7f9c7a46d9a186b513c4aae2346e2c07711fb6d

I purchased a cheap mosfet module off of aliexpress:

https://de.aliexpress.com/item/1005005625110568.html

Amazon carries them too:

https://www.amazon.de/gp/product/B07HBQZ9BK

The module uses a FR120N mosfet.

Link to datasheet: https://pdf1.alldatasheet.com/datasheet-pdf/view/1223399/VBSEMI/FR120N.html

I use the pigpio python library to control the duty cycle of the pwm signal at 20kHz. When using a multimeter the readings (RPi PWM - RPi GND) perfectly correspond to the duty cycle I set in the code.

The problem: The voltage readings across the fan do not match the duty cycle at all.

At 50% duty cycle I would expect 6V but I get almost the max voltage already. (See table below)

https://preview.redd.it/gkeewuljgegd1.png?width=193&format=png&auto=webp&s=e0943f62f52e10331250e1eb1cc709ac4650a733

In summary I am able to control the duty cycle of the PWM signal but the output of my mosfet module is not what I expected.

The subjective fan speed matches the measurements of VFan (meaning there is no observable change between a duty cycle of 50-100%)

I understand that a minimum average voltage to turn on the fan is needed but why does the fan get about 6 V at 20% duty cycle and not at 50%?

Why is there minimal voltage change across the fan from 50% to 100% duty cycle?

Why does the voltage across the fan not correspond to the duty cycle?

I guess it has sth to do with the mosfet module but I am unable to pinpoint the issue.

submitted by /u/JoeKongdeezNuts to r/RASPBERRY_PI_PROJECTS
[link] [comments]
❌
❌