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/10/25 18:40] – add pictures kingkevin | spark_counter [2015/11/02 22:54] – add datasheet kingkevin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | The spark counter is a custom electricity meter. | + | The spark counter is a custom electricity meter with wireless data logging capability. |
On one side I have: | On one side I have: | ||
Line 10: | Line 10: | ||
* a [[# | * a [[# | ||
* a [[http:// | * a [[http:// | ||
+ | |||
+ | {{: | ||
====== peacefair PZEM-004 ====== | ====== peacefair PZEM-004 ====== | ||
- | The [[http:// | + | The [[http:// |
It: | It: | ||
* measures voltages 80-260 V AC | * measures voltages 80-260 V AC | ||
Line 23: | Line 25: | ||
* provides a TTL UART port to query these values (or set an alarm so to beep when a provided power threshold is reached) | * provides a TTL UART port to query these values (or set an alarm so to beep when a provided power threshold is reached) | ||
- | {{: | + | {{: |
- | {{: | + | {{: |
The voltage measurement is done over the power input port. | The voltage measurement is done over the power input port. | ||
Line 31: | Line 33: | ||
A drawing on the back of the device will describe how to connect the wires. | A drawing on the back of the device will describe how to connect the wires. | ||
- | {{: | + | {{: |
The meter also provides a UART port to query the measured values. | The meter also provides a UART port to query the measured values. | ||
Line 65: | Line 67: | ||
I removed the pizeo-element to prevent this annoying sound. | I removed the pizeo-element to prevent this annoying sound. | ||
- | {{: | + | {{: |
+ | {{: | ||
+ | {{: | ||
The power meter uses a single chip solution, the [[http:// | The power meter uses a single chip solution, the [[http:// | ||
Line 73: | Line 77: | ||
====== ATmega328P ====== | ====== ATmega328P ====== | ||
+ | {{: | ||
+ | {{: | ||
{{ : | {{ : | ||
Line 96: | Line 102: | ||
====== nRF24L01+ ====== | ====== nRF24L01+ ====== | ||
- | {{: | + | {{: |
{{ : | {{ : | ||
Line 110: | Line 116: | ||
====== Raspberry Pi ====== | ====== Raspberry Pi ====== | ||
+ | {{: | ||
{{ : | {{ : | ||
Line 117: | Line 124: | ||
To receive the measurements I used a [[# | To receive the measurements I used a [[# | ||
The source code is available [[https:// | The source code is available [[https:// | ||
- | The values are then simply stored in an [[https:// | ||
[[http:// | [[http:// | ||
Line 129: | Line 135: | ||
| GPIO9/MISO | P1_21 | 7 | MISO | | | GPIO9/MISO | P1_21 | 7 | MISO | | ||
| GPIO24 | P1_18 | 8 | IRQ | | | GPIO24 | P1_18 | 8 | IRQ | | ||
+ | |||
+ | The values are then simply stored in an [[https:// | ||
+ | |||
+ | {{: |
spark_counter.txt · Last modified: 2024/01/07 17:49 by 127.0.0.1