Markdown source

# CM3-Home - Raspberry Pi Compute Module 3 mother board designed for OpenHAB

<abstract>
OpenHAB is a very popular "<i>vendor and technology agnostic open source automation software for your home</i>". It
integrates "<i>different technologies into one single solution that allows over-arching automation rules and that offers uniform user interfaces</i>. 
OpenHAB can be installed on a lot of generic architectures but they have to be adapted to the real environment
by the user adding HAT, wirings, case, modules, etc. CM3-Home is a design specific that makes possible 
to use OpenHAB directly without any further extensions.
</abstract>

## Main features 

* 1 socket for Linux [Raspberry Pi Compute Module 3 CM3L](https://www.raspberrypi.org/blog/compute-module-3-launch/). 
  * 64bit quad core Cortex A53 
  * 1GB of RAM
* 1 socket for microSD card
* 1 WiFi at 2.4 GHz
* 2 USB 2.0 host ports 
* 1 ISM radio module at 868MHz ([Yarm](http://www.acmesystems.it/yarm))
* 1 Fast ethernet port 10/100 Mbit/s
* 1 stereo audio out
* 1 MIPI camera connector for standard Raspeberry Camera
* 1 Serial port at TTL 3V3 devel for the system console
* 1 Seriale port at TTL 3V3 (5V tolerant)
* 4 ADC lines 0..10V
* 2 low voltage relay contacts
* 2 opto-isolated input with on board power-supply
* 1 IR receiver (36KHz)
* Power-in 12-24VDC
* 2.2 inch front panel SPI TFT display, 320x240 pixel, resistive touch, Linux frame buffer support.

### Wired bus

Some non-official hardware implementations of commercial system bus are present on the CM3-Home for non-professional use.
We have used the scheme available on internet for this buses and implemented all the protection we know to avoid any damage
to your esternal devices but we can't provide any warranties about its proper operations or any devices damages. 
We don't have any partnership or any certification from the owners of these standard so you will use it 
at your risk. We tested the correct operation with few samples of original equipment but to point out that these busses 
are not certificated. These are the Bus available:

* Dali (opto coupled and self powered bus for up to 16 Dali devices)
* Knx (TPUART opto coupled not self powered)
* 2 x RS485 (opto coupled and self powered) for Modbus, DMX512, etc.
* I2C (3V3 volt) for [Seedstudio Grove modules](https://www.seeedstudio.com/category/Sensor-for-Grove-c-24.html)  
* 1-Wire (3V3 volt)

## Board preview

<img src="./cm3-parts.jpg" class="img-responsive center-block" width="80%">

## Architecture

<img src="./cm3-architecture.jpg" class="img-responsive center-block" width="80%">

## Enclosure

CM3-Home is designed to be enclosed inside a 9 module DIN RAIL case made by ELBag:

<a href="http://www.elbag.net/9k_I.html" target="_blank">
<img src="./elbag.jpg" class="img-responsive center-block">
<center class="lead">
http://www.elbag.net/9k_I.html
</center>
</a>

## Design notes

<abstract>
The following section includes just work-in-progress notes written dowm by the 
by the people involved in the board design and beta testing.
</abstract>

### Test, integrazioni, idee e appunti

* @article='openhab_onewire'
* @article='openhab_lirc'
* @article='openhab_sonoff'
* @article='openhab_tradfri'
* @article='openhab_gpio'
* @article='openhab_knx'
* @article='openhab_dali'
* @article='openhab_dmx'
* @article='CM3-HOME_spi_display'
* @article='openhab_modbus'
* @article='openhab_telegram'
* @article='openhab_analogin'
* @article='openhab_mqtt_ledpanel'
* @article='openhab_relay'
* @article='openhab_weather'
* @article='openhab_widget'
* @article='CM3-HOME_test'
* @article='CM3-HOME_power_consumption'
* @article='CM3-HOME_gpio_lines'
* @article='CM3-HOME_schematic'


### Altri sistemi di Home Automation potenzialmente compatibili con CM3-Home

* [ioBroker](http://www.iobroker.net/docu/?lang=en)
* [PiDome](https://pidome.org/index.html)
* [PiMatic](https://pimatic.org/)
* [OpenRemote](http://www.openremote.com/)
* [Home Assistant](https://home-assistant.io/)
* [Domotiga](https://www.domotiga.nl/projects/domotiga/wiki/Home)
* [NexaHome](http://nexahome.se/)
* [Node-RED](https://nodered.org/)

## Altre schede basate su modulo Raspberry CM3

* [Pigeon RB300-CM3](http://pigeoncomputers.com/products/pigeon-rb300-cm3/)
* [Techbase ModBerry X500 M3](http://modberry.techbase.eu/#comparison)
* [Embedded Micro Technology MyPi](http://www.embeddedpi.com/mypi)
* [Kunbus Revolution Pi RevPi Core3](https://revolution.kunbus.com/)
* [Media stick](http://wdlabs.wd.com/products/media-stick/)
* [Bits and pieces](https://isojed.nl/blog/2017/05/10/raspberry-pi-compute-module-3/)
* 

## Links

* OpenHAB
	* [Open HAB su Raspberry Pi](http://docs.openhab.org/installation/rasppi.html)
	* [openHABian - Hassle-free openHAB Setup](http://docs.openhab.org/installation/openhabian.html)
	* [Installazione manuale di openHAB su Raspberry PI 3](./opeHAB_RaspberryPI-3.pdf)
	* [Slides di Massimiliano Casini su Open HAB](https://docs.google.com/presentation/d/10DPPHumq0PqhR1W8O9O3a_Z710Q-2M1eWKkTn41gLdw/edit?usp=sharing)
	* [Lista di controller su mysensor.org](https://www.mysensors.org/controller)
* Accessori
	* [Aeotec Z-Wave USB Z-Stick](http://www.smarthome.com.au/aeotec-z-wave-usb-z-stick.html)
	* [Chiavetta ZigBee](http://mmbnetworks.com/usbsticks/)
	* [Busware](http://shop.busware.de/product_info.php/products_id/59)
	* [Fibaro Motionsensor - Z-Wave ](http://www.bpm-power.com/it/product/1324353/Fibaro+Motionsensor+%26%2345%3B+Z%26%2345%3BWave+%5BFGMS%26%2345%3B001%5D.html?gclid=Cj0KCQjwqvvLBRDIARIsAMYuvBHFY0onbwd65AR5fx0bohkuloNQ2PUnfgIdnXBK47Hg8gTqbWglGL0aAsxeEALw_wcB)

The TanzoLab Project

Il TanzoLab è una iniziativa senza fini di lucro, nata da un'idea di Sergio Tanzilli socio fondatore di Acme Systems srl nel Novembre 2015, per trasferire ad appassionati di elettronica e informatica, professionisti e aziende nel settore, le conoscenze necessarie per poter creare prodotti embedded adatti per la produzione industriale.

Le attività del TanzoLab si svolgono ogni mercoledi sera, salvo casi speciali, dalle ore 18:30 presso i locali della Acme Systems srl e consistono in:

  • Talk monotematici a cura di professionisti in vari settori tecnologici
  • Workshop pratici su elettronica embedded, produzione e informatica
  • Progettazione e realizzazione di nuovi prodotti embedded per l'IT

Le attività vengono coordinate tramite questo sito, in cui vengono pubblicati tutti i lavori svolti o in via di sviluppo, e tramite un gruppo Telegram con cui per interagire direttamente via chat con gli altri membri.