Enable SSH in Kali (also have to enable root login – understand the security risks or use another user). The Pi Zero will be running headless, so we need to SSH into it. If you are using MotionEyeOS or PiCamera, remote in to the Pi and skip to step 3. Sounds complicated, right? Well, let’s walk through it step-by-step using the PiCamera script. We then take that sound and send it via SSH to the sound player on the Kali Linux system.Īrecord -D plughw:1,0 -f S16_LE | ssh -C paplay –format s16neĪrecord takes input from the Raspberry Pi microphone, logs into the Kali Linux system via SSH and pipes the sound directly into Kali’s sound player. I chose Kali Linux as the remote system as it has both pre-installed.įor this to work we need to record from the Pi Zero using the “arecord” command. The remote computer you use as a listener will need to have SSH installed and the program “paplay”. Remote AudioĪs mentioned, I just used the low-profile microphone for remote audio. Both of these programs are discussed in earlier articles. This would give you more recording and even motion detect options. I just used PiCamera, as it was what I currently had installed on the Pi Zero, but you could just as easily use MotionEyeOS or RPI Camera. When the program is executed, just browse to the Pi Zero’s IP address, and port 8000 (IP Address:8000), and you should see the video remotely: Two – I rotated the camera 90 degrees so it would display properly.One – I bumped up the resolution from the default 640×480.I used it the exact same way, but I did make two modifications to the code. Remote Videoįor remote video from the Pi Zero I just used the Python PiCamera remotecam.py script we used in the previous article. Note: The microphone works great on the Pi 3 as is, but you will need an adapter to get it to fit the micro-USB port on the Pi Zero W. This low-profile microphone works great without the need to install any drivers: What you can’t see in the picture above is the mini Kinobo USB Microphone I have installed in the micro USB port. I then covered the glass side of the back board with black poster board and cut a hole for the camera lens. The cardboard I used was three layers thick, so I cut space for the assembly through the first two layers, and only cut a whole for the camera in the last cardboard layer that rested against the mirror. I took a Pi Zero W and cut a hole for it in the back cardboard of the Magic Mirror. As such this is just for instructional purposes only, and it is not a build guide. The Raspberry Pi v2 camera (and the Pi Zero W at times) can become very hot when in use, so encasing them in cardboard may not be the safest thing in the world to do. But why stop there? Add a USB microphone to the Pi Zero W and we can also have remote sound capabilities as well.ĭisclaimer: This is a Proof of Concept build, not a DIY article. Smart Mirrors or “Magic” Mirrors are nice, but wouldn’t it be nice if it could also keep an eye out on your house why you were out? Or, like in my case, monitor the puppy from the other room? Well, if we combine the last couple projects that we covered, you could!Ĭombining an Android Magic Mirror with a Pi Zero W surveillance camera adds remote video capabilities to your unit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |