Posts

Digital Photo Frame

What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

Have you ever got Photo frame on your desk or have you given photo frame to your parents or friends as a gift?

I guess you had it before or planning to do it later. 

 

Then what about making awesome digital photo frame at this time? 

This gonna be lots of fun and even unforgettable present to whom you're going to give. 

 

Let's get into it! 🙂

What we need

Here is the list we need to make Digital Photo Frame. 

 

  • Hardware Side
  1. Raspberry Pi with SD card
  2. Display - monitor or small LCD with controller board
  3. Wooden or plastic photo frame
  4. A few thick papers for making frame design better. 🙂
  5. Short HDMI cable to connect Raspberry Pi and Controller board

 

  • Software side
  1. Digital Photo frame raspbian image for easier work
  2. Google account (Google Photo)
  3. Some photos to show (from Google Photo)
  4. Configuration and Test!

 

How we do (Hardware)
  • Prepare photo frame and cut paper to make it fit to small monitor for better looking if needed

 

  • Connect monitor to controller board and put all the stuff into photo frame

 

  • Back of the photo frame, attach properly controller board and raspberry pi zero on it

 

  • Connect raspberry pi zero with controller board with HDMI ports

 

How we do (Software)

In software side, we're very lucky as Henric Andersson, he already releases periodically useful raspbian images. 

so we can use this image for easier steps, but there still are some configuration steps we need to do.

 

First of all, you should prepare Raspberry Pi with OS.

 

Please click the following button to look into other posts for prerequisite lessons.

 

Prepare RaspberryPi

 

but please note that we're going to use different OS image this time with his photoframe one.

 

Please click here to download the recent PhotoFrame image for Raspberry Pi.

(At current time, 2019 vesion available.)

 

so, now we're ready to boot our Raspberry Pi with Photo frame Image. Let's do initial setup then.

 

  1. Edit 'wifi-config.txt' for your wifi ssid and password
  2. Edit 'http-auth.json' or just leave if you want to use the default one. (By default the username is photoframe and the password is password)
  3. Boot and do initial setup
  4. Setting up Google Photo

For more details, you can check and follow the details here

Still shots Outcome

Home Automation – RFM69 Gateway Setup

What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

I believe you have already installed OpenHAB on your Raspberry Pi and also configured your Home Automation Server (OpenHAB) properly. Is this right to you? 🙂 

 

Then as next step, we should integrate RFM Gateway to your Raspberry Pi so that Home Automation Server can receive packets via RFM Gateway! 

 

If not, please click the below button to see how to install and configure Home Automation Server on your Raspberry Pi.

Home Automation

How we do (Hardware)

We need to connect RFM69 module and Raspberry Pi. 

It might depends on what kind of Raspberry Pi you have, but here i would like to explain with Raspberry Pi 2 Model B.

 

How we do (Software)

Please note that if you buy the kit, the included micro SD card has already pre-made image in it.

so you don't need to do anything. just insert it and play.

 

However, if not or you want to follow steps and learn how software parts works,

please find the enclosed documents or instruction for further details.

 


 

  • Sneak peek on Software part

 

First of all, you should prepare Raspberry Pi.

Please click these buttons to look into other posts for prerequisite learnings.

 

Prepare RaspberryPi

 

Once your Raspberry Pi is ready,

 

1. Connect the RFM69 to the Raspberry PI
2. Install Git core
3. Download WiringPi
4. Build WiringPi
5. Setup SPI interface, using raspi-config
6. Install Mosquitto and the development libraries
7. Clone the gateway
8. Compile the gateway
9. Launch the gateway
10. Install Daemon

 

The full details are explained in the enclosed docs. (HowToSetupRFMGateway.txt)

Still shots Outcome

LoRaWAN Gateway (TTN – TheThingsNetwork)


 

What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

Have you heard about LoRa, LoRaWan and LPWAN? 

 

What is LPWAN?

A low-power wide-area network (LPWAN) or low-power wide-area (LPWA) network or low-power network (LPN) is a type of wireless telecommunication wide area network designed to allow long range communications at a low bit rate among things (connected objects), such as sensors operated on a battery.

 

What is LoRa and LoRaWAN?

LoRa is a wireless data communication technology that uses a radio modulation technique that can be generated by Semtech LoRa transceiver chips.

The LoRaWAN protocol is a Low Power Wide Area Network (LPWAN) specification derived from LoRa technology standardized by the LoRa Alliance.

LoRa and LoraWAN belong to the category of non-cellular LPWAN wireless communication network protocols and players, operating in the license-free spectrum. Other technologies that operate in the license-free frequency bands include Sigfox, Ingenu and several more.

 

LoRa and LoRaWAN Network Topology

The LoRaWAN networks laid out in a star-of-stars topology have base stations relaying the data between the sensor nodes and the network server.

Communication between the sensor nodes and the base stations goes over the wireless channel utilizing the LoRa physical layer, whilst the connection between the gateways and the central server are handled over a backbone IP-based network.

 

 

End Nodes transmit directly to all gateways within range, using LoRa.
Gateways relay messages between end-devices and a central network server using IP.

Network servers can be cloud based platform solutions like The Things Network (TTN) or LoRIOT. The network servers connect to the gateways and de-dup data packets, and then routes it to the relevant application.

 

We're able to make Gateway, End nodes, but going to use TTN(TheThingsNetwork) as Network Server and Application Server. 🙂

 

so at this post, Let's make a Gateway first!

 

How we do (Hardware)

 

  • Connection between LoRaWAN Gateway module and LoRaWAN Converter board

 

 

  • Connection between Raspberry Pi 3 and the above (LoRa Gateway module + LoRa Converter board)

 

 

  • Connect  Antenna to LoRaWAN Gateway module

  • Connect GPS antenna to LoRaWAN Converter board

  • Connect Power to Raspberry Pi 3
How we do (Software)

  • Sneak peek on Software part

 

First of all, you should prepare Raspberry Pi.

Please click these buttons to look into other posts for prerequisite learnings.

 

Prepare RaspberryPi

 

Once your Raspberry Pi is ready,

 

1. update and upgrade
2. pre-steps on raspberry pi
3. Install Git
4. Install TTN packet forwarder
5. run script and test (debugging)

 

The full details are explained in the enclosed docs. (HowToSetupGateway.txt)

Still shots Outcome

The last step, you need to go The Things Network and complete sign up.

and then create your own gateway setup and register. 

Here are some screenshots of mine. 🙂

 

As you can see from the screen shots, there are nothing in the Gateway traffic. 

This is correct because i didn't add any node(end node) yet which can transmit some data to Gateway. 

 

so , now it's time to go next post to add end node to make our Gateway useful! 🙂

Once you add end nodes to your gateway, then we'll be able to see some data coming in like the following. 

 

 

Raspberry Pi – Rover v.1 (Button)


What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

Have you heard about Rover? 

You might see some news or photos that Rover is exploring other planet. 🙂

From this project, we start to make our own Rover!

 

This is really first version of Raspberry Pi based Rover project in my blog.

I'm going to work on another Rovers with improved features soon, but this rover has very simple User Interface to control it.

It's left/right/up/down arrows! 🙂 Let's get into it!

 

Let's get inside!

How we do (Hardware)

Please carefully look at the following wiring diagram. 

I didn't draw the power source of Raspberry Pi zero w, but you can use it any source which has 5V input voltage.

The recommended input voltage is 5V, and the recommended input current is 2A.

 

How we do (Software)

Please note that if you buy the kit, the included micro SD card has already pre-made image in it.

so you don't need to do anything. just insert it and play.

 

However, if not or you want to follow steps and learn how software parts works,

please find the enclosed documents or instruction for further details.

 


 

  • Sneak peek on Software part

 

First of all, you should prepare Raspberry Pi.

Please click these buttons to look into other posts for prerequisite learnings.

 

Prepare RaspberryPi

 

Once your Raspberry Pi is ready,

 

1. update and upgrade
2. pip installation
3. flask installation
4. git installation & git clone repo
5. run script and test

 

The full details are explained in the enclosed docs. (Rover_v1_HowWeDo_SW.txt)

Still shots Outcome

As you can see from the outcome images or movies, you can control your Rover easily with your web browser.

 

In this project, you can use buttons for left/right/forward/backward to control your rover.

I hope you find lots of fun from this project. 🙂

 

This slideshow requires JavaScript.

Raspberry Pi – Rover v.2 (Touch)


What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

This is 2nd version of Raspberry Pi based Rover project.

 

In this project, we can explorer anywhere with our Rover. 

We're using actually the same hardware as the last Rover project, but this time there is a difference on User Interface.

User Interface is rectangle touch screen on browser where you can control Rover.

 

Let's get inside!

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included micro SD card has already pre-made image in it.

so you don't need to do anything. just insert it and play.

 

However, if not or you want to follow steps and learn how software parts works,

please find the enclosed documents or instruction for further details.

 


 

  • Sneak peek on Software part

 

First of all, you should prepare Raspberry Pi.

Please click these buttons to look into other posts for prerequisite learnings.

 

Prepare RaspberryPi

 

Once your Raspberry Pi is ready,

 

1. update and upgrade
2. pip installation
3. flask installation
4. git installation & git clone repo
5. run script and test

 

The full details are explained in the enclosed docs. (Rover_v2_HowWeDo_SW.txt)

Still shots Outcome

As you can see from the outcome images or movies, you can control your Rover easily with your web browser.

Unlike the last Rover we made, this version of Rover can be controlled by your touch.

I hope you find lots of fun from this project. 🙂

This slideshow requires JavaScript.

 

Raspberry Pi – Rover v.3 (Cam + Servo + Button)


What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

This is 3rd version of Raspberry Pi based Rover project.

 

In this project, we can see things via Raspberry Pi camera and can move it via Servo motors.

 

Moreover, User Interface is left/right/up/down button on browser where you can control Rover.

 

Let's get inside!

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included micro SD card has already pre-made image in it.

so you don't need to do anything. just insert it and play.

 

However, if not or you want to follow steps and learn how software parts works,

please find the enclosed documents or instruction for further details.

 


 

  • Sneak peek on Software part

 

First of all, you should prepare Raspberry Pi.

Please click these buttons to look into other posts for prerequisite learnings.

 

Prepare RaspberryPi

 

Once your Raspberry Pi is ready,

 

1. update and upgrade
2. pip installation
3. flask installation
4. git installation & git clone repo
5. Enable pi cam and test
6. Install Motion
7. Configure Motion
8. Test your motion service installation
9. Run script and test

 

The full details are explained in the enclosed docs. (Rover_v3_HowWeDo_SW.txt)

Still shots Outcome

As you can see from the outcome images or movies, you can control your Rover easily with your web browser.

You can also control camera using servo motors. 

Moreover, you should be able to see things which is hidden or very far via Rover's cam. 🙂 

What do you think? Excited enough?

This slideshow requires JavaScript.

 

 

 

Raspberry Pi – Rover v.4 (Cam + Servo + Touch)



What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

This is 4th version of Raspberry Pi based Rover project. most recent version. 🙂

 

In this project, we can see things via Raspberry Pi camera and can move it via Servo motors.

 

Moreover, User Interface is rectangle type touch area on browser where you can control Rover.

 

Let's get inside!

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included micro SD card has already pre-made image in it.

so you don't need to do anything. just insert it and play.

 

However, if not or you want to follow steps and learn how software parts works,

please find the enclosed documents or instruction for further details.

 


  • Sneak peek on Software Part

First of all, you should prepare Raspberry Pi.

Please click these buttons to look into other posts for prerequisite learnings.

 

Prepare RaspberryPi

 

Once your Raspberry Pi is ready,

 

1. update and upgrade
2. pip installation
3. flask installation
4. git installation & git clone repo
5. Enable pi cam and test
6. Install Motion
7. Configure Motion
8. Test your motion service installation
9. Run script and test

 

The full details are explained in the enclosed docs. (Rover_v4_HowWeDo_SW.txt)

Still shots Outcome

This slideshow requires JavaScript.

 

Home-made CCTV using Raspberry Pi and MotionEyeOS

What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

Have you thought about the simple, tiny and awesome house surveilance camera you can easily make with your Raspberry Pi?

 

We’re just going to do that, so bare with me. ?

How we do (Hardware)

Please insert Pi camera’s the other end into Pi’s camera slot.

 

please note the pin order is important so carefully connect it in right order! ?

 

There are some pictures for raspberry pi B and raspberry pi 2 B.

 

  • Connect with Raspberry Pi Model B

 

  • Connect with Raspberry Pi 2 Model B

How we do (Software)

First of all, you should prepare Raspberry Pi with OS.

 

Please click the following button to look into other posts for prerequisite lessons.

 

Prepare RaspberryPi

 

but please note that we're going to use different OS image this time called 'MotionEyeOS'.

 

Please click here to download the recent MotionEyeOS image for Raspberry Pi.

(At current time, motioneyeos-raspberrypi2-20180627.img.xz if you're using Raspberry Pi 2)

 

so, now we're ready to boot our Raspberry Pi with MotionEyeOS Image. Let's do initial setup then.

 

  1. Log into MotionEyeOS
  2. Initial Set-up

 

1.Log into MotionEyeOS

 

We first need to find the IP address of Raspberry Pi. 

There are a few ways to do it. 

 

  • In your router, you can examine DHCP table for Raspberry Pi
  • You can connect to Monitor via HDMI and see what ID address is being used in wifi connection
  • You can connect to Monitor via HDMI and type 'sudo ifconfig' in terminal window

 

However, if you still can't get it, just google it and see how the people are doing it.

 

2. Initial Set-up

 

  • When you type IP address of Raspberry Pi at browser, you can see the Login page to MotionEyeOS.

 

The username is admin, and there is no password

 

  • You should see a live image from the camera at this point like the following.

 

 

  • Now, Let's configure other settings for MotionEyeOS.

 

 

  • General Settings

 

I'd recommend to change password for Admin for security reason.

 

Turn ON 'Advanced Settings' and see what options we can change. 

 

You can input 'Surveillance Username and Password' as well.

 

Set the Time Zone and Hostname if you want. It's totally up to you!

 

 

  • Network

 

In this case(Raspberry Pi zero), IP address was automatically picked up as you know. 

 

so you can see what IP address the Raspberry Pi is using from this page.

 

 

  • The other options

 

You can explore the other options such as 'Services', 'Expert Settings', etc..

 

but  this is pretty much initial setup for MotioneyeOS.

 

Thanks for reading! 🙂 

Still shots Outcome

 

 

Simple house guard using Raspberry Pi



What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

Have you thought about the simple, tiny and awesome house protector you can easily make with your Raspberry Pi?

We're just going to do that, so bare with me. 🙂

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included micro SD card has already pre-made image in it.
so you don't need to do anything. just insert it and play.

 

However, if not or you want to follow steps and learn how software parts works,
please find the enclosed documents or instruction for further details.

 


  • Sneak peek on Software Part

First of all, you should prepare Raspberry Pi.

Please click these buttons to look into other posts for prerequisite learnings.

 

Prepare RaspberryPi

 

Once Raspberry's prepared, we need to install pygame and git packages.

 

1. pygame install
2. git install
3. clone the repository.
4. Run python script

 

Now, our RaspberryPi is ready to detect any movement with PIR sensor! 🙂

 

The full details are explained in the enclosed docs. (HouseGuard_HowWeDo_SW.txt)

Still shots Outcome

There can be other projects by using this.

For example, you can use similar things as your security system by putting this at your house doors or something. 🙂 It's all up to you!

 

 

How to use Raspberry Pi Camera via Python

What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

There are lots of ways to install and use Pi camera, but at this post we're going to handle this with Python!

How we do (Hardware)

Please insert Pi camera's the other end into Pi's camera slot.

 

please note the pin order is important so carefully connect it in right order! 🙂

 

There are some pictures for raspberry pi B and raspberry pi 2 B.

 

  • Connect with Raspberry Pi Model B

 

  • Connect with Raspberry Pi 2 Model B

 

How we do (Software)
  1. Enable Pi camera via Raspberry Pi Configuration
  2. Testing taking still image and recording working
  3. Install Python drivers for Pi cam (http://picamera.readthedocs.io/en/release-1.9)
  4. Sample Python script to test Pi cam

  • Enable Pi camera via Raspberry Pi Configuration

 

sudo raspi-config

and choose 'Enable Camera', enter and finish.

 


  • Testing taking still image and recording working

 

To test capturing still image,

raspistill -o testpicture.jpg

To test video capturing,

raspivid -o testvideo.h264



  • Install Python drivers for Pi cam (http://picamera.readthedocs.io/en/release-1.9)

 

Now, we're ready to install Python drivers

sudo apt-get install python-picamera

if you're working on Python3,

sudo apt-get install python3-picamera

More information and options are available at   PICAMERA

 


  • Sample Python script to test Pi cam

 

You can write and test Python script with Raspberry Pi Camera from now on.

 

Start a preview for 10 secs

import time import picamera 
camera = picamera.PiCamera()

try:
camera.start_preview()
time.sleep(10)
camera.stop_preview()
finally:
camera.close()

Capturing to a file

import time 
import picamera

with picamera.PiCamera() as camera:
camera.resolution = (1024, 768)
camera.start_preview()
# Camera warm-up time
time.sleep(2)
camera.capture('sampleImage.jpg')

Recoding video to a file

import picamera 

with picamera.PiCamera() as camera:
camera.resolution = (640, 480)
camera.start_recording('testing_video.h264')
camera.wait_recording(60)
camera.stop_recording()

There are tons of useful examples here at    PICAMERA

 

please look into it!

Still shots Outcome

We've just installed and learned how to use Pi camera basically.

 

so now fully ready to extend your projects with this raspberry pi with awesome camera!