Hello! Recently, we wrote that we have released a new version of the controller for automation - Wiren Board 5. Today we will describe in detail how the electronic part of the device has changed.
In the previous version of the device, we used a WB-IMX233-CORE self-made processor module. It was based on the design of the Olinuxino Micro on an i.MX233 processor.
In WB5, the EV-IMX287-SODIMM module is used instead.
The module is built on the i.mx287 processor - the next model from the same NXP line. Although the processor is newer and will be available at least until 2025, it is fully software compatible with the previous one.
What else has changed: there is now more RAM and it is faster (128MB DDR2). The eMMC chip on 4GB instead of microSD is used as a storage device - it is a more reliable solution. Other minor improvements: USB OTG-port, separate Ethernet, support for CAN and SPDIF, hardware serial ports.
The power supply circuit was slightly altered - the maximum allowable input voltage was raised to 28V, the power of the 5V line was increased.
The GSM module on a fresh chipset from Mediatek requires a lower voltage than before, so the 4.5V line is replaced by 4.0V. From the same powerful line, the processor is now directly powered, which reduces consumption.
A 3.3V voltage in the device is obtained using several LDOs, which also isolate parts of the circuit from each other. Outgoing to the outside world 5V on the USB connector and the terminal strip “5V out” have a current limit and allow software shutdown.
Operating experience with the battery WB4 showed that:
Not every battery will fit inside the case. Those buyers who were going to use Wiren Board with a battery wisely bought it from us.
Since in the case there are places for mounting the board on the second or third floor, we decided to make a separate board with a charging circuit, and attach the battery to it.
The default unit comes with a 1800 mAh quality EEMB battery.
The terminal blocks are the most “expensive” part in the controller, the space on the sides of the case is in short supply. To save money, some functions can be combined, “multiplexed” onto one terminal block. The open collector outputs are well combined with the ADC input. The ADC input is high-resistance, does not interfere with the work output. If the transistor is closed, it does not interfere with voltage measurement.
In parallel with the analog input on the Ain terminals there is a digital input.
The input represents the Schmitt trigger on an operational amplifier. The input impedance is large, you can set the input actuation level, hysteresis.
It is important that the digital input is “fair” and not emulated on analog. This allows you to use the input as a source of interrupts and to measure the pulse duration with great accuracy, which is necessary, for example, when connecting meters.
In controller version 3.5 (known as Wiren Board Smart Home) there was a CAN port (bus controller + transceiver). CAN is a very good protocol: fast, jam-proof, with packet transmission and collision resolution, etc. One sadness is that there is no equipment at an affordable price and few people used it on the controller. Therefore, it was removed from the fourth version - it occupied a couple of terminal blocks and a lot of space on the board. However, in the new CAN processor is already there, you only need a transceiver.
To save terminal blocks, the CAN port in the controller is combined with one of the RS-485 ports. You can work with only one of them at a time. In receive mode, the CAN and RS-485 transceivers do not affect each other. And what would the extension of the RS-485 lines (A and B) not spoil the CAN lines (L and H), and connect them with L, B and H.
In addition to the integrated CAN port, you can add another isolated CAN port to Wiren Board 5 using the appropriate expansion module.
Some manufacturers call the word CAN a non-standard bus, which uses the physical layer from CAN, and the logical one from UART. Such a solution is found mainly in meters, for example, in the popular electricity meters “Mercury”. The controller also supports this bus using a special UART-CAN expansion module, and the Mercury protocol (and many others) too.
1-Wire - a bidirectional bus operating on two or three wires, including power wires. Mainly used for temperature sensors.
The number of devices on the bus in this case is limited primarily by the total consumption.
The radical solution is to use a separate wire for power supply (three-wire connection). But there is another way that improves reliability when using a two-wire bus: the so-called active line tightening. Those. while there is no data transfer, close the line with a transistor to power.
So we did in WB5.
In previous versions of the controller, there was an analog stereo audio output. The DAC was built right into the i.mx233 processor (and the DAC turned out to be there, because i.mx233 is based on the STMP3780 chip for MP3 players, which Freescale bought together with Sigmatel and converted it into an industrial processor).
In the new i.MX28 processor there is no analog sound, but there is a digital S / PDIF output. It and brought to the optical transponder. S / PDIF is of course not plugged into cheap speakers, which may not be convenient, but it allows using the controller as a network player with a normal, high-quality sound. To convert to analog, you can use external inexpensive converters.
There are IR receivers and IR transmitters, usually with a jack3.5 connector with three contacts. And fortunately, they are conditionally compatible on the contacts.
Connector pin | Receiver | Transmitter |
---|---|---|
one | V + | Out |
2 | In | NC |
3 | GND | GND |
Therefore, in the controller placed one universal connector. But for some applications it may be necessary to work with the receiver and with the transmitter. I had to develop my own transceiver, with parasitic receiver power from the signal line.
In this article, we did not talk about hardware solutions that are used in expansion modules and input-output modules for Wiren Board. Since the material turns out to be voluminous (there are already more than a dozen modules!), We will publish it in one of the following articles.
We remind you that until May 15, the unprecedented generosity of pre-order for controllers, which we described in the last article , continues. And in the presence of the device is at normal prices.
As always, we will be glad to comment!
Source: https://habr.com/ru/post/372163/
All Articles