Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:calaos_io_controller [2015/08/21 19:42]
nico [Calaos PLC IO]
en:calaos_io_controller [2016/01/13 20:28] (current)
Line 3: Line 3:
 Calaos IO is currently in design phase, and it's far to be complete. The following page aims to describes what Calaos IO will be.  Calaos IO is currently in design phase, and it's far to be complete. The following page aims to describes what Calaos IO will be. 
  
-Calaos IO is a board designed to controlled as many I/O as possible. It's intented to replace the wago IO modules in a house. It takes places in the electronic board.+Calaos IO is a board designed to control as many I/O as possible. It's intented to replace the wago IO modules in a house. It takes places in the electronic board.
  
 The spectifications are the following : The spectifications are the following :
Line 19: Line 19:
 Connectors for wires of 0.08 to 1.5mm2 / AWG 28 ... 16 Connectors for wires of 0.08 to 1.5mm2 / AWG 28 ... 16
 LEDs indicator? LEDs indicator?
-  ^           Table with alignment           ^^^ + 
-          right|    center    |left          | +Schematics can be found here : https://github.com/calaos/calaos_hw_plc.git
-  |left          |         right|    center    | +
-  | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |+
  
 ==== Bus ==== ==== Bus ====
  
-RS485 will be used as the principal bus to control the IOs on the board+RS485 will be used as the principal bus to control the IOs on the board. The components needed to use the bus are really cheap and the bus can withstand really long lines. 
  
 ==== Hardware ==== ==== Hardware ====
  
 The hardware is designed arround a tiny microcontroller. The hardware is designed arround a tiny microcontroller.
-The folling ICs maybe used : +The following ICs maybe used : 
  
 - STM32F0 (1,40€) - STM32F0 (1,40€)
 - ATMEGA328 (3,20€) - ATMEGA328 (3,20€)
  
-The IO are drived by a 2 GPIO exapanders connected via the I2C bus of the microcontroller+The IO are drived by a 2 GPIO expanders connected via the I2C bus of the microcontroller
  
 - PCA9505 is a gpio expander with 40 IOs - PCA9505 is a gpio expander with 40 IOs
Line 57: Line 56:
 Modbus has the inconvenient of having a big overhead per packet and is used in systeme where the master need to access content of register of slaves. It's not designed with firmware upgrade of slaves in mind for example. Modbus has the inconvenient of having a big overhead per packet and is used in systeme where the master need to access content of register of slaves. It's not designed with firmware upgrade of slaves in mind for example.
  
 +The frames will have the following format:
 +
 +{{:en:frame_cbp.png|Frame}}
 +
 +  * Slave ID is a configurable id (through DIP switch or jumper) located on each sensors.
 +  * The content is then application defined
 +
 +{{:en:slave_state_machine.png|}}
 +
 +
 +{{:en:master_state_machine.png|}}
 +
 +=== Informations ===
 +
 +Schematic and prototyping code can be found at https://github.com/clementleger/calaos_plc_io_doc
  
 +Application note for reading RS485 bus with STM32 processors :
  
 +http://www.st.com/st-web-ui/static/active/en/resource/technical/document/application_note/CD00249778.pdf