I tried to run Example code from the PZEM libraries (Mandula's, also Mathieu Carbou's). I got frustrated initially because these would not run on my Due, and I finally gave up and bought myself a Uno R4 (Minima). But the problem persists. It seems I keep getting errors associated with Software Serial. I have noticed that there seems to be a LOT of emphasis on Arduino and Arduino-like microcontrollers based on chips of the ESP32 architecture (with which ⸺ I admit! ⸺ I have ZERO experience). Perhaps it is because of the focus on the ESP32 that the Example code relies on the use of "Software Serial", and Software Serial seems to be the root of the problem with running the PZEM examples on both the Due and on the Uno-R4 Minima. Another person has posted PZEM not working on Uno R4 , and it seems that he reached a dead-end.
I would like to know:
- Whether I can make the existing Library(ies) and Examples work on either my Due or on the Uno R4 (Minima); and,
- At the risk of sounding like I am just kvetching for the sake of kvetching......If anyone can offer some insight into WHY Arduino has insisted on calling the R4 Minima an "Uno" if it isn't back-compatible with previous Uno architectures? It seems to me that that is a basic requirement to be called "Uno". In other engineering endeavors, new versions MUST be back-compatible with prior versions. Parts or assemblies which have undergone design changes that make them NOT back-compatible are not versions (nor "revisions")...those new designs must be considered to be entirely NEW devices / parts and they must be given a new **part-**number and a new name.
