Posts

LoRaWAN End node – Smart Lighting


 

 

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

If you haven't got any Gateway set-up or around your,  please click the following button to see how to make LoRaWAN Gateway via The Things Network.

(In case of you can find any gateways around you, you can also just use that Gateway to trasmit your end node data.)


LoRaWAN Gateway

 

As you can see from other community sites (i.e TheThingsNetwork) or commercial websites (i.e quite a lot),

There are tons of commercial end devices (including Gateway) available out there and you can buy it for your business or something.

 

But the cost is a bit high and might be burden on people who just want to learn electronics or are hobbyist.

I believe many kinds of LoRa End device can be DIY-made.

 

So, here my post has a reason to exist. 🙂

 

At this post, we're going to make another LoRa End Device for 'Smart Lighting'.

 

This is actually the extension of Smart Home projects.

However, there are difference in hardware, technologies and distance, too!

 

Let's get into it! 🙂

How we do (Hardware)

How we do (Software)

Once you've prepared all the necessary parts such as Arduino pro mini, RFM95W, LED strip and cables, and next step is to make your Arduino pro mini to be uploadable.

 

The upload can be done via 'FTDI Basic Breakout Board', but I didn't mention details here.

If you need how-tos, just click the following button to see how you can upload program into Arduino pro mini.

 

Prepare Pro Mini

 


  • Sneak peek on Software part

 

Once your Pro mini is ready,

 

1. Include some necessary headers

2. Specify Pins and Pin mapping being used

3. Implement some functions to get distance via ultrasonic sensor attached to device

4. Enable Serial and LMIC and initialization

Still shots Outcome
  • Depends on the degree of brightness and darkness, LED strip is turned ON and OFF automatically.

 

 

  • Currently there are 4 status LED Light can be set automatically

 

  • and some outcomes in TTN console where we can check the status of smart lighting. 🙂

LoRaWAN End node – Smart Parking


 

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

If you haven't got any Gateway set-up or around your,  please click the following button to see how to make LoRaWAN Gateway via The Things Network.

(In case of you can find any gateways around you, you can also just use that Gateway to trasmit your end node data.)


LoRaWAN Gateway

 

As you can see from other community sites (i.e TheThingsNetwork) or commercial websites (i.e quite a lot),

There are tons of commercial end devices (including Gateway) available out there and you can buy it for your business or something.

 

But the cost is a bit high and might be burden on people who just want to learn electronics or are hobbyist.

I believe many kinds of LoRa End device can be DIY-made.

 

So, here my post has a reason to exist. 🙂

Let's make the simple LoRa End Device at this time and it's for 'Smart Parking'!

 

I'd like to explain some background story before I go on.

When you park your car in the shopping centre, you might be able to see some flat and small device attached to the ground in the parking area.  Have you seen them?

There are various kinds of commercial parking detection sensor available already, but there are a few differences between them and what we're going to make here.

 

First of all, I'd like to say the Hardware.

The commercial ones are using dual methods such as magnetic field and RSSI.

For robustness of their product, they might have to use dual method to manage smart parking I think. 🙂

 

However, we're going to use simple sensor such as Ultrasonic sensor. so we can calculate the distance from sensor to , for example, your car by placing this end node in your garage or outside wall.

(I don't recommend your device on the ground like commercial ones as that gonna be broken soon! 🙂 )

 

I might be able to make the same hardware as commercial one's using later, but at this time I'd like to stick to more suitable ones for DIYers.

 

Secondary, Different model or Applications

We're going to use and utilize the very good established Network, whch is TTN(TheThingsNetwork) on our projects. TTN is quite common and famous world-wide as you already know.

However, there are some difference between technologies and business models when it comes to commercial products.

 

For example, LoRa VS Sigfox.

For years, Sigfox and LoRa were the major competitors in the LPWAN space. Their business models and techologies are quite different.  you can find a few product using Sigfox on the market easily.

 

so, good to know!  It's time to go!

How we do (Hardware)

How we do (Software)

Once you've prepared all the necessary parts such as Arduino pro mini, RFM95W, Ultrasonic sensor and cables, and next step is to make your Arduino pro mini to be uploadable.

 

The upload can be done via 'FTDI Basic Breakout Board', but I didn't mention details here.

If you need how-tos, just click the following button to see how you can upload program into Arduino pro mini.

 

Prepare Pro Mini

 


  • Sneak peek on Software part

 

Once your Pro mini is ready,

 

1. Include some necessary headers

2. Specify Pins and Pin mapping being used

3. Implement some functions to get distance via ultrasonic sensor attached to device

4. Enable Serial and LMIC and initialization

Still shots Outcome

LoRaWAN End node – GPS Tracker


 

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

Have you done or built your own Gateway from previous post?

then Now It's time to make end nodes! 

 

If not, you just need to click the following button to see how to make LoRaWAN Gateway.

(In case of you can find any gateways around you, you can also just use that Gateway to trasmit your end node data.)

 

LoRaWAN Gateway

 

There are lots of and many kinds of LoRaWAN nodes (can be purchased) out there as tons of companies are making commercial products for their profits these days.

However, we're going to make one of end nodes by using cheaper solution at this blog. 🙂

 

What we're trying to make is the kind of Tracking device.  so what are we tracking? 🙂

Whatever, whoever actually everything if we can attach this end node on.

 

Many people are using Tracking Device, so called 'Tracker' or 'Asset Tracker' for their important things or people.

This can be older people, dog or cat, even your car ...

 

Think about this situation. you have a dog , but she disappeared all of sudden. so what can you do?

If you have already attached any tiny tracking device to her collar, then you're on luck!

 

I hope this post would be helpful to make your own end nodes.

How we do (Hardware)

 

How we do (Software)

Once you've prepared all the necessary parts such as Arduino pro mini, RFM95W, GPS module and cables, and next step is to make your Arduino pro mini to be uploadable.

 

The upload can be done via 'FTDI Basic Breakout Board', but I didn't mention details here.

If you need how-tos, just click the following button to see how you can upload program into Arduino pro mini.

 

Prepare Pro Mini

 


  • Sneak peek on Software part

 

Once your Pro mini is ready,

 

1. Include some necessary headers

2. Specify Pins and Pin mapping being used

3. Implement some functions to get coordinates

4. Enable Serial and LMIC and initialization

Still shots Outcome

 

Connect wires : Arduino Pro Mini, RFM95W module and GPS module.

 

 

Once we finished connection , then let's power it. 

and go to TTN console to see GPS datas are coming in!!! 🙂

 

 

 

Home Automation – End Node – RFM69 – GPS

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

Now, we're going to make GPS sensor node using RFM69 module.

 

but please note you should have RFM Gateway Setup first in your OpenHAB Configuration.

If not, just click the below button for setting up RFM Gateway.

 

OpenHAB Gateway

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included Arduino Uno has been uploaded with code already.

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 know how to upload sketch on Arduino Uno.

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

 

HowToUpload

 

Once your Arduino is ready,

 

1. Define variables for GPS module
2. Set up Pins and modes
3. Radio initialization
4. Read Data from GPS module
5. Send data via Radio packet

 

The full details are explained in the enclosed docs.

Still shots Outcome

Home Automation – End Node – RFM69 – Ultrasonic sensor

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

Now, we're going to make Ultrasonic Sensor node using RFM69 module.

 

but please note you should have RFM Gateway Setup first in your OpenHAB Configuration.

If not, just click the below button for setting up RFM Gateway.

 

OpenHAB Gateway

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included Arduino Uno has been uploaded with code already.

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 know how to upload sketch on Arduino Uno.

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

 

HowToUpload

 

Once your Arduino is ready,

 

1. Define variables for Ultrasonic Sensor
2. Set up Pins and modes
3. Radio initialization
4. Read Data from Ultrasonic sensor
5. Send data via Radio packet

 

The full details are explained in the enclosed docs.

Still shots Outcome

Home Automation – End Node – RFM69 – Sound sensor

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

Now, we're going to make Sound Sensor node using RFM69 module.

 

but please note you should have RFM Gateway Setup first in your OpenHAB Configuration.

If not, just click the below button for setting up RFM Gateway.

 

OpenHAB Gateway

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included Arduino Uno has been uploaded with code already.

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 know how to upload sketch on Arduino Uno.

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

 

HowToUpload

 

Once your Arduino is ready,

 

1. Define variables for Sound Sensor
2. Set up Pins and modes
3. Radio initialization
4. Read Data from Sound sensor
5. Send data via Radio packet

 

The full details are explained in the enclosed docs.

Still shots Outcome

Home Automation – End Node – RFM69 – Reed Switch

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

Now, we're going to make Reed Switch node using RFM69 module.

 

but please note you should have RFM Gateway Setup first in your OpenHAB Configuration.

If not, just click the below button for setting up RFM Gateway.

 

OpenHAB Gateway

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included Arduino Uno has been uploaded with code already.

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 know how to upload sketch on Arduino Uno.

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

 

HowToUpload

 

Once your Arduino is ready,

 

1. Define variables for Reed Switch Sensor
2. Set up Pins and modes
3. Radio initialization
4. Read Data from Reed Switch sensor
5. Send data via Radio packet

 

The full details are explained in the enclosed docs.

Still shots Outcome

Home Automation – End Node – RFM69 – PIR Sensor

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

Now, we're going to make PIR Sensor node using RFM69 module.

 

but please note you should have RFM Gateway Setup first in your OpenHAB Configuration.

If not, just click the below button for setting up RFM Gateway.

 

OpenHAB Gateway

 

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included Arduino Uno has been uploaded with code already.

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 know how to upload sketch on Arduino Uno.

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

 

HowToUpload

 

Once your Arduino is ready,

 

1. Define variables for PIR Sensor
2. Set up Pins and modes
3. Radio initialization
4. Read Data from PIR sensor
5. Send data via Radio packet

 

The full details are explained in the enclosed docs.

Still shots Outcome

Home Automation – End Node – RFM69 – Light Sensor

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

Now, we're going to make Light sensor node using RFM69 module.

 

but please note you should have RFM Gateway Setup first in your OpenHAB Configuration.

If not, just click the below button for setting up RFM Gateway.

 

OpenHAB Gateway

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included Arduino Uno has been uploaded with code already.

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 know how to upload sketch on Arduino Uno.

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

 

HowToUpload

 

Once your Arduino is ready,

 

1. Define variables for Light Sensor
2. Set up Pins and modes
3. Radio initialization
4. Read Data from Light sensor
5. Send data via Radio packet

 

The full details are explained in the enclosed docs.

Still shots Outcome

Home Automation – End Node – RFM69 – Flame Sensor

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

Now, we're going to make Flame node using RFM69 module.

 

but please note you should have RFM Gateway Setup first in your OpenHAB Configuration.

If not, just click the below button for setting up RFM Gateway.

OpenHAB Gateway

How we do (Hardware)

How we do (Software)

Please note that if you buy the kit, the included Arduino Uno has been uploaded with code already.

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 know how to upload sketch on Arduino Uno.

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

 

HowToUpload

 

Once your Arduino is ready,

 

1. Define variables  for Flame Sensor
2. Set up Pins and modes
3. Radio initialization
4. Read Data from Flame sensor
5. Send data via Radio packet

 

The full details are explained in the enclosed docs.

Still shots Outcome