Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:calaos_io_controller [2015/08/21 21:12] cleger [Software] |
en:calaos_io_controller [2015/08/23 14:52] nico [Software] |
||
---|---|---|---|
Line 20: | Line 20: | ||
LEDs indicator? | LEDs indicator? | ||
+ | Schematics can be found here : https:// | ||
==== 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 | + | The following |
- STM32F0 (1,40€) | - STM32F0 (1,40€) | ||
- ATMEGA328 (3,20€) | - ATMEGA328 (3,20€) | ||
- | The IO are drived by a 2 GPIO exapanders | + | The IO are drived by a 2 GPIO expanders |
- 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 |
- | * Type is the frame type (request, ack) | + | |
{{: | {{: | ||
Line 66: | Line 67: | ||
{{: | {{: | ||
+ | |||
+ | |||
+ | Application note for reading RS485 bus with STM32 processors : | ||
+ | |||
+ | http:// | ||
+ |