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 21:12]
cleger [Software]
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 20: Line 20:
 LEDs indicator? LEDs indicator?
  
 +Schematics can be found here : https://github.com/calaos/calaos_hw_plc.git
  
 ==== 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 56: Line 58:
 The frames will have the following format: The frames will have the following format:
  
-{{:en:frame.png|Frame}}+{{:en:frame_cbp.png|Frame}}
  
   * Slave ID is a configurable id (through DIP switch or jumper) located on each sensors.   * Slave ID is a configurable id (through DIP switch or jumper) located on each sensors.
-  * Request ID is a unique identifier for each request allowing to distinguish missed ack +  * The content is then application defined
-  * Type is the frame type (request, ack)+
  
 {{:en:slave_state_machine.png|}} {{:en:slave_state_machine.png|}}
Line 66: Line 67:
  
 {{:en:master_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
 +