spark_counter
Differences
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 [2015/12/05 12:54] – add git link kingkevin | spark_counter [2016/01/26 15:25] – [Orange Pi] kingkevin | ||
---|---|---|---|
Line 37: | Line 37: | ||
The meter also provides a UART port to query the measured values. | The meter also provides a UART port to query the measured values. | ||
Two opto-couplers isolate the main power meter circuits from the TX and RX UART ports. | Two opto-couplers isolate the main power meter circuits from the TX and RX UART ports. | ||
+ | |||
+ | ^ UART ^ PZEM-004 ^ note ^ | ||
+ | | 5V | VDD | 3.3V is not enough | | ||
+ | | TX | RX | the UART pin needs to be able to sink ~4 mA | | ||
+ | | RX | TX | the UART pin needs to be idle high | | ||
+ | | GND | GND | | | ||
+ | |||
+ | I used a CP2102 based USB to UART converter. | ||
+ | CH340 based USB to UART converters will not work (it seems to not be able to sink enough current). | ||
+ | And when using the Arduino you should not use the USB port (for serial), since that interferes with the UART signals. | ||
The {{: | The {{: | ||
Line 137: | Line 147: | ||
The values are then simply stored in an [[https:// | The values are then simply stored in an [[https:// | ||
+ | |||
+ | Note: there is no ARM build of grafana (armel for RPi 1, armhf for later versions). | ||
+ | This is also because there is no ARM release of [[http:// | ||
+ | I'm running grafana on my local computer (amd64), using the remote database on the RPi. | ||
{{: | {{: | ||
+ | |||
+ | ====== 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. |
spark_counter.txt · Last modified: 2024/01/07 17:49 by 127.0.0.1