|
I'm trying to cook up some sort of alarm system for my garage, which has no power (and is infeasible to run power to). I was thinking of some sort of light beam or maybe magnetic sensor on the door, hooked up to a Raspberry Pi which also controls a siren of some kind. The reason I'm looking at a Pi for this is because of the ease of using a usb wifi/bluetooth dongle to connect to the Pi to enable/disable the alarm. The only experience I've had with electronics was some soldering to install a new PCB in an arcade stick, so I'm really out of my depth here. I do have experience writing software though. The first problem is power, how feasible is a battery powered Model A+? Could I run the Pi, the sensor and the wifi/bluetooth dongle off of rechargable batteries for at least say, 10 hours? Second problem is the siren, and it's related to the first I guess. The sort of sirens I'm after are 12v, the Pi takes 5v. With my lack of knowledge I don't know how I can run these off of a single power source. The siren itself won't need to run for long. Lastly, is the Pi even the best option for this? Would an Arduino with bluetooth or wifi be more suited? I didn't see any general electronics thread in the first 5 pages so I hope I'm in the right place.
|
# ¿ Aug 29, 2015 14:45 |
|
|
# ¿ Apr 25, 2024 00:50 |
|
Thanks, I'll go with the Arduino. Seems like the simpler solution. GSM functionality looks like a fun thing to add too.
|
# ¿ Aug 30, 2015 10:06 |
|
I've never found it too tricky to get a Pi setup entirely headless using Wi-fi, just add an empty ssh file and a minimal wpa_supplicant.conf file to the boot partition and you're away:code:
|
# ¿ Apr 28, 2019 19:45 |
|
I want to use Clang/LLVM to cross compile for the Raspberry Pi Zero W and no matter what I do, the binaries I produce wind up with illegal instructions. I'm using Clang 9 on Ubuntu and building with options like:code:
I've tried to stop the generation of these instructions, passing arguments through to llc: -mllvm -mattr=-vfp2, VFP2 being the set of instructions which VLDR belongs to. Still, they are generated. How do you lot cross compile stuff for Raspberry Pi Zeros? I've no problem producing binaries for later Pis with the Cortex CPUs using this method. ArcticZombie fucked around with this message at 21:03 on Mar 30, 2020 |
# ¿ Mar 30, 2020 20:47 |
|
Didn't work, but apparently this is a problem with the Clang/LLVM on Ubuntu 18.04 (it is running as a VM using multipass, not sure if it works native), because doing it straight up on my Mac produces binaries which work just fine.
|
# ¿ Mar 31, 2020 10:38 |
|
Another alternative, and the only one I’ve been satisfied with in a multi room setup, is running forked-daapd in conjunction with shairport-sync. I run forked-daapd on my NAS (a Pi4) and shairport-sync on Pi0Ws attached to dumb speakers. Forked-daap can also do local output, before I got the Pi4 it ran on a Pi3A directly attached to some dumb speakers.
|
# ¿ Mar 15, 2021 09:29 |
|
|
# ¿ Apr 25, 2024 00:50 |
|
ante posted:Does anyone actually... Like Raspberry Pis? I have a couple Zero Ws and a 3A with amplifier boards that I use to turn dumb passive speakers into a multi-room AirPlay setup, and a 4B as a mini NAS + a few services such as a media server and DNS-based ad-blocking. Installing a desktop OS on them is a mistake.
|
# ¿ Sep 5, 2021 11:25 |