All Projects → AnaviTechnology → anavi-examples

AnaviTechnology / anavi-examples

Licence: MIT license
Examples for getting started and testing ANAVI Internet of Things and add-on boards (HAT & pHAT) for Raspberry Pi

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language
Makefile
30231 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to anavi-examples

Glxosd
GLXOSD is an extensible on-screen display (OSD)/overlay for OpenGL applications running on Linux with X11 which aims to provide similar functionality to MSI Afterburner/RivaTuner OSD. It can show FPS, frame timings, temperatures and more in OpenGL games and applications. It can also be used to benchmark games, much like voglperf.
Stars: ✭ 115 (+202.63%)
Mutual labels:  sensors
Platypush
A versatile and extensible platform for home and life automation with hundreds of supported integrations
Stars: ✭ 192 (+405.26%)
Mutual labels:  sensors
rpi boat utils
Utilities for Raspberry Pi, mostly for usage on a boat. Includes UART control scripts, traffic measurement tools for Mikrotik (RouterOS) and OpenWrt, AIS wireless daemon, AIS decoder and an extensible boat & IoT sensor daemon for Signal K.
Stars: ✭ 71 (+86.84%)
Mutual labels:  sensors
Android
Android app for collecting OpenStreetCam imagery
Stars: ✭ 119 (+213.16%)
Mutual labels:  sensors
Reactivesensors
Android library monitoring device hardware sensors with RxJava
Stars: ✭ 161 (+323.68%)
Mutual labels:  sensors
Smartimu
Inertial Sensor Development Kit,STM32F411C、NRF52810、MPU9250、LPS22HB
Stars: ✭ 231 (+507.89%)
Mutual labels:  sensors
Uwb Node
Local Positioning System Development Kit, use STM32F411C + MPU9250 + LPS22HB + DWM1000
Stars: ✭ 99 (+160.53%)
Mutual labels:  sensors
tinnymodbus
RS485 ModBus tiny multi-sensor module
Stars: ✭ 75 (+97.37%)
Mutual labels:  sensors
Wirehome.core
Wirehome.Core is a home automation system written in C# targeting .NET Core. It runs on Linux, Windows and macOS.
Stars: ✭ 180 (+373.68%)
Mutual labels:  sensors
OpenMaterial
3D model exchange format with physical material properties for virtual development, test and validation of automated driving.
Stars: ✭ 23 (-39.47%)
Mutual labels:  sensors
System sensors
Logging of system sensor specific for the RPI and sending them to a MQTT broker
Stars: ✭ 134 (+252.63%)
Mutual labels:  sensors
Trail Sense
An Android app that uses your phone's sensors to assist with wilderness treks or survival situations.
Stars: ✭ 144 (+278.95%)
Mutual labels:  sensors
Drivers
TinyGo drivers for sensors and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
Stars: ✭ 250 (+557.89%)
Mutual labels:  sensors
Sensors
Generic Sensor API
Stars: ✭ 118 (+210.53%)
Mutual labels:  sensors
awesome-embedded-swift
⚡️🛠🧰 A curated list for Embedded and Low-Level development in the Swift programming language.
Stars: ✭ 57 (+50%)
Mutual labels:  sensors
Ketai
Ketai sensor library for Processing (Android mode)
Stars: ✭ 114 (+200%)
Mutual labels:  sensors
Asus Wmi Sensors
Linux HWMON (lmsensors) sensors driver for various ASUS Ryzen and Threadripper motherboards
Stars: ✭ 193 (+407.89%)
Mutual labels:  sensors
benchmarks-attitude-smartphones
Benchmark on Attitude Estimation with Smartphones (datasets & scripts)
Stars: ✭ 30 (-21.05%)
Mutual labels:  sensors
CurrentSense-TinyML
Spying on Microcontrollers using Current Sensing and embedded TinyML models
Stars: ✭ 71 (+86.84%)
Mutual labels:  sensors
Chataigne
Artist-friendly Modular Machine for Art and Technology
Stars: ✭ 251 (+560.53%)
Mutual labels:  sensors

anavi-examples

Examples for getting started and testing ANAVI hardware

ANAVI Infrared pHAT

ANAVI Infrared pHAT is an open source hardware Raspberry Pi add-on board with IR receiver, transmitter, UART and 3 I2C slots for sensors. The project allows you to convert your Raspberry Pi into a smart remote control using the open source software LIRC.

ANAVI Infrared pHAT Raspberry Pi HAT includes:

  • IR LED
  • IR photo sensor
  • Slots for up to 3 plug and play I2C sensors

User's manual for ANAVI Infrared pHAT is available at: http://anavi.technology/files/anavi-infrared-phat.pdf

Sensors

It is mandatory to enable I2C to use any of the sensors supported by ANAVI Infrared pHAT Raspberry Pi HAT.

Temperature Sensor (BMP180)

Follow the steps below to use the BMP180 I2C temperature and barometric pressure sensor with ANAVI Infrared pHAT:

  • Connect BMP180 to any of the I2C slots on ANAVI Infrared pHAT using male to female Duport jumper wire.

  • Type in the following command and verify that the address of the sensor is listed:

sudo i2cdetect -y 1
  • Type in the following commands to build and run the sample application that display temperature and barometric pressure:
cd ~/anavi-examples/sensors/BMP180/c/
make
./BMP180
  • Verify that the output is similar to (the exact values depend on the atmospheric condition):
pi@raspberrypi:~/anavi-examples/sensors/BMP180/c $ ./BMP180
BMP180 Sensor Module
Temperature	28.6 C
Pressure	991.57 hPa

Humidity Sensor (HTU21D)

Follow the steps below to use the HTU21D I2C temperature and humidity sensor with ANAVI Infrared pHAT:

  • Connect HTU21D to any of the I2C slots on ANAVI Infrared pHAT using male to female Duport jumper wire.

  • Type in the following command and verify that the address of the sensor is listed:

sudo i2cdetect -y 1
  • Type in the following commands to build and run the sample application that display temperature and humidity:
cd ~/anavi-examples/sensors/HTU21D/c/
make
./HTU21D
  • Verify that the output is similar to (the exact values depend on the atmospheric condition):
pi@raspberrypi:~/anavi-examples/sensors/HTU21D/c $ ./HTU21D
HTU21D Sensor Module
25.64C
118.99%rh

BH1750 Light Sensor Module

Follow the steps below to use the BH1750 I2C light sensor with ANAVI Infrared pHAT:

  • Connect BH1750 to any of the I2C slots on ANAVI Infrared pHAT using male to female Dupont jumper wires.

  • Type in the following command and verify that the address of the sensor is listed:

sudo i2cdetect -y 1
  • Type in the following commands to build and run the sample application that display luminous emittance:
cd ~/anavi-examples/sensors/BH1750/c/
make
./BH1750
  • Verify that the output is similar to (the exact values depend on the atmospheric condition):
pi@raspberrypi:~/anavi-examples/sensors/BH1750/c $ ./BH1750
BH1750 Sensor Module
Light: 418 Lux

ANAVI Flex

ANAVI Flex is an open source hardware Raspberry Pi HAT (add-on board) for rapid prototyping of Internet of Things (IoT) powered by free and open source software. It features:

  • IR transmitter (IR LED)
  • IR receiver (IR photo sensor)
  • Relay
  • Piezoelectric speaker (buzzer)
  • Button
  • RGB LED
  • Slot for modular 16x2 LCD character display
  • Slots for up to 5 plug and play I2C sensors for temperature, barometric pressure, humidity and light
  • UART (Universal asynchronous receiver/transmitter) pins for debugging
  • contrib/ac-toshiba.py - Reads Toshiba AC Remote packets
  • contrib/ir_packet_read.py - Read IR packets and display as binary & hex

Support the project by backing ANAVI Flex IndieGoGo campaign.

C

Run make to build each application written in the C programming language.

Python

Execute the following command to install the required packages for Python development:

sudo apt-get install python-dev python-rpi.gpio

Execute the following commands to download and install Adafruit Python BMP library:

git clone https://github.com/adafruit/Adafruit_Python_BMP.git
cd Adafruit_Python_BMP
sudo python setup.py install

ESPHome

ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.

An example ESPHome configuration is available for ANAVI Thermometer. Follow the steps below to install it through the command-line:

  • Install ESPHome
pip3 install esphome
  • Download the example
git clone https://github.com/AnaviTechnology/anavi-examples.git
  • Set your WiFi credentials at anavi-thermometer/esphome-anavi-thermometer/anavi-thermometer.yaml

  • Compile and flash the firmware. Follow the on-screen instructions. Press the RESET button on ANAVI Thermometer before powering ANAVI Thermometer and hold it until the firmware upload complete. Power cycle ANAVI Thermometer after flashing ESPHome:

cd anavi-thermometer/esphome-anavi-thermometer
esphome anavi-thermometer.yaml run

ANAVI Smiley

Device Tree Overlay

Follow the steps below to compile and use anavi-smiley.dts as a sample device tree overlay configuration that shows how to configure button as volume mute, LED1 to indicated CPU activity and LED2 the heartbeat

  • On Raspberry Pi OS, install device tree compiler:
sudo apt update
sudo apt install -y device-tree-compiler
  • Download the examples and compile device tree overlay:
dtc -I dts -O dtb -o anavi-smiley.dtbo anavi-smiley.dts
  • Copy the dtbo file to /boot/overlays/:
sudo cp anavi-smiley.dtbo /boot/overlays/
  • Manually enable the device tree overlay in /boot/config.txt:
dtoverlay=anavi-smiley
gpio=26=pu
  • Reboot

Linux key codes are as defined in /usr/include/linux/input-event-codes.h.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].