Thursday, July 28, 2016

Raspberry Pi for Secret Agents - Third Edition

Raspberry Pi for Secret Agents - Third Edition

Key Features
  • Turn your Raspberry Pi into a multi-purpose secret agent gadget for audio and video surveillance, Wi-Fi exploration, or playing pranks on your friends
  • Detect an intruder on camera or with sensors and set off an alarm or receive messages to your phone
  • Find out what the other computers on your network are up to and make yourself anonymous on the Internet
  • This book has been updated for new additions to your toolkit featuring the tiny, recently released Raspberry Pi Zero board
Book Description
This book is for all mischievous Raspberry Pi owners who'd like to see their computer transform into a neat spy gadget to be used in a series of practical pranks and projects. No previous skills are required to follow along, and if you're completely new to Linux, you'll pick up much of the basics for free.

We'll help you set up your Raspberry Pi Zero , Raspberry Pi 2 and Raspberry Pi 3 and guide you through a number of pranks and secret agent techniques that are so inconspicuous yet high on mischief. You'll learn how to configure your operating system for maximum mischief and start exploring audio, video, or Wi-Fi techniques. We'll show you how to record, listen, or talk to people from a distance and how to set up your own phone network. Then, you'll plug in your webcam and set up a motion detector with an alarm and find out what the other computers on your Wi-Fi network are up to. Once you've mastered the techniques, we'll combine them with a battery pack and GPS for the ultimate off-road spy kit.

What You Will Learn
  • Install and configure the Raspbian Jessie operating system for maximum mischief
  • Detect an intruder with motion detection or a laser trip wire and set off an alarm
  • Listen in to conversations from a distance over Bluetooth
  • Distort your voice in weird and wonderful ways
  • Track the Pi's whereabouts using GPS
  • Connect your Pi to the mobile Internet using a 3G dongle and make yourself anonymous on the net
  • Display secret messages and codes to fellow agents on a LED display
About the Author
Matthew Poole is a systems engineer based near Southampton on the south coast of England, with over 20 years of industry experience. After graduating in electronics and communications engineering, he went on to train as and become an air traffic engineer for Civil Aviation Authority, UK, working on microprocessor-based control and communications systems.

Later, he became a software architect and mobile technology specialist, working for several consultancies and global organizations in both hands-on architecture and product-management roles .

He is now a partner at Connecting Objects, a boutique systems consultancy focusing on the design of Bluetooth and other wireless-based IoT systems, taking ideas from concept to prototype. He is also the Director of Technology for Mobile Onboard, a leading UK-based transport technology company specializing in bus connectivity and mobile ticketing systems.

He is also the author of Building a Home Security System with Raspberry Pi, Packt Publishing.

You can find his blog at http://cubiksoundz.com and LinkedIn profile at https://www.linkedin.com/in/cubik, or you can reach him on Twitter at @cubiksoundz.

Table of Contents
  1. Getting up to No Good
  2. Audio Antics
  3. Webcam and Video Wizardry
  4. Wi-Fi Pranks – Exploring Your Network
  5. Taking Your Pi Off-Road
  6. Detecting and Protecting Against Your Enemies

Sunday, July 24, 2016

Saturn@Raspberry Pi NoIR Camera V2/Nikkor AF 300mm f4



Saturn photo and video by Raspberry Pi NoIR Camera V2 x Nikkor AF 300mm f4, connected with Canon EF Lens adapter for Raspberry Pi and Nikon-EOS adapter.


Remark about aperture:
Most modern lens have aperture controlled by camera body, no aperture ring on lens body. The aperture is set minimum without camera. So, make sure your lens have manual aperture control on lens body.

More:
The Moon and Saturn@RPi NoIR Camera V2/Nikkor AF 300mm f4 - 2017-06-08

Related:
Saturn, Jupiter & Mars@WaveShare Pi Camera/Nikkor AF 300mm f4
The Moon@WaveShare Pi Camera/Nikkor AF 300mm f4
Mount Raspberry Pi Camera Module to telescope (with sample video of the Moon)


Friday, July 22, 2016

No brand made in China Raspberry Pi NoIR Camera Module

It's a No brand made in China Raspberry Pi NoIR Camera Module:






Basically it have the same specification of official Raspberry Pi NoIR v1.3, with different lens and lens housing. Come with lens marked "3.6mm IR 1080P". User can adjust focus and have to adjust focus. The lens and lens housing is in m12-mount, user can change to other lens easily, and even replace other housing of c/cs-mount, to use other lens using on cctv.

About replacing lens housing:
The center-to-center distance of the mounting holes is ~18mm, It's easy to find replacement of m-12 mount (or c/cs-mount). The official Raspberry Pi Camera Module is ~21mm, I can't find any replacement, or adapter. But if you are going to replace the lens and housing, you have to concern the height of the housing. There are many lens, may have different lens-to-focus plane distance.


Here is another Made in China Raspberry Pi Camera Module, but with WaveShare brand name: Waveshare Raspberry pi Camera Module with Fisheye Lens (video and photo samples)

Thursday, July 21, 2016

Saturn, Jupiter & Mars@WaveShare Pi Camera/Nikkor AF 300mm f4

Photos and video of Saturn, Jupiter & Mars, by WaveShare Pi Camera/Nikkor AF 300mm f4. Not too good, just a trial.

Saturn

Jupiter

Mars


Gears:
- WaveShare Raspberry Pi Camera Module: It's a made in China Raspberry Pi Camera Module using the same 5-megapixel sensor of Official Raspberry Pi Camera Module 1.3, OV5647. But with a easy replace lens housing.
- CS Lens housing, to replace the original lens housing of the Camera Module, to change it to CS-mount. (The original house is M12 mount)
- AI-CS adapter, to connect Nikon (or Nikkor) lens to CS mount.
- Nikkor AF 300mm f4 ED tele lens.






Related:
Pi telecamera - WaveShare Raspberry Pi Camera module connect to 300mm tele lens
The Moon, by Pi telecamera
Saturn@Raspberry Pi NoIR Camera V2/Nikkor AF 300mm f4

Wednesday, July 20, 2016

Check the Vendor ID and Product ID of attached USB devices in Raspberry Pi/Raspbian

To check the Vendor ID and Product ID of attached USB devices in Raspberry Pi/Raspbian Jessie (and also other Linux), we can use the commands dmesg and lsusb.


This video show how to do it in case Arduino Uno is connected to Raspberry Pi 2/Raspbian jessie. Also show the device name, ttyACM0.



Thursday, July 14, 2016

Pi telecamera - WaveShare Raspberry Pi Camera module connect to 300mm tele lens



This post show how to build a Raspberry Pi Telescope using:
- Nikkor AF 300mm f4 ED
- AI-C mount adapter (Nikkor Lens to C-mount)
- C-M12
- WaveShare Raspberry Pi Camera Module

Why use WaveShare Camera Module, not official?
Because WaveShare Camera Module build with M12 mount, come with removable fisheye lens. It's easy to connect to any DSLR lens with adapter.




Here show the resulting photos:




Compare with the photo by the same lens (Nikkor AF 300mm f4 ED) on Nikon DSLR D700


More samples:
- The Moon
Saturn, Jupiter & Mars

Sunday, July 10, 2016

Thursday, July 7, 2016

Waveshare Raspberry pi Camera Module with Fisheye Lens (video and photo samples)


  • It's not official Raspberry pi Camera Module.
  • It's Waveshare Raspberry pi Camera Module with Fisheye Lens/5 MP OV5647 Sensor/adjustable focus length, compatible wih Raspberry Pi Camera Module.









The center-to-center distance of the mounting holes is ~20mm, It's easy to find replacement of m-12 mount or c/cs-mount. The official Raspberry Pi Camera Module is ~21mm,

Related:
Pi telecamera - WaveShare Raspberry Pi Camera module connect to 300mm tele lens


Related:
No brand made in China Raspberry Pi NoIR Camera Module

Wednesday, July 6, 2016

raspistill error while loading shared libraries: libbrcmGLESv2.so

Today, I re-install Raspberry Pi 2 with Raspbian Jessie, and update software/firmware:
$ sudo apt update
$ sudo apt upgrade
$ sudo rpi-update

And try to take still photo using raspistill, error reported while loading libbrcmGLESv2.so:
raspistill: error while loading shared libraries: libbrcmGLESv2.so: cannot open shared object file: No such file or directory


But I still can take photos using Python.

I still can record video using raspivid, but cannot play with omxplayer, with error of:
/usr/bin/omxplayer.bin: error while loading shared libraries: libbrcmGLESv2.so: cannot open shared object file: No such file or directory


I guest it is related to updated firmware. Anybody know how?


Updated@2016-07-07: This problem self-fixed by updating firmware with:
$ sudo rpi-update

Tuesday, July 5, 2016

Waveshare 3.5" 320*480 Raspberry Pi LCD Display Module


It's a Waveshare Raspberry Pi LCD Display Module 3.5inch 320*480 TFT Resistive Touch Screen Panel using SPI Interface. The seller provide pre-built image can boot Raspberry Pi directly, and also driver for for Raspbian Jessie.

This video show how to install driver on Raspberry Pi 2 running current Raspbian Jessie, 2016-05-27-raspbian-jessie.


As usually, setup your Raspberry Pi with Raspbian Jessie image.
Update software and firmware:
$ sudo apt update
$ sudo apt upgrade
$ sudo rpi-update
(Reboot if need)

The web page http://www.waveshare.net/wiki/3.5inch_RPi_LCD_(A) provide download link of the driver, currently 树莓派LCD驱动:160520.

树莓派驱动----支持2016-05-10-raspbian-jessie镜像,支持Raspberry pi 3 model B 该驱动不支持2016-05-10之前的raspbian镜像
(Raspberry Pi driver - support 2016-05-10 Raspbian Jessie image, support Raspberry Pi 3B.
This driver NOT support image before 2016-05-10)

Un-pack the downloaded file, and run the installer. For 3.5 inch display, enter:
$ ./LDC35-show

The Raspberry Pi will reboot, and display on the 3.5" LCD Display. ~ Finished, so easy.




Stream video from Raspberry Pi 3 + Camera Module V2, play in Windows 10/VLC Media Player and Android/VideoView.

I have old posts of "Stream Raspberry Pi Camera Module video using raspivid and vlc" and "Play stream video (from Raspberry Pi) on Android VideoView". Somebody reported problem, so I re-test on Raspberry Pi 3 + Camera Module V2 NoIR + Raspbian Jessie, play in Windows 10 + VLC Media Player and Android App with VideoView.

The steps and Android example code refer to the original post listed above.

Stream video from Raspberry Pi 3 + Camera V2, play in Windows 10/VLC Media Player:



Stream video from Raspberry Pi 3 + Camera V2, play in Android/VideoView:



Download APK HERE to test on Android devices.

Remark:
- Sometimes the video cannot be played on Windows VLC Media Player/Android VideoView. It seem that it is caused by Raspberry Pi/vlc, i have no idea currently.
- It have few seconds delay in the stream video.