Example-Code for a generic Device (e.g. Sensor, Display)
Example-Code for a Nano Sensor Station (SEN02281P, MIC, GUVA-S12SD, TSL2561, BME280) (optionally AS7265X)
- Author
- drtrigon
- Date
- 2018-07-06
- Version
- 1.0
- first version derived from PJON 11.0 examples examples/ARDUINO/Local/SoftwareBitBang/BlinkWithResponse/Receiver/Receiver.ino
OWPJON/ARDUINO/Local/SoftwareBitBang/BlinkWithResponse/Receiver/Receiver.ino
- See Also
- https://github.com/gioblu/PJON/blob/master/examples/ARDUINO/Local/SoftwareBitBang/BlinkWithResponse/Receiver/Receiver.ino
* OneWire PJON Generic "OWPG" scheme:
* Server e.g. linux machine or raspi
* OWPJON/LINUX/Local/LocalUDP/RemoteWorker/DeviceGeneric/
* OWPJON/LINUX/Local/ThroughSerial/RemoteWorker/DeviceGeneric/
* Tunnel(er) similar to 1wire master (similar cause we are on a multi-master bus) e.g. AVR
* OWPJON/ARDUINO/Local/SoftwareBitBang/Tunneler/BlinkingSwitch/
* OWPJON/ARDUINO/Local/SoftwareBitBang/Tunneler/BlinkingSwitch_SWBB-TS/
* OWPJON/ARDUINO/Local/ThroughSerial/SoftwareBitBangSurrogate/Surrogate/ (obsolete)
* Devices e.g. AVR
* OWPJON/ARDUINO/Local/SoftwareBitBang/DeviceGeneric/ (this sketch)
* OWPJON/ARDUINO/Local/SoftwareBitBang/OWP_DG_LCD_Sensors/
* ...
*
* Compatible with: atmega328 (Uno, Nano), atmega32u4 (Yun)
* ID 42: Nano Test Device on outdoor SWBB bus (testing)
* ID 44: Nano Test Device on indoor SWBB bus (productive; collectd)
*
* Pinout:
* 1wire PJON data bus (OWPJON SWBB):
* 1WIRE DATA -> Arduino Pin D12
* GND black -> Arduino GND
*
* Test on Ubuntu or Raspberry Pi Server (owpshell) confer the docu of
* following files:
* - @ref OWPJON/LINUX/Local/LocalUDP/RemoteWorker/DeviceGeneric/DeviceGeneric.cpp
* - @ref OWPJON/LINUX/Local/ThroughSerial/RemoteWorker/DeviceGeneric/DeviceGeneric.cpp
*
* Thanks to:
* gioblu - PJON 11.0 and support
* @see https://www.pjon.org/
* @see https://github.com/gioblu/PJON
* fredilarsen - support
*
- Author
- drtrigon
- Date
- 2018-07-06
- Version
- 1.0
OWPJON/ARDUINO/Local/SoftwareBitBang/DeviceGeneric/DeviceGeneric.ino Uno_OWSlave/OWH_DS18B20_asInterface_SensorStation/OWH_DS18B20_asInterface_SensorStation.ino
* OneWire PJON Generic "OWPG" scheme:
* Server e.g. linux machine or raspi
* OWPJON/LINUX/Local/LocalUDP/RemoteWorker/DeviceGeneric/
* OWPJON/LINUX/Local/ThroughSerial/RemoteWorker/DeviceGeneric/
* Tunnel(er) similar to 1wire master (similar cause we are on a multi-master bus) e.g. AVR
* OWPJON/ARDUINO/Local/SoftwareBitBang/Tunneler/BlinkingSwitch/
* OWPJON/ARDUINO/Local/SoftwareBitBang/Tunneler/BlinkingSwitch_SWBB-TS/
* OWPJON/ARDUINO/Local/ThroughSerial/SoftwareBitBangSurrogate/Surrogate/ (obsolete)
* Devices e.g. AVR
* OWPJON/ARDUINO/Local/SoftwareBitBang/DeviceGeneric/ (this sketch)
* OWPJON/ARDUINO/Local/SoftwareBitBang/OWP_DG_LCD_Sensors/
* ...
*
* Compatible with: atmega328 (Uno, Nano), atmega32u4 (Yun)
* ID 42: Nano Test Device on outdoor SWBB bus (testing)
* ID 44: Nano Test Device on indoor SWBB bus (productive; collectd)
*
* Pinout:
* 1wire PJON data bus (OWPJON SWBB):
* 1WIRE DATA -> Arduino Pin D8
* GND black -> Arduino GND
*
* Test on Ubuntu or Raspberry Pi Server (owpshell) confer the docu of
* following files:
* - @ref OWPJON/LINUX/Local/LocalUDP/RemoteWorker/DeviceGeneric/DeviceGeneric.cpp
* - @ref OWPJON/LINUX/Local/ThroughSerial/RemoteWorker/DeviceGeneric/DeviceGeneric.cpp
* - use ThroughSerial testing like:
* $ printf "\x01" | ./owpshell-ubuntu14.04 /dev/ttyUSB0 9600 40
* owp:ss:v1
* $ printf "\x53" | ./owpshell-ubuntu14.04 /dev/ttyUSB0 9600 40 | python unpack.py f
* 970.3897094726562,
*
* Thanks to:
* gioblu - PJON 11.0 and support
* @see https://www.pjon.org/
* @see https://github.com/gioblu/PJON
* fredilarsen - support
*