Adam DunkelsFredrik RosendalMarcus Linderoth
Published © MIT

Sensor Map with a RPi Zero W, SensorTags and 6lowpan

Long-Range, Battery-Driven Sensors that Collect Temperature, Humidity, Air Pressure

BeginnerProtip30 minutes6,112
Sensor Map with a RPi Zero W, SensorTags and 6lowpan

Things used in this project

Hardware components

Raspberry Pi Zero Wireless
Raspberry Pi Zero Wireless
×1
Texas Instruments Simplelink™ Sub-1 GHz & Bluetooth® low energy CC1350 wireless MCU LaunchPad™ Dev Kit
×1
Texas Instruments Simplelink CC1350 SensorTag Bluetooth and Sub-1GHz Long Range Wireless Development Kit
×1
Adafruit 10-pin 2x5 Socket-Socket 1.27mm IDC (SWD) Cable
×1
Adafruit USB OTG Host Cable - MicroB OTG male to A female
×1

Software apps and online services

Thingsquare

Story

Read more

Code

Code snippet #3

Plain text
pi@raspberrypi:~ $ curl http://www.thingsquare.com/script/setup-slip.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1470  100  1470    0     0  14747      0 --:--:-- --:--:-- --:--:-- 14848
This script will set up your Raspberry Pi as a serial gateway
420
exit 0

843
Installing dnsmasq
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  dnsmasq
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/16.0 kB of archives.
After this operation, 73.7 kB of additional disk space will be used.
Selecting previously unselected package dnsmasq.
(Reading database ... 34431 files and directories currently installed.)
Preparing to unpack .../dnsmasq_2.76-5+rpi2_all.deb ...
Unpacking dnsmasq (2.76-5+rpi2) ...
Setting up dnsmasq (2.76-5+rpi2) ...
Processing triggers for systemd (232-25+deb9u1) ...
Configuring dnsmasq
Device must reboot to complete setup. To reboot, type "sudo reboot" (without quotes) and hit enter.
pi@raspberrypi:~ $

Code snippet #4

Plain text
pi@raspberrypi:~ $ curl http://www.thingsquare.com/script/setup-slip.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1470  100  1470    0     0  14747      0 --:--:-- --:--:-- --:--:-- 14848
This script will set up your Raspberry Pi as a serial gateway
420
exit 0

843
Installing dnsmasq
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  dnsmasq
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/16.0 kB of archives.
After this operation, 73.7 kB of additional disk space will be used.
Selecting previously unselected package dnsmasq.
(Reading database ... 34431 files and directories currently installed.)
Preparing to unpack .../dnsmasq_2.76-5+rpi2_all.deb ...
Unpacking dnsmasq (2.76-5+rpi2) ...
Setting up dnsmasq (2.76-5+rpi2) ...
Processing triggers for systemd (232-25+deb9u1) ...
Configuring dnsmasq
Device must reboot to complete setup. To reboot, type "sudo reboot" (without quotes) and hit enter.
pi@raspberrypi:~ $

Credits

Adam Dunkels

Adam Dunkels

3 projects • 21 followers
Thingsquare CEO
Fredrik Rosendal

Fredrik Rosendal

3 projects • 10 followers
CTO Thingsquare
Marcus Linderoth

Marcus Linderoth

3 projects • 10 followers

Comments