Vermes
Advanced Member level 4
Technical parameters:
- 4 digital inputs
- 4 relay outputs with NC and NO terminals. Output voltage range: from 12 to 30V DC and from 24 to 250V AC
- RTC allows to determine the time of the event
- Bluetooth communication module having a 100m range (class 1) BTM222
- thermometer DS18B20
- RS-485 communication output allowing the communication with other devices of building automation, it is possible to communicate using Modbus or BacNet protocols
- outputs for plugging the control panel, consisted of a display, keyboard and a buzzer
Schema and board drawings are presented below:
And the driver:
Software:
Microcontroller was programmed in AVR-GCC. The control program is based on the task scheduling algorithm. Also semaphores, critical sections and system flags are applied, so it is similar to a mini-RTOS. The most important resource of the device is module BTM222. Everything which was sent, is loaded into the FIFO queue and timely handled with a maximum delay after receiving the package of data is 2ms.
Security access issue can be solved like this:
The external device must send a special code so that it can access the driver control, the same code on the basis of certain parameters is generated by the driver, so it has to calculate, that is why 16MHz quartz was used.
From the phone side, an application that communicates with the driver at the request.
Few versions of the software to the mobile phone was created:
- to control the gate
- to control the shutters
- to open the factory passages (specifically three passages, gate and door x2), this version also is passages recorder
A version with LCD and buttons can be designed, as well as software dedicated to phones with Symbian.
Link to original thread (useful attachment) – Sterownik Bluetooth - kontrola w zasięgu komórki