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:50] – add pitcures kingkevin | spark_counter [2015/12/05 12:54] – add git link 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 15: | Line 15: | ||
====== 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 85: | Line 85: | ||
USART to query the power meter, SPI to communicate with the nRF24L01+, and the nRF24L01+ protocol are implemented in C (using a lot of interrupts). | USART to query the power meter, SPI to communicate with the nRF24L01+, and the nRF24L01+ protocol are implemented in C (using a lot of interrupts). | ||
- | The source code is available [[https://to.do|in this git]]. | + | The source code is available [[https://git.cuvoodoo.info/ |
I prefer directly writing in the registers as described in the [[http:// | I prefer directly writing in the registers as described in the [[http:// | ||
This way I learn how it works in details. | This way I learn how it works in details. | ||
Line 109: | Line 109: | ||
On the [[# | On the [[# | ||
- | The source code is available [[https://to.do|in this git]]. | + | The source code is available [[https://git.cuvoodoo.info/ |
On the [[# | On the [[# | ||
Line 123: | Line 123: | ||
To receive the measurements I used a [[# | To receive the measurements I used a [[# | ||
- | The source code is available [[https://to.do|in this git]]. | + | The source code is available [[https:// |
- | The values are then simply stored in an [[https:// | + | |
[[http:// | [[http:// | ||
Line 136: | 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