A typical beginning of development using STM controllers: - On the basis of a large number of available discovery boards make up a device prototype. - Search box, where this prototype can be installed.
This solution is the production of a prototype and serial devices for installation in a standard enclosure. The distributed system is building from this devices / units. The current main interface is CAN. However, nothing hinders the use of other interfaces, for example: different RF channels.
Let's start with a solution based on stm32f100 board.
This board can be used instead of stm-discovery. The board has a CAN interface. This interface is mainly for modules communicating in a system. Example of using board as a develop sensor module:
GAINTA (http://www.gainta.com/din_rail_housing/din_rail_case/) produces her pcb. However, for my decision, I developed my own development PCB:
STM32f100 board can mount in differents positions:
Example use of STM32f100 board as UART-CAN gate:
This construction in D1MG box:
For example uses STM32F100 board as set of sensors - temperature, humidity, pressure, illumination, CO2:
In box without covers:
In box with covers:
Ready product:
Other examples of using STM32F100 PCB.8/9 channels GPIO module. Work with DS18B20, iButton, 5V GPIO with a pull up or pull down. Up to 560V galvanic isolator:
External board of PLC Modem on developer board:
For programming this modules use C language. But IEC 61131-3 can be used. Project: http://www.beremiz.org
Piece of workplace:
Explore CAN-bus with stm32f100 board
Consider a simple network of two controllers STM32F100 ( STM32F100 board ) In addition, you will need two USB-UART adapters. Scheme and PCB board Download firmware CAN-Gate to MicroController. This firmware can be used as a template for your own programs. Size of program is 12KB, and you can use KEIL as free-evalution mode (up to 16K). KEIL project in archve.
Open two terraterm of the program. In our example, COM14 and COM30 and research work of CAN-bus.
Comments