Difference between revisions of "LightPi"

From hms.sternhell.at
Jump to: navigation, search
m (The LightPi)
(Downloads)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
 [[File:LightPiLogo.jpg|thumb|right|180x150px]]
 
 [[File:LightPiLogo.jpg|thumb|right|180x150px]]
 +
 +
= LightPi 2021 =
 +
 +
# [[File:LightPi Instructions for prebuilt stations compressed.pdf|LightPi 2021 Anleitung Instructions_for_prebuilt_stations_compressed.pdf LightPi 2021 Anleitung (FL)]]
  
 
= Introduction =
 
= Introduction =
Line 36: Line 40:
 
*Uses A. Trawöger's Lightrouter-"lightmetermini"-python-driver.
 
*Uses A. Trawöger's Lightrouter-"lightmetermini"-python-driver.
  
<span style="font-size:x-small;">*...based on interpolation of various internet sources.</span>
+
<span style="font-size:x-small;">*...based on interpolation of various internet sources. Also, I just found this one:&nbsp;&nbsp;[https://web.archive.org/web/20190702131047/https://raspi.tv/2019/how-much-power-does-the-pi4b-use-power-measurements https://web.archive.org/web/20190702131047/https://raspi.tv/2019/how-much-power-does-the-pi4b-use-power-measurements]</span>
  
 
&nbsp;
 
&nbsp;
Line 44: Line 48:
 
*Remote shell access (planned).
 
*Remote shell access (planned).
 
*Data transmission (partly implemented).
 
*Data transmission (partly implemented).
 +
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;implemented as google drive uploader.
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;implemented as google drive uploader.
*NTP synchronsiation (planned).
+
 
*GPS synchronisation (planned).
+
*NTP synchronsiation (partially).
*On-site network service for data access (planned).
+
*GPS synchronisation (Yesss! Works now!).
*Independence of a central server infrastructure (design guideline).
+
*On-site network service for data access (Yesss! Works now!).
 +
*Independence of a central server infrastructure.
 +
 
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Google drive support circumvents the need for having your own central server.
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Google drive support circumvents the need for having your own central server.
  
Line 73: Line 80:
 
</div><div>Finding a source for the Raspberry Pis should not be difficult, as big electronics resellers (e.g. RS Components) have them listed. Usually the A/A+ models (and their cases) are harder to find, and the Zeros tend to be outsold.</div><div><br/></div><div>A suitable RTC module can be found here: [https://www.aliexpress.com/item/Free-shipping-1PCS-DS3231-Real-Time-Clock-Module-forarduino-3-3V-5V-with-battery-For-Raspberry/32570116150.html [1]]</div><div><br/></div>
 
</div><div>Finding a source for the Raspberry Pis should not be difficult, as big electronics resellers (e.g. RS Components) have them listed. Usually the A/A+ models (and their cases) are harder to find, and the Zeros tend to be outsold.</div><div><br/></div><div>A suitable RTC module can be found here: [https://www.aliexpress.com/item/Free-shipping-1PCS-DS3231-Real-Time-Clock-Module-forarduino-3-3V-5V-with-battery-For-Raspberry/32570116150.html [1]]</div><div><br/></div>
 
=== Choosing a Raspberry Pi model ===
 
=== Choosing a Raspberry Pi model ===
<div>Some hints regarding the different models:</div>
+
<div>Update below.&nbsp;</div><div><br/></div><div><span style="color:#a9a9a9;">Some hints regarding the different models:</span></div>
*All "B" models have 2+ USB ports, eliminating the need for an USB hub.
+
*<span style="color:#a9a9a9;">All "B" models have 2+ USB ports, eliminating the need for an USB hub.</span>
*Also, all "B" models come with an Ethernet port, the A/A+/Zero models do not have native networking capabilities.
+
*<span style="color:#a9a9a9;">Also, all "B" models come with an Ethernet port, the A/A+/Zero models do not have native networking capabilities.</span>
*Model 3 B even has it's own onboard WiFi adapter.
+
*<span style="color:#a9a9a9;">Model 3 B even has it's own onboard WiFi adapter.</span>
*The Models A+/Zero have the lowest power consumption - ideal for off-grid stations.
+
*<span style="color:#a9a9a9;">The Models A+/Zero have the lowest power consumption - ideal for off-grid stations.</span>
*Model Zero has no fullsized USB port, thus needing an USB-OTG adapter.
+
*<span style="color:#a9a9a9;">Model Zero has no fullsized USB port, thus needing an USB-OTG adapter.</span>
*First generation RasPis (1A and 1B, or just "A" and "B") use full size SD cards, other models use MicroSD.
+
*<span style="color:#a9a9a9;">First generation RasPis (1A and 1B, or just "A" and "B") use full size SD cards, other models use MicroSD.</span>
*Used first/second generation RasPis can be found very cheap on the internet.
+
*<span style="color:#a9a9a9;">Used first/second generation RasPis can be found very cheap on the internet.</span>
<div>&nbsp;</div><div>The bottomline is:<br/></div>
+
<div><span style="color:#a9a9a9;">&nbsp;</span></div><div><span style="color:#a9a9a9;">The bottomline is:</span><br/></div>
*Minimum energy consumption: A+/Zero
+
*<span style="color:#a9a9a9;">Minimum energy consumption: A+/Zero</span>
*Maximum networking capability: &nbsp;3B
+
*<span style="color:#a9a9a9;">Maximum networking capability: &nbsp;3B</span>
<div>&nbsp;</div><div><br/></div>
+
<div><br/></div><div>Update 2021-08-11:&nbsp;</div><div><br/></div><div>See [https://en.wikipedia.org/wiki/Raspberry_Pi#Generations Raspberry Pi Generation Overview]: Apart from Raspberry Pi ''Pico'' (which is a totally different breed), every single RasPi-version is sufficient for our needs.<br/></div><div><br/></div><div>Things to consider:&nbsp;</div>
 +
*Not every model has WiFi (if you need it)
 +
*Be aware of the number of USB sockets you need (but a hub can help)
 +
*RasPi Zero (or Zero W/WH) has the lowest power consumption, but does require an OSB-OTG adapter
 +
*Most of my tests were done on models 1B and 3B/3B+
 +
*Model 4 has a USB-C power jack, earlier models use Micro-USB
 +
*If you have to choose between any (sub-)versions of models 3B/4B: Choose the cheapest
 +
*Make sure that your power supply is sufficient
 +
<div><br/></div>
 
&nbsp;
 
&nbsp;
  
Line 120: Line 135:
 
=== Software ===
 
=== Software ===
  
*The Raspbian image file from&nbsp;[https://www.raspberrypi.org/downloads/raspbian/&nbsp https://www.raspberrypi.org/downloads/raspbian/]
+
*<strike>The Raspbian image file from&nbsp;[https://www.raspberrypi.org/downloads/raspbian/&nbsp https://www.raspberrypi.org/downloads/raspbian/]</strike>
 
*If you are using Windows: Win32DiskImager
 
*If you are using Windows: Win32DiskImager
  
&nbsp;
+
&nbsp;<br/>Update 2021-08-10:&nbsp;&nbsp;<br/>Raspbian is now called Raspberry Pi OS, download here:&nbsp;[https://www.raspberrypi.org/software/operating-systems/ https://www.raspberrypi.org/software/operating-systems/<br/>I]&nbsp;do recommend the version "Raspberry Pi OS with desktop", since you get the nice GUI, without too much bloat.
  
 
= Downloads =  
 
= Downloads =  
  
 
Always use the most recent version!
 
Always use the most recent version!
 +
 +
== Version v20211104 ==
 +
 +
[[File:LightPi v20211104.zip|File:LightPi_v20211104.zip]]
 +
 +
Improvements:
 +
*Improved Semi-graphical installer
 +
*GPS time sync
 +
*Local WiFi access point
 +
 +
(This version has not yet been thoroughly tested. Your help and feedback is appreciated.)
 +
 +
Further instructions inside.
 +
  
 
== Version v20170810 ==
 
== Version v20170810 ==
  
[[File:LightPi v20170810.zip|File:LightPi_v20170810.zip]]
+
<strike>[[File:LightPi v20170810.zip|File:LightPi_v20170810.zip]]</strike>
  
 
Improvements:
 
Improvements:
Line 139: Line 168:
 
*Heartbeat files, uploaded to your google drive, providing a quick glance at the stations health
 
*Heartbeat files, uploaded to your google drive, providing a quick glance at the stations health
  
(This version has not yet been thoroughly tested. Your help and feedback is appreciated.)
 
 
Further instructions inside.
 
  
 
== Version v20161115 ==
 
== Version v20161115 ==
  
[[File:LightPi v20161115.zip|File:LightPi_v20161115.zip]]
+
<strike>[[File:LightPi v20161115.zip|File:LightPi_v20161115.zip]]</strike>
  
First public version of LightPi.
+
<strike>First public version of LightPi.</strike>
  
Instructions inside.
+
<strike>Instructions inside.</strike>
  
 
&nbsp;
 
&nbsp;

Latest revision as of 23:42, 4 November 2021

 
LightPiLogo.jpg

LightPi 2021

  1. File:LightPi Instructions for prebuilt stations compressed.pdf

Introduction

The Lightrouter

Up to now, the Lightrouter was our preferred workhorse for collecting and transmitting Lightmeter data. It's low-cost and low-power design allowed for continuous nightsky measurements, automatic data transmission and even - to some extent -  remote maintenance.

But, over time several issues surfaced: 

  • The hardware version 2 of the WR1043ND rendered our firmware image obsolete, leading to a more manual setup routine.
  • Future hardware versions will come with a locked firmware, preventing the use of OpenWRT (due to a new FCC rule).
  • In offline-scenarios (no NTP, and no GPS) the internal clock performed terrible, exhibiting nonlinear, irregular drifts.
  • The internal flash memory is not large enough to hold the entire setup, leading to the need of an overlay filesystem, creating a high dependency on the presence of the USB stick.
  • Due to ill-defined brown-out behaviour of the router, the filesystem of several USB sticks got corrupted, leaving the stations paralyzed.
  • Our central server died (summer 2016), leaving the reverse-SSH-tunnels dangling in mid-air, and thus preventing remote connections and data collection.
  • Power consumption with up to 18W is quite high for solar powered off-grid stations.
  • Some gerneral reliability issues.


The LightPi

To combat all these shortcomings, the LightPi is under development. Based on a Raspberry Pi, extended by a realtime module, the LightPi will be easier to set up and to maintain, without increasing the price tag.

Some of it's main features are:

  • High and reliable hardware availability, good inter-generation compatibility.
  • Higher computing power and full debian-based operating system.
  • Lower power consumption (2-4W [Model 3 B], 0.5-1.2W [Model A+]). * 
  • 4 USB ports (Model B+ upwards), eliminating the USB hub.
  • SD-card instead of small onboard flash - no more overlay filesystems.
  • Highly accurate DS3231 RTC module (+/-3.5ppm).
  • Simple plug-and-play with any FAT32 formatted USB stick for data storage.
  • As inexpensive as the Lightrouter.
  • Uses A. Trawöger's Lightrouter-"lightmetermini"-python-driver.

*...based on interpolation of various internet sources. Also, I just found this one:  https://web.archive.org/web/20190702131047/https://raspi.tv/2019/how-much-power-does-the-pi4b-use-power-measurements

 

As the LightPi platform is still under active development, several features are not yet implemented:

  • Remote shell access (planned).
  • Data transmission (partly implemented).

            implemented as google drive uploader.

  • NTP synchronsiation (partially).
  • GPS synchronisation (Yesss! Works now!).
  • On-site network service for data access (Yesss! Works now!).
  • Independence of a central server infrastructure.

            Google drive support circumvents the need for having your own central server.

 

Current state

The LightPi project's current state is  developing / testing , public alpha stage.

Hardware acquisition

LightPi shopping list

  • Raspberry Pi (any model)
  • DS3231 RTC module
  • MicroSD / SD card (dep. on RasPi model) with 4+GB
  • Power supply (5V, micro USB)
  • USB stick (FAT32 formatted)
  • For model A/A+/Zero USB hub
  • For model Zero: USB-OTG adapter
  • Optional, but recommended: A case for the RasPi

 

Finding a source for the Raspberry Pis should not be difficult, as big electronics resellers (e.g. RS Components) have them listed. Usually the A/A+ models (and their cases) are harder to find, and the Zeros tend to be outsold.

A suitable RTC module can be found here: [1]

Choosing a Raspberry Pi model

Update below. 

Some hints regarding the different models:
  • All "B" models have 2+ USB ports, eliminating the need for an USB hub.
  • Also, all "B" models come with an Ethernet port, the A/A+/Zero models do not have native networking capabilities.
  • Model 3 B even has it's own onboard WiFi adapter.
  • The Models A+/Zero have the lowest power consumption - ideal for off-grid stations.
  • Model Zero has no fullsized USB port, thus needing an USB-OTG adapter.
  • First generation RasPis (1A and 1B, or just "A" and "B") use full size SD cards, other models use MicroSD.
  • Used first/second generation RasPis can be found very cheap on the internet.
 
The bottomline is:
  • Minimum energy consumption: A+/Zero
  • Maximum networking capability:  3B

Update 2021-08-11: 

See Raspberry Pi Generation Overview: Apart from Raspberry Pi Pico (which is a totally different breed), every single RasPi-version is sufficient for our needs.

Things to consider: 
  • Not every model has WiFi (if you need it)
  • Be aware of the number of USB sockets you need (but a hub can help)
  • RasPi Zero (or Zero W/WH) has the lowest power consumption, but does require an OSB-OTG adapter
  • Most of my tests were done on models 1B and 3B/3B+
  • Model 4 has a USB-C power jack, earlier models use Micro-USB
  • If you have to choose between any (sub-)versions of models 3B/4B: Choose the cheapest
  • Make sure that your power supply is sufficient

 

Setup

Preparation

Hardware

For the setup process you need:

  • Your computer
  • SD/MicroSD card reader
  • HDMI capable monitor
  • HDMI cable
  • USB mouse
  • USB keyboard

(The USB/HDMI items may be borrowed from your computer - no need for a second set.)

 

Optional, but highly recommended for the setup process:

  • Internet connection via WiFi
  • USB WiFi adapter (for all models except 3 B)

or:

  • Internet connection via Ethernet
  • USB Ethernet adapter (for models A/A+/Zero)

 

Software

 
Update 2021-08-10:  
Raspbian is now called Raspberry Pi OS, download here: https://www.raspberrypi.org/software/operating-systems/
I
 do recommend the version "Raspberry Pi OS with desktop", since you get the nice GUI, without too much bloat.

Downloads

Always use the most recent version!

Version v20211104

File:LightPi v20211104.zip

Improvements:

  • Improved Semi-graphical installer
  • GPS time sync
  • Local WiFi access point

(This version has not yet been thoroughly tested. Your help and feedback is appreciated.)

Further instructions inside.


Version v20170810

File:LightPi v20170810.zip

Improvements:

  • Semi-graphical installer, minimizing the need for command line acrobatics
  • Data zipper, moving last months data to a zip archive, greatly reducing disk space consumption
  • Google drive uploader, copying completed month-archives to your cloud space
  • Heartbeat files, uploaded to your google drive, providing a quick glance at the stations health


Version v20161115

File:LightPi v20161115.zip

First public version of LightPi.

Instructions inside.

 

Configuration

LightPi RTC-Module.jpg
Raspberry Pi Model 3 B (left) and
Model A+ (right), outfitted with
DS3231 RTC modules (a third one
on the bottom right).


Contact and contribution

You are always welcome to test and give feedback. The easiest way to communicate is to just edit the bulletin board section below.

--Nero2401 (talk) 14:02, 10 August 2017 (CEST)

Bulletin board


...