I have Raspberry Pi and I mainly use it for VPN and piHole. I’m curious if you have one, have you found it useful? What do you do with your Raspberry Pi?
1x Raspberry Pi 3 installed in my car within the internal network as a bastion box and to run software that let's my interact with the entertainment system
1x Raspberry Pi 3 running Home Assistant with a Z-Wave USB Dongle (Home Automation) 1x Raspberry Pi 3 running OctoPrint (Host/remote-control for 3D Printer) 1x Raspberry Pi 3 running FullPageOS (Full-screen Chromium in kiosk mode) displaying a server statusboard in our home office Next project: 1x Raspberry Pi Zero W to run Unifi Controller I have a couple of original Model B+ sitting around unused right now - just not powerful enough for any of the above projects. (Update: Formatting)
Boo! Might have to reconsider then. I used the Pi Zero W for FullPageOS for a while but performance was absolutely terrible, recently switched it out with the Raspberry Pi 3.
The Pi Zero really has an awesome form factor, but many of the projects I come up with either require more performance (i.e. needing a Rasperry Pi 3) or are simply better suited for a microcontroller such an ESP32 or ESP8266.
I guess it depends, but having the unifi controller on wifi isn't always the best of idea. If you misconfigure the wifi or just change the ssid/password the controller looses access as the settings are applied. And now you can't even connect to the controller to fix it.
When I used my Pi 3b+ it was flakey for UniFi. I bought a bunch of their cameras and got a cloud key gen 2 plus. Haven’t looked back and now I have a Pi for a few other things in my new house.
Seconding this... it'll just barely run on the Zero W, but you need 64-bit Java to remotely access your controller through unifi.ubnt.com, and there'll be long delays whenever the database needs any maintenance.
(I set up a Zero with the Unifi Controller -- connecting to the LAN using a Chromecast Ethernet Adaptor -- about a year ago, and had this problem, so I switched to a 3B, and all is well now.)
> 1x Raspberry Pi 3 installed in my car within the internal network as a bastion box and to run software that let's my interact with the entertainment system
Can you go in more depth about this? How did you integrate it with the entertainment system, and what do specifically do you do with it?
That "open stuff" generally speaking is either an ODB-II port (which as I understand it is generally limited in diagnostics and communication in modern cars) and the other is the C2 Radio harness (which plugs into the back of the infotainment system.) These systems exist on all modern cars.
The C2 radio port gets you direct access to the vehicle's CAN-Bus system, which itself is generally segmented into a high frequency (safety critical systems: drivetrain, drive-by-wire steering if applicable, braking, etc) and a low frequency system (door locks, sound system, windows, etc.) If you reverse engineer your vehicle's CAN protocol (each manufacturer uses their own codes on a standard CAN transport protocol), you can issue commands to it directly from your Pi.
Comma ai has a bunch of car related repos that are open source, one of them interfaces with can via the odbc jack under the steering wheel. Might be able to glean some information there.
Unifi controller on a pi zero might be a bit painful on the memory front. It wants the controller (java app) and mongo, both of which like to eat up memory.
> Next project: 1x Raspberry Pi Zero W to run Unifi Controller
Ugh, have fun with the dependency issues. An easy alternative is to run a Unifi docker image. Currently running it from a Debian VM when needed but looking to move it to an alpine vmm on my OpenBSD APU2. The Linux image is the same as the cloud key so you can roll your own cloud key and use the unifi app. Here is the image I use though there are others: https://hub.docker.com/r/jacobalberty/unifi/
It is a nightmare! I just finished fighting with it this weekend.
The controller only officially supports ARM 32, and the mongoDB dependency only supports ARM 64. In the end I I used a 64-bit Ubuntu, 64-bit mongoDB from the mongoDB repo, and downloaded the controller deb from the Unify site, which is apparently architect agnostic.
> 1x Raspberry Pi 3 installed in my car within the internal network as a bastion box and to run software that let's my interact with the entertainment system
Can you go in more depth about this? How did you integrate it with the entertainment system, and what do specifically do you do with it?
You’re clearly better at this than me, so this might be unneeded: Docking the UniFi Controller avoids the dependency hell and upgrade pain that sometimes occurs, and makes an afternoons pain into a 5 minute exercise.
I use a Raspberry Pi to stream PlayStation 2 backups over SMB by networking the onboard Ethernet port of the Pi to allow access to a Samba Share service running on the Pi. This allows for seamless playback of games with heavy Full Motion Video sequences as the Ethernet transmission is faster than the max throughput of the USB2.0 ports provided on the PlayStation 2. It -also supports auto mounting and sharing of external drives to allow for seamless drive swapping if you have a large library.
Using the same technique, games can also be streamed to PlayStation 3 and original Xbox. I added some additional support for Xlink Kai so that you can play LAN enabled games over the Pi’s WiFi connection by plugging a compatible game console into the Ethernet port of the Pi or by connecting to an access point that is auto created when a secondary WiFi dongle is attached to the Pi. I learned that there are usually a hundred or so people in South America who play Halo 2 using Xlink Kai and this makes it very easy to connect to them for lag free multiplayer on original hardware. This feature also works on Nintendo Switch and PSP with a bit of extra work. The project is open source and [available as a flashable SD image on Github](https://github.com/toolboc/psx-pi-smbshare). Youtuber VersatileNinja recently published a detailed video on [how to get started with the project](https://youtu.be/Ilx5NYoUkNA) if anyone is interested in taking it for a spin.
How fast is streaming cut-scene heavy games like MGS4 to the PS3 using this setup?
Also, for the PS2, how does it compare with HDDLoader and an internal HDD. Relevant for games like Fatal Frame, where you have to open doors a lot, and on the DVD, it takes like 5-10 seconds, but on the HDD, it takes <1 second. I didn't know we could steam to the Xbox OG, sounds pretty useful compared with the 1hr process to open it up and upgrade the HDD...
In my tests using iftop, speed on PS3 seems to top out around 60 MB/s which is slower than HDD but should be sufficient for most games.
On PS2, the speed to access SMB is also slower than HDD at around 6 MB/s, however, this is nearly 6x the speed of the USB. Although it is slower than HDD access, it allows for playback of most games without stuttering. Good point on calling attention to the OG Xbox, as I should have been more specific there. OG Xbox games can only be played back via HDD or Disc due to a limitation in the system itself, however, a number of emulators support SMB paths for playing backups.
I'd probably do the same if my PS2 was a slim model, but I have the fat, and used an older hard drive for it.
I'd love it if modern consoles like the Xbox One and PS4 supported any sort of network share hosting for games. They do support USB drives and I thought about using Linux Gadget USB to emulate a USB drive and store the backing file on the network share. Previously that wouldn't have really worked with the Raspberry Pis as the full sized models did not support USB OTG. It does look like the new Pi4 supports USB OTG over the USB-C power port.
* Pie-hole and runs Nagios to collect information about things going on inside the network. * One running a PiDP-11 (pdp 11/70 emulator) as well as providing MOP service to boot my DEC terminal multiplexor (it provides the boot image when the mux comes up) * One is a stratum-1 time server using an Adafruit GPS module with PPS output. This because I got tired of both the reflection attacks and trying to manage ntp access from inside the house to outside. * One runs RasPBX and talks to the VOIP phone that is my home "business" line. * One sits on my electronics workbench and runs OpenOCD and allows BlackMagic Probes to export GDB as a service over the network. That lets me debug from anywhere without burning a USB port or adding additional software. * One runs a very simple time series database and is the collector for IOT type devices that are sending various bits of information (energy use, temp, humidity, particulate levels, etc) * One drives a display which has a dashboard of various things that the others are doing (like Nagios alerts, data trends etc) This one is a candidate for replacement as the 4K monitor would be nice here. * One runs the waveforms live software from Digilent and hooks to an Analog Discovery 2 on my workbench. (scope, logic analyzer, etc) EDIT: And its important to know that I boot them using the network and run them off NFS from a NAS box, the idea being that when they break I can easily swap the CPU part with a new one.
The lowest power "x86" server I have found runs at about 30W, that is equivalent to about 8 RasPis (typically about 4W each, the PiDP-11 is an outlier at 8W) in the current configuration, and the RasPis are fairly distributed around my lab which would have to be done with wiring otherwise.
The Pi is memory bandwidth limited as it is, that would probably kill it completely. Even the RPi2 was really only responsive enough with a 720p display.
> * One sits on my electronics workbench and runs OpenOCD and allows BlackMagic Probes to export GDB as a service over the network. That lets me debug from anywhere without burning a USB port or adding additional software.
This sounds cool and interesting. Can you elaborate on the setup and some of the ways you've used it?
Its pretty simple really, I built OpenOCD from source on the RPi (that is just download the github repo[1] and add some libraries like libusb), when you run OpenOCD, by default it opens a gdb server on port 3333 and a telnet server on 4444.
From anywhere on the network when you start arm-none-eabi-gdb, you can type
target extended-remote debug:3333
And poof you're connected to what ever dev board OpenOCD
id debugging. Then just load your .elf file (which flashes it) and start it and you are off to the races.
Since the Black Magic Probe has its own gdb server you wrap it with nc(1) so on the Pi you run
nc -kl 1234 < /dev/ttyACM0 > /dev/ttyACM0
and now you can connect to port 1234 on the debug server. At which point you're talking to the BMP. The ports are selectable so I typically set up as many ports as I need (depends on how many sessions I might be running) and write them on a boogie board[2].
I have a (basically non-existent) side business selling LED strips and RPi lighting controllers for surfboards! If you've seem some viral videos with guys surfing around at night, they were probably using my gear :-)
Briefly put, I use the Glediator and Jinx! control software on an RPi, which communicates with an Arduino, which drives the LEDs. I put them in a permanently sealed box, water proof it as much as I possibly can, then cut some IP68 RGB LED strips to size and strap them to the rails of the board. I can remotely access the RPi via Wi-Fi to change lighting schemes, and there's a wireless charging coil inside the box which I can use to charge the batteries, so I never have to open it up after waterproofing. It's basically bomb-proof, and simple enough that I can teach a surf bum how to use it in about half and hour. Start thinking of the RPi as more of a powerful microcontroller and suddenly a world of opportunities open up. I did my dissertation on it! Titled 'Home Automation and Monitoring using a Raspberry Pi', I basically used an RPi as a master node to control a bunch of Arduino slave nodes, using I2C protocol. With just two wires and an Pi, I run about 20 Arduino's all over my house, doing everything from feeding my fish, to monitoring air quality, to starting my coffee maker. I can access it remotely via Wi-Fi too, so I can do things like water my plants while I'm away. Aiming for a full Wallace and Grommet home in the near future. Raspberry Pi's are awesome.
No, but very similar! I made mine as a product you could attach to any board, as opposed to the strips being embedded and shaped into the board like the one in this video (which normally cost thousands to buy...) A few of my friends rode them at a contest in France though [1]
Comments (1,069) 486 threads
Earlier comments1x Raspberry Pi 3 running Home Assistant with a Z-Wave USB Dongle (Home Automation)
1x Raspberry Pi 3 running OctoPrint (Host/remote-control for 3D Printer)
1x Raspberry Pi 3 running FullPageOS (Full-screen Chromium in kiosk mode) displaying a server statusboard in our home office
Next project: 1x Raspberry Pi Zero W to run Unifi Controller
I have a couple of original Model B+ sitting around unused right now - just not powerful enough for any of the above projects.
(Update: Formatting)
The Pi Zero really has an awesome form factor, but many of the projects I come up with either require more performance (i.e. needing a Rasperry Pi 3) or are simply better suited for a microcontroller such an ESP32 or ESP8266.
Continue this thread — 1 reply
(I set up a Zero with the Unifi Controller -- connecting to the LAN using a Chromecast Ethernet Adaptor -- about a year ago, and had this problem, so I switched to a 3B, and all is well now.)
Can you go in more depth about this? How did you integrate it with the entertainment system, and what do specifically do you do with it?
I believe Ford has some open stuff you can connect a laptop to.
Here’s an older video with some interesting details: https://m.youtube.com/watch?v=KX_0c9R4Fng
Continue this thread — 2 replies
The C2 radio port gets you direct access to the vehicle's CAN-Bus system, which itself is generally segmented into a high frequency (safety critical systems: drivetrain, drive-by-wire steering if applicable, braking, etc) and a low frequency system (door locks, sound system, windows, etc.) If you reverse engineer your vehicle's CAN protocol (each manufacturer uses their own codes on a standard CAN transport protocol), you can issue commands to it directly from your Pi.
- Some kind of CAN bus hack. They exist.
- He has a ford and hardware that can interact with openXC CAN2-2 see here: http://openxcplatform.com/vehicle-interface/hardware.html
- He's using bluetooth.
Ugh, have fun with the dependency issues. An easy alternative is to run a Unifi docker image. Currently running it from a Debian VM when needed but looking to move it to an alpine vmm on my OpenBSD APU2. The Linux image is the same as the cloud key so you can roll your own cloud key and use the unifi app.
Here is the image I use though there are others: https://hub.docker.com/r/jacobalberty/unifi/
The controller only officially supports ARM 32, and the mongoDB dependency only supports ARM 64.
In the end I I used a 64-bit Ubuntu, 64-bit mongoDB from the mongoDB repo, and downloaded the controller deb from the Unify site, which is apparently architect agnostic.
Can you go in more depth about this? How did you integrate it with the entertainment system, and what do specifically do you do with it?
Using the same technique, games can also be streamed to PlayStation 3 and original Xbox.
I added some additional support for Xlink Kai so that you can play LAN enabled games over the Pi’s WiFi connection by plugging a compatible game console into the Ethernet port of the Pi or by connecting to an access point that is auto created when a secondary WiFi dongle is attached to the Pi.
I learned that there are usually a hundred or so people in South America who play Halo 2 using Xlink Kai and this makes it very easy to connect to them for lag free multiplayer on original hardware. This feature also works on Nintendo Switch and PSP with a bit of extra work.
The project is open source and [available as a flashable SD image on Github](https://github.com/toolboc/psx-pi-smbshare).
Youtuber VersatileNinja recently published a detailed video on [how to get started with the project](https://youtu.be/Ilx5NYoUkNA) if anyone is interested in taking it for a spin.
Also, for the PS2, how does it compare with HDDLoader and an internal HDD. Relevant for games like Fatal Frame, where you have to open doors a lot, and on the DVD, it takes like 5-10 seconds, but on the HDD, it takes <1 second.
I didn't know we could steam to the Xbox OG, sounds pretty useful compared with the 1hr process to open it up and upgrade the HDD...
On PS2, the speed to access SMB is also slower than HDD at around 6 MB/s, however, this is nearly 6x the speed of the USB. Although it is slower than HDD access, it allows for playback of most games without stuttering.
Good point on calling attention to the OG Xbox, as I should have been more specific there. OG Xbox games can only be played back via HDD or Disc due to a limitation in the system itself, however, a number of emulators support SMB paths for playing backups.
I'd love it if modern consoles like the Xbox One and PS4 supported any sort of network share hosting for games. They do support USB drives and I thought about using Linux Gadget USB to emulate a USB drive and store the backing file on the network share. Previously that wouldn't have really worked with the Raspberry Pis as the full sized models did not support USB OTG. It does look like the new Pi4 supports USB OTG over the USB-C power port.
* Pie-hole and runs Nagios to collect information about things going on inside the network.
* One running a PiDP-11 (pdp 11/70 emulator) as well as providing MOP service to boot my DEC terminal multiplexor (it provides the boot image when the mux comes up)
* One is a stratum-1 time server using an Adafruit GPS module with PPS output. This because I got tired of both the reflection attacks and trying to manage ntp access from inside the house to outside.
* One runs RasPBX and talks to the VOIP phone that is my home "business" line.
* One sits on my electronics workbench and runs OpenOCD and allows BlackMagic Probes to export GDB as a service over the network. That lets me debug from anywhere without burning a USB port or adding additional software.
* One runs a very simple time series database and is the collector for IOT type devices that are sending various bits of information (energy use, temp, humidity, particulate levels, etc)
* One drives a display which has a dashboard of various things that the others are doing (like Nagios alerts, data trends etc) This one is a candidate for replacement as the 4K monitor would be nice here.
* One runs the waveforms live software from Digilent and hooks to an Analog Discovery 2 on my workbench. (scope, logic analyzer, etc)
EDIT: And its important to know that I boot them using the network and run them off NFS from a NAS box, the idea being that when they break I can easily swap the CPU part with a new one.
You might be able to run 4k display with an old RPi at about 8-10 Hz.
It might work fine. You can't know unless you try.
Partial screen updates might look weird, though.
This sounds cool and interesting. Can you elaborate on the setup and some of the ways you've used it?
From anywhere on the network when you start arm-none-eabi-gdb, you can type
And poof you're connected to what ever dev board OpenOCD id debugging. Then just load your .elf file (which flashes it) and start it and you are off to the races.Since the Black Magic Probe has its own gdb server you wrap it with nc(1) so on the Pi you run
and now you can connect to port 1234 on the debug server. At which point you're talking to the BMP. The ports are selectable so I typically set up as many ports as I need (depends on how many sessions I might be running) and write them on a boogie board[2].Of course I've got that particular RasPi mapped to the host name 'debug' for that reason, the one that runs the waveforms software is named 'instruments' :-)
[1] https://github.com/ntfreak/openocd.git
[2] https://myboogieboard.com/
Briefly put, I use the Glediator and Jinx! control software on an RPi, which communicates with an Arduino, which drives the LEDs. I put them in a permanently sealed box, water proof it as much as I possibly can, then cut some IP68 RGB LED strips to size and strap them to the rails of the board. I can remotely access the RPi via Wi-Fi to change lighting schemes, and there's a wireless charging coil inside the box which I can use to charge the batteries, so I never have to open it up after waterproofing. It's basically bomb-proof, and simple enough that I can teach a surf bum how to use it in about half and hour.
Start thinking of the RPi as more of a powerful microcontroller and suddenly a world of opportunities open up. I did my dissertation on it! Titled 'Home Automation and Monitoring using a Raspberry Pi', I basically used an RPi as a master node to control a bunch of Arduino slave nodes, using I2C protocol. With just two wires and an Pi, I run about 20 Arduino's all over my house, doing everything from feeding my fish, to monitoring air quality, to starting my coffee maker. I can access it remotely via Wi-Fi too, so I can do things like water my plants while I'm away. Aiming for a full Wallace and Grommet home in the near future.
Raspberry Pi's are awesome.
Alas, at the moment it's just a kick-starter pipe dream I'll never have the time to put into production.
[1]https://www.adventuresportsnetwork.com/sport/surf/night-surf...
Continue this thread — 2 more replies
All comments shown.
Couldn't load more comments. Check your connection and try again.