This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
spark_counter [2016/10/01 10:01] – [peacefair PZEM-004] connector kingkevin | spark_counter [2017/01/18 21:14] – [peacefair PZEM-004] kingkevin | ||
---|---|---|---|
Line 52: | Line 52: | ||
The {{: | The {{: | ||
The UART configurations is 9600 bps 8N1. | The UART configurations is 9600 bps 8N1. | ||
- | All commands include a device address (i.e. C0 A8 01 01 = 192.168.1.1). | + | You have to set the device' |
- | Only the device with the specified address will respond. | + | This address will be saved so the next time (even after power down) you can directly query measurements using the address(es) set in the device(s). |
- | This allows to query multiple devices on the same UART port, one after another, when they have different addresses. | + | All commands include the target device address and only the device with the specified address will respond, except for the command setting the address in the first place. |
- | Thus you have to set the device' | + | This allows to query multiple devices connected to the same UART port, one after another, when they have different addresses. |
- | This address will be saved so the next time (even after power down) you can directly query measurements using the address(se) set in the device(s). | + | Note: the optocouplers on the Tx pin of the device have a pull-up resistor. Be sure to remove all but one when using multiple devices, else the low value of the signal will be too high for the receiver to decode the serial communication. |
The commands use the following 7 bytes message format: | The commands use the following 7 bytes message format: | ||
Line 157: | Line 157: | ||
{{: | {{: | ||
- | ====== Orange Pi ====== | ||
- | The [[http:// | ||
- | This single board computer is based on an [[https:// | ||
- | |||
- | For this price the hardware is unbeatable, but the software support is really poor. | ||
- | Also only Android supports the video hardware acceleration currently. | ||
- | The official [[http:// | ||
- | * [[http:// | ||
- | * various [[http:// | ||
- | Since I'll only use it as server I decided to go with debian jessie minimal. | ||
- | |||
- | The pin header is the same as the [[http:// | ||
- | The SPI port to connect the nRF24L01 is also available over ''/ | ||
- | But else this board is not really worth spending time on. | ||
- | |||
- | Also don't forget to put a heat sink on the CPU, else they will be slowed down quite often because of the high temperatures. |