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 17:27] – typo kingkevinspark_counter [2015/10/25 18:04] – update attachment links kingkevin
Line 31: Line 31:
 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.
  
-The {{:power_meter:pzem-004.rtf|manual}} provides the corresponding commands, but lacks some information.+The {{:spark_counter:pzem-004.rtf|manual}} provides the corresponding commands, but lacks some information.
 The UART configurations is 9600 bps 8N1. The UART configurations is 9600 bps 8N1.
 Before querying the measurements, you have to set an address to the device. Before querying the measurements, you have to set an address to the device.
Line 60: Line 60:
 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://www.sdicmicro.com/products.html?ic=SD3004|SDIC microelectronics SD3004]] ({{:power_meter: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}}).
 This chip does all the necessary work: measure voltage and current, drive the 7-segments LED displays, communicate over UART. This chip does all the necessary work: measure voltage and current, drive the 7-segments LED displays, communicate over UART.
 There is only an additional external I²C EEPROM to store the global energy consumption. There is only an additional external I²C EEPROM to store the global energy consumption.
Line 66: Line 66:
 ====== ATmega328P ====== ====== ATmega328P ======
  
-{{ :power_meter:ic_dev_arduino_nano-30.svg?400|Arduino Nano pinout}}+{{ :spark_counter:ic_dev_arduino_nano-30.svg?400|Arduino Nano pinout}}
  
 To read out the measurements from the [[#peacefair PZEM-004|power meter]] and send them over [[#nRF24L01+|radio]] I used an [[http://www.atmel.com/devices/atmega328p.aspx|Atmel ATmega328P]] micro-controller. To read out the measurements from the [[#peacefair PZEM-004|power meter]] and send them over [[#nRF24L01+|radio]] I used an [[http://www.atmel.com/devices/atmega328p.aspx|Atmel ATmega328P]] micro-controller.
Line 89: Line 89:
 ====== nRF24L01+ ====== ====== nRF24L01+ ======
  
-{{ :power_meter:nrf24l01_pinout.jpg?250|nRF24L01+ pinout}}+{{ :spark_counter:nrf24l01_pinout.jpg?250|nRF24L01+ pinout}}
  
 To transmit the measurements from the [[#ATmega328P]] to the [[#Raspberry Pi|RPi]] I used [[https://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01P|nordic nRF24L01+]] RF transceivers. To transmit the measurements from the [[#ATmega328P]] to the [[#Raspberry Pi|RPi]] I used [[https://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01P|nordic nRF24L01+]] RF transceivers.
Line 102: Line 102:
 ====== Raspberry Pi ====== ====== Raspberry Pi ======
  
-{{ :power_meter:pi-gpio-header-26-sm.png?200|RPi P1 header}}+{{ :spark_counter:pi-gpio-header-26-sm.png?200|RPi P1 header}}
  
 To store the measurements I use a [[https://www.raspberrypi.org/products/model-b/|Raspberry Pi Model B1]] ([[http://elinux.org/RPi_HardwareHistory|rev 0002]]). To store the measurements I use a [[https://www.raspberrypi.org/products/model-b/|Raspberry Pi Model B1]] ([[http://elinux.org/RPi_HardwareHistory|rev 0002]]).
spark_counter.txt · Last modified: 2024/01/07 17:49 by 127.0.0.1