Difference between revisions of "PicorderOS"

From Squared Wave
Jump to: navigation, search
(Created page with "Logo for the Picorder project PicorderOS is a python based set of modules that provides a quick and easy way to use a Raspberry Pi as a handhel...")
 
Line 1: Line 1:
[[File:picorderlogo.png|frame|Logo for the Picorder project]]
+
[[File:PicorderOS logo.png|frame|Logo for the PicorderOS project]]
PicorderOS is a python based set of modules that provides a quick and easy way to use a Raspberry Pi as a handheld sensing device.
+
PicorderOS is a Python based set of modules that provides a quick and easy way to use a Raspberry Pi as a handheld sensing device. The real goal of PicorderOS is not just to operate my various Picorder projects as a monolithic entity but to work as a set of modules that the user can enable and disable at will.
  
 +
By design it will support a wide range of arbitrary selected sensors, displays and form factors. Development is proceeding simultaneously on all elements.
  
===Basic Functions===
 
  
Multi-Graph displays three sensor elements at once and shows the immediate values for each.
 
  
Single-Graph displays a single sensor element and displays immediate value as well as historical data and context.
+
 
 +
===Basic Structure===
 +
[[File:PicorderOS diagram.png|500px]]
 +
 
 +
 
 +
 
 +
===Sensors===
 +
 
 +
 
 +
 
 +
====Notes====
 +
To reduce power consumption:
 +
* Only draw to screen when sensor reading has changed.
 +
scale would be a factor for determining; different decimal places would trigger different refresh rates.
 +
 
 +
====Download====
 +
 
 +
https://github.com/directive0/picorder2
 +
 
 +
====Installation====
 +
PicorderOS requires quite a few python libraries to work.
 +
 
 +
Open a terminal and follow the next instructions:
 +
* We must first enable SPI and I2C for sensor and display communications.
 +
** Open Raspi Config <code>sudo raspi-config</code>
 +
** Select "Interfacing Options" (Item 5)
 +
** Scroll down to SPI and when prompted enable it following the onscreen dialogue
 +
** Do the same for I2C
 +
* Ensure you have Python3 and Pip3 installed (should already be there on Raspbian) <code>sudo apt-get install python3-pip python3-dev</code>
 +
* Install Sensor Libraries
 +
** If using the BME680 I recommend the [https://github.com/pimoroni/bme680-python Pimoroni bme680 module],  install it using pip3 <code>sudo pip3 install bme680</code>
 +
* Install [https://luma-lcd.readthedocs.io/en/latest/index.html luma.lcd] for the displays <code>sudo pip3 install luma.lcd</code>

Revision as of 12:40, 20 June 2019

Logo for the PicorderOS project

PicorderOS is a Python based set of modules that provides a quick and easy way to use a Raspberry Pi as a handheld sensing device. The real goal of PicorderOS is not just to operate my various Picorder projects as a monolithic entity but to work as a set of modules that the user can enable and disable at will.

By design it will support a wide range of arbitrary selected sensors, displays and form factors. Development is proceeding simultaneously on all elements.



Basic Structure

PicorderOS diagram.png


Sensors

Notes

To reduce power consumption:

  • Only draw to screen when sensor reading has changed.

scale would be a factor for determining; different decimal places would trigger different refresh rates.

Download

https://github.com/directive0/picorder2

Installation

PicorderOS requires quite a few python libraries to work.

Open a terminal and follow the next instructions:

  • We must first enable SPI and I2C for sensor and display communications.
    • Open Raspi Config sudo raspi-config
    • Select "Interfacing Options" (Item 5)
    • Scroll down to SPI and when prompted enable it following the onscreen dialogue
    • Do the same for I2C
  • Ensure you have Python3 and Pip3 installed (should already be there on Raspbian) sudo apt-get install python3-pip python3-dev
  • Install Sensor Libraries
  • Install luma.lcd for the displays sudo pip3 install luma.lcd