CuVoodoo

the sorcery of copper

User Tools

Site Tools


spark_counter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
spark_counter [2015/10/25 18:40] – add pictures kingkevinspark_counter [2015/10/25 18:50] – add pitcures kingkevin
Line 10: Line 10:
   * a [[#Raspberry Pi|Raspberry Pi single board computer]] to store the measurements in an [[https://influxdb.com/|influxDB time series database]]   * a [[#Raspberry Pi|Raspberry Pi single board computer]] to store the measurements in an [[https://influxdb.com/|influxDB time series database]]
   * a [[http://grafana.org/|grafana graphical monitoring tool]] to display the electricity consumption   * a [[http://grafana.org/|grafana graphical monitoring tool]] to display the electricity consumption
 +
 +{{:spark_counter:dsc02371.jpg?0x300|complete spark counter}}
  
 ====== peacefair PZEM-004 ====== ====== peacefair PZEM-004 ======
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)
  
-{{:spark_counter:dsc02361.jpg?0x200|}} +{{:spark_counter:dsc02361.jpg?0x200|PZEM-004 front}} 
-{{:spark_counter:dsc02359.jpg?0x200|}}+{{:spark_counter:dsc02359.jpg?0x200|PZEM-004 back}}
  
 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.
  
-{{:spark_counter:dsc02328.jpg?0x200|}}+{{:spark_counter:dsc02328.jpg?0x200|PZEM-004 opto-couplers}}
  
 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.
  
-{{:spark_counter:dsc02344.jpg?0x200|}}{{:spark_counter:dsc02325.jpg?0x200|}}{{:spark_counter:dsc02327.jpg?0x200|}}+{{:spark_counter:dsc02344.jpg?0x200|PZEM-004 board front}} 
 +{{:spark_counter:dsc02325.jpg?0x200|PZEM-004 board back}} 
 +{{:spark_counter:dsc02327.jpg?0x200|PZEM-004 board IC}}
  
 The power meter uses a single chip solution, the [[http://www.sdicmicro.com/products.html?ic=SD3004|SDIC microelectronics SD3004]] ({{:spark_counter:sd3004_datasheet_v0.2c.pdf|datasheet}}). The power meter uses a single chip solution, the [[http://www.sdicmicro.com/products.html?ic=SD3004|SDIC microelectronics SD3004]] ({{:spark_counter:sd3004_datasheet_v0.2c.pdf|datasheet}}).
Line 73: Line 77:
 ====== ATmega328P ====== ====== ATmega328P ======
  
 +{{:spark_counter:dsc02354.jpg?0x200|development board}}
 +{{:spark_counter:dsc02365.jpg?0x200|development setup}}
 {{ :spark_counter:ic_dev_arduino_nano-30.svg?400|Arduino Nano pinout}} {{ :spark_counter:ic_dev_arduino_nano-30.svg?400|Arduino Nano pinout}}
  
Line 96: Line 102:
 ====== nRF24L01+ ====== ====== nRF24L01+ ======
  
-{{:spark_counter:dsc02353.jpg?0x150|}}+{{:spark_counter:dsc02353.jpg?0x150|nRF24L01+ module}}
 {{ :spark_counter:nrf24l01_pinout.jpg?250|nRF24L01+ pinout}} {{ :spark_counter:nrf24l01_pinout.jpg?250|nRF24L01+ pinout}}
  
Line 110: Line 116:
 ====== Raspberry Pi ====== ====== Raspberry Pi ======
  
 +{{:spark_counter:dsc02375.jpg?0x200|RPi setup}}
 {{ :spark_counter:pi-gpio-header-26-sm.png?200|RPi P1 header}} {{ :spark_counter:pi-gpio-header-26-sm.png?200|RPi P1 header}}
  
Line 129: Line 136:
 | GPIO9/MISO | P1_21 | 7 | MISO | | GPIO9/MISO | P1_21 | 7 | MISO |
 | GPIO24 | P1_18 | 8 | IRQ | | GPIO24 | P1_18 | 8 | IRQ |
 +
 +{{:spark_counter:grafana.png?0x200|grafana visualization}}
spark_counter.txt · Last modified: 2024/01/07 17:49 by 127.0.0.1