Categories

ESP8266 SPI Spy

Posted on Friday, May 4th, 2018 in Arduino, wireless by DP

pzem021_front-600

nop head writes:

I came across a very useful post by Thomas Scherrer that describes how to read data from a Peacefair PZEM-021 energy meter by spying on the SPI bus with an Arduino. I decided to do the same thing with an ESP-12F WiFi module so that I could view the results remotely and plot graphs, etc. It took me a lot longer to get this working than I anticipated due to a few problems along the way.
The main hardware difference is the ESP8266 is a 3.3V device but the Arduino is 5V. The PZEM-021 is actually a mixture. The RN8208G metering chip is a 5V device. It is a SPI slave, the SPI master is an STM32 ARM processor that is 3.3V but with 5V tolerant inputs.

More details at HydraRaptor blog.

This entry was posted on Friday, May 4th, 2018 at 10:20 pm and is filed under Arduino, wireless. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Wilko: It is a nice idea, but I had to remove it after finding out it constantly takes 20% of the processor. (draining the battery) It...
  • Kuro: :3
  • Fred Fish: me
  • hli: Sunday++
  • Kurt: And so with the sunshine and the great bursts of leaves growing on the trees, just as things grow in fast movies, I had that...