rangement : premier commit de l'appareil
- pcb/pzem004t : projet KiCad renommé, Gerber v1 ; anciens fichiers KiCad 5 (projet E18-MS1) retirés ; netlist et DRC identiques - firmware/firmware.ino, compilé identique ; ancien dépôt git vide du firmware supprimé - docs : images (schéma, faces, rendus 3D), essais Zigbee PTVO ; documentation web gardée hors git - README, .gitignore Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -0,0 +1,25 @@
|
|||||||
|
# Éditeur et fichiers générés
|
||||||
|
.vscode/
|
||||||
|
*.html
|
||||||
|
*.lst
|
||||||
|
|
||||||
|
# KiCad : sauvegardes automatiques, caches, verrous, réglages locaux
|
||||||
|
*-backups/
|
||||||
|
fp-info-cache
|
||||||
|
*.lck
|
||||||
|
_autosave-*
|
||||||
|
*.kicad_prl
|
||||||
|
# Gerber décompressés (les .zip sont versionnés)
|
||||||
|
pcb/*/*.gerber/
|
||||||
|
|
||||||
|
# FreeCAD : copies de sauvegarde
|
||||||
|
*.FCStd1
|
||||||
|
|
||||||
|
# Les Gerber zippés sont à versionner (le .gitignore global ignore *.zip)
|
||||||
|
!pcb/*/*.gerber.zip
|
||||||
|
|
||||||
|
# KiCad : copies de sauvegarde
|
||||||
|
*-bak
|
||||||
|
|
||||||
|
# Documentation téléchargée sur le web (droits des auteurs)
|
||||||
|
docs/references/
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
# atmega328p--e01c-ml01s--pzem004t
|
||||||
|
|
||||||
|
Compteur d'énergie électrique MySensors : un module de mesure PZEM-004T v3 lu par un ATmega328P, sur une carte custom de 34,3 × 78,7 mm alimentée directement en 230 V par un convertisseur Hi-Link HLK-PM01. Il envoie tension, courant, puissance, énergie et fréquence à Home Assistant par la passerelle MySensors (canal 14), et sert aussi de répéteur.
|
||||||
|
|
||||||
|
⚠️ La carte est alimentée en 230 V (bornier J5, fusible, varistance) : à manipuler hors tension.
|
||||||
|
|
||||||
|
| Dossier | Contenu |
|
||||||
|
|---|---|
|
||||||
|
| [`pcb/`](pcb/) | Carte KiCad et ses Gerber |
|
||||||
|
| [`firmware/`](firmware/) | Croquis Arduino `firmware.ino` |
|
||||||
|
| [`docs/`](docs/) | Images, essais Zigbee PTVO, documentation de référence (hors git) |
|
||||||
|
|
||||||
|
## Carte (`pcb/pzem004t/`)
|
||||||
|
|
||||||
|
- ATmega328P-AU (U1) ; module radio E01C-ML01S (U2, puce nRF24L01+ ; la sérigraphie indique aussi « Si24R1 »).
|
||||||
|
- Alimentation : bornier 230 V (J5), fusible 1 A temporisé (F1), varistance 7D431K (RV1), convertisseur HLK-PM01 230 V → 5 V (PS1), régulateur HT7133 5 V → 3,3 V (U3). Connecteur J3 (« 12V connector » sur le schéma, relié au 5 V).
|
||||||
|
- Connecteur J4 vers le PZEM-004T (5 V, RX, TX, GND).
|
||||||
|
- Trois LED d'état, verte, jaune et rouge (réception, émission, erreur), bouton de reset, pastilles de programmation ISP et série.
|
||||||
|
- Gerber : v1 (24.02.2024), `pzem004t_e01c-ml01s_atmega328p_v1.gerber.zip`.
|
||||||
|
- Les rapports DRC de KiCad signalent 70 violations ; elles existaient avant le rangement du 29.11.2026.
|
||||||
|
- Trois modèles 3D (bouton, LED, résistance) utilisent la variable `${KISYS3DMOD}`, qui n'est plus définie dans KiCad : ils n'apparaissent pas en 3D.
|
||||||
|
|
||||||
|
### En images
|
||||||
|
|
||||||
|
Images générées le 29.11.2026 avec `kicad-cli` (KiCad 10) ; elles sont dans [`docs/images/`](docs/images/).
|
||||||
|
|
||||||
|
**Schéma du circuit**
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**Circuit imprimé, face de dessus** (cuivre, sérigraphie, contour)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**Circuit imprimé, face de dessous** (cuivre, sérigraphie, contour ; vue en miroir, comme carte retournée)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Versions vectorielles à l'échelle réelle : [`pcb-dessus.svg`](docs/images/pcb-dessus.svg), [`pcb-dessous.svg`](docs/images/pcb-dessous.svg).
|
||||||
|
|
||||||
|
**Rendu 3D de la carte**, dessus et dessous
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Firmware (`firmware/firmware.ino`)
|
||||||
|
|
||||||
|
- MySensors, radio `MY_RADIO_RF24`, canal 14, puissance `RF24_PA_MAX` ; répéteur (`MY_REPEATER_FEATURE`), donc alimenté en continu.
|
||||||
|
- PZEM-004T v3 en liaison série logicielle sur D3 / D4 (bibliothèque `PZEM004Tv30`).
|
||||||
|
- Mesures envoyées : puissance, tension, courant, énergie, fréquence (et facteur de puissance déclaré en child 5), avec 500 ms entre deux envois, puis 2 s d'attente avant la mesure suivante.
|
||||||
|
- LED : réception sur A0, émission sur A1, erreur sur A2.
|
||||||
|
- Le croquis s'annonce comme `pzem0004t` version `0.2`.
|
||||||
|
|
||||||
|
Compilation : carte MiniCore, ATmega328P, 8 MHz interne, sans bootloader (programmation ISP), BOD 2,7 V :
|
||||||
|
|
||||||
|
```
|
||||||
|
MiniCore:avr:328:bootloader=no_bootloader,eeprom=keep,variant=modelP,BOD=2v7,LTO=Os_flto,clock=8MHz_internal
|
||||||
|
```
|
||||||
|
|
||||||
|
Bibliothèques nécessaires : MySensors, PZEM004Tv30. La configuration VS Code (`.vscode/arduino.json`, croquis `firmware/firmware.ino`) n'est pas versionnée.
|
||||||
|
|
||||||
|
## Essais Zigbee PTVO (`docs/zigbee-ptvo/`)
|
||||||
|
|
||||||
|
Firmwares et configurations du configurateur PTVO pour un module Zigbee Ebyte E18-MS1 (CC2530) lisant un PZEM-004T : v3 et v3-2 (E18-MS1, v3 datée du 28.01.2023) et v4 (E18-MS1PA2 avec amplificateur RFX2401, 14.04.2023). C'est une piste antérieure à cette carte MySensors.
|
||||||
|
|
||||||
|
## Documentation de référence (`docs/references/`, hors git)
|
||||||
|
|
||||||
|
Photos de modules PZEM-004T, gabarits de perçage et de mesure, et l'article de MiniProjets.net sur un enregistreur à base de Wemos D1 mini et de PZEM-004T (PDF). Ces fichiers viennent du web : ils restent sur le disque mais ne sont pas versionnés.
|
||||||
|
|
||||||
|
## Historique
|
||||||
|
|
||||||
|
Rangé le 29.11.2026 depuis `pzem004t/` (`pzem004t_e01c-ml01s_atmega328p.kicad/` et `arduino-mysensors-pzem004t/`), qui n'était pas versionné : le dossier du firmware contenait un dépôt git vide, supprimé. Ce dépôt commence à cette date.
|
||||||
|
|
||||||
|
- Projet KiCad renommé `atmega328p--e01c-ml01s--pzem004t` ; netlist (30 composants) et DRC identiques avant et après.
|
||||||
|
- Anciens fichiers KiCad 5 retirés (`.pro`, `.sch`, bibliothèques `-cache` / `-rescue`, `sym-lib-table`) : ils venaient d'un projet E18-MS1 antérieur. Le `.kicad_sch-bak` du 25.09.2024 reste sur le disque, hors git.
|
||||||
|
- Firmware compilé identique avant et après.
|
||||||
|
After Width: | Height: | Size: 228 KiB |
|
After Width: | Height: | Size: 324 KiB |
|
After Width: | Height: | Size: 264 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 354 KiB |
|
After Width: | Height: | Size: 194 KiB |
|
After Width: | Height: | Size: 886 KiB |
@@ -0,0 +1,13 @@
|
|||||||
|
Board type: CC2530 + RFX2401 (config control pins!!!)
|
||||||
|
Device type: Router
|
||||||
|
Transmit enable (TXEN): P11Receive enable (RXEN): P10
|
||||||
|
Model ID: ptvo.pzem
|
||||||
|
Update firmware's timestamp : 2023-01-29
|
||||||
|
Status LED: P01, Sending reports
|
||||||
|
Set default reporting interval (s): 20
|
||||||
|
|
||||||
|
Output pins:
|
||||||
|
P02: Output 1, PZEM-004T V3 (Address (dec): 1)
|
||||||
|
|
||||||
|
Input pins:
|
||||||
|
P20: Input 1, External wake-up, External pull-up
|
||||||
@@ -0,0 +1,389 @@
|
|||||||
|
[Common]
|
||||||
|
Left=387
|
||||||
|
Top=104
|
||||||
|
Width=800
|
||||||
|
Board=4
|
||||||
|
Device type=0
|
||||||
|
LED active=True
|
||||||
|
LED inverted=False
|
||||||
|
Pin LED=P01
|
||||||
|
LED mode=2
|
||||||
|
Pin active 1=False
|
||||||
|
Pin No 1=
|
||||||
|
Pin Type 1=0
|
||||||
|
Pull Type 1=0
|
||||||
|
Pin inversed 1=False
|
||||||
|
StatechkState_1=False
|
||||||
|
Pin active 2=True
|
||||||
|
Pin No 2=P02
|
||||||
|
Pin Type 2=30
|
||||||
|
Pull Type 2=0
|
||||||
|
Pin inversed 2=False
|
||||||
|
StatechkState_2=False
|
||||||
|
Pin active 3=True
|
||||||
|
Pin No 3=
|
||||||
|
Pin Type 3=3
|
||||||
|
Pull Type 3=0
|
||||||
|
Pin inversed 3=False
|
||||||
|
StatechkState_3=False
|
||||||
|
Pin active 4=True
|
||||||
|
Pin No 4=
|
||||||
|
Pin Type 4=41
|
||||||
|
Pull Type 4=0
|
||||||
|
Pin inversed 4=False
|
||||||
|
StatechkState_4=False
|
||||||
|
Pin active 5=True
|
||||||
|
Pin No 5=
|
||||||
|
Pin Type 5=4
|
||||||
|
Pull Type 5=0
|
||||||
|
Pin inversed 5=False
|
||||||
|
StatechkState_5=False
|
||||||
|
Pin active 6=False
|
||||||
|
Pin No 6=
|
||||||
|
Pin Type 6=0
|
||||||
|
Pull Type 6=0
|
||||||
|
Pin inversed 6=False
|
||||||
|
StatechkState_6=False
|
||||||
|
Pin active 7=False
|
||||||
|
Pin No 7=
|
||||||
|
Pin Type 7=0
|
||||||
|
Pull Type 7=0
|
||||||
|
Pin inversed 7=False
|
||||||
|
StatechkState_7=False
|
||||||
|
Pin active 8=False
|
||||||
|
Pin No 8=
|
||||||
|
Pin Type 8=0
|
||||||
|
Pull Type 8=0
|
||||||
|
Pin inversed 8=False
|
||||||
|
StatechkState_8=False
|
||||||
|
Pin active 9=False
|
||||||
|
Pin No 9=
|
||||||
|
Pin Type 9=0
|
||||||
|
Pull Type 9=0
|
||||||
|
Pin inversed 9=False
|
||||||
|
StatechkState_9=False
|
||||||
|
Pin active 10=False
|
||||||
|
Pin No 10=
|
||||||
|
Pin Type 10=0
|
||||||
|
Pull Type 10=0
|
||||||
|
Pin inversed 10=False
|
||||||
|
StatechkState_10=False
|
||||||
|
Pin active 11=False
|
||||||
|
Pin No 11=
|
||||||
|
Pin Type 11=0
|
||||||
|
Pull Type 11=0
|
||||||
|
Pin inversed 11=False
|
||||||
|
StatechkState_11=False
|
||||||
|
Pin active 12=False
|
||||||
|
Pin No 12=
|
||||||
|
Pin Type 12=0
|
||||||
|
Pull Type 12=0
|
||||||
|
Pin inversed 12=False
|
||||||
|
StatechkState_12=False
|
||||||
|
Pin active 13=False
|
||||||
|
Pin No 13=
|
||||||
|
Pin Type 13=0
|
||||||
|
Pull Type 13=0
|
||||||
|
Pin inversed 13=False
|
||||||
|
StatechkState_13=False
|
||||||
|
Pin active 14=False
|
||||||
|
Pin No 14=
|
||||||
|
Pin Type 14=0
|
||||||
|
Pull Type 14=0
|
||||||
|
Pin inversed 14=False
|
||||||
|
StatechkState_14=False
|
||||||
|
Pin active 15=False
|
||||||
|
Pin No 15=
|
||||||
|
Pin Type 15=0
|
||||||
|
Pull Type 15=0
|
||||||
|
Pin inversed 15=False
|
||||||
|
StatechkState_15=False
|
||||||
|
Pin active 16=False
|
||||||
|
Pin No 16=
|
||||||
|
Pin Type 16=0
|
||||||
|
Pull Type 16=0
|
||||||
|
Pin inversed 16=False
|
||||||
|
StatechkState_16=False
|
||||||
|
Pin active 17=True
|
||||||
|
Pin No 17=P20
|
||||||
|
Pin Type 17=32
|
||||||
|
Pull Type 17=0
|
||||||
|
Pin inversed 17=False
|
||||||
|
LinkchkLink_17=False
|
||||||
|
SwitchchkSwitch_17=False
|
||||||
|
HoldchkHold_17=False
|
||||||
|
DoublechkDouble_17=False
|
||||||
|
TripplechkTripple_17=False
|
||||||
|
Pin active 18=False
|
||||||
|
Pin No 18=
|
||||||
|
Pin Type 18=0
|
||||||
|
Pull Type 18=0
|
||||||
|
Pin inversed 18=False
|
||||||
|
LinkchkLink_18=False
|
||||||
|
SwitchchkSwitch_18=False
|
||||||
|
HoldchkHold_18=False
|
||||||
|
DoublechkDouble_18=False
|
||||||
|
TripplechkTripple_18=False
|
||||||
|
Pin active 19=False
|
||||||
|
Pin No 19=
|
||||||
|
Pin Type 19=0
|
||||||
|
Pull Type 19=0
|
||||||
|
Pin inversed 19=False
|
||||||
|
LinkchkLink_19=False
|
||||||
|
SwitchchkSwitch_19=False
|
||||||
|
HoldchkHold_19=False
|
||||||
|
DoublechkDouble_19=False
|
||||||
|
TripplechkTripple_19=False
|
||||||
|
Pin active 20=False
|
||||||
|
Pin No 20=
|
||||||
|
Pin Type 20=0
|
||||||
|
Pull Type 20=0
|
||||||
|
Pin inversed 20=False
|
||||||
|
LinkchkLink_20=False
|
||||||
|
SwitchchkSwitch_20=False
|
||||||
|
HoldchkHold_20=False
|
||||||
|
DoublechkDouble_20=False
|
||||||
|
TripplechkTripple_20=False
|
||||||
|
Pin active 21=False
|
||||||
|
Pin No 21=
|
||||||
|
Pin Type 21=0
|
||||||
|
Pull Type 21=0
|
||||||
|
Pin inversed 21=False
|
||||||
|
LinkchkLink_21=False
|
||||||
|
SwitchchkSwitch_21=False
|
||||||
|
HoldchkHold_21=False
|
||||||
|
DoublechkDouble_21=False
|
||||||
|
TripplechkTripple_21=False
|
||||||
|
Pin active 22=False
|
||||||
|
Pin No 22=
|
||||||
|
Pin Type 22=0
|
||||||
|
Pull Type 22=0
|
||||||
|
Pin inversed 22=False
|
||||||
|
LinkchkLink_22=False
|
||||||
|
SwitchchkSwitch_22=False
|
||||||
|
HoldchkHold_22=False
|
||||||
|
DoublechkDouble_22=False
|
||||||
|
TripplechkTripple_22=False
|
||||||
|
Pin active 23=False
|
||||||
|
Pin No 23=
|
||||||
|
Pin Type 23=0
|
||||||
|
Pull Type 23=0
|
||||||
|
Pin inversed 23=False
|
||||||
|
LinkchkLink_23=False
|
||||||
|
SwitchchkSwitch_23=False
|
||||||
|
HoldchkHold_23=False
|
||||||
|
DoublechkDouble_23=False
|
||||||
|
TripplechkTripple_23=False
|
||||||
|
Pin active 24=False
|
||||||
|
Pin No 24=
|
||||||
|
Pin Type 24=0
|
||||||
|
Pull Type 24=0
|
||||||
|
Pin inversed 24=False
|
||||||
|
LinkchkLink_24=False
|
||||||
|
SwitchchkSwitch_24=False
|
||||||
|
HoldchkHold_24=False
|
||||||
|
DoublechkDouble_24=False
|
||||||
|
TripplechkTripple_24=False
|
||||||
|
Pin active 25=False
|
||||||
|
Pin No 25=
|
||||||
|
Pin Type 25=0
|
||||||
|
Pull Type 25=0
|
||||||
|
Pin inversed 25=False
|
||||||
|
LinkchkLink_25=False
|
||||||
|
SwitchchkSwitch_25=False
|
||||||
|
HoldchkHold_25=False
|
||||||
|
DoublechkDouble_25=False
|
||||||
|
TripplechkTripple_25=False
|
||||||
|
Pin active 26=False
|
||||||
|
Pin No 26=
|
||||||
|
Pin Type 26=0
|
||||||
|
Pull Type 26=0
|
||||||
|
Pin inversed 26=False
|
||||||
|
LinkchkLink_26=False
|
||||||
|
SwitchchkSwitch_26=False
|
||||||
|
HoldchkHold_26=False
|
||||||
|
DoublechkDouble_26=False
|
||||||
|
TripplechkTripple_26=False
|
||||||
|
Pin active 27=False
|
||||||
|
Pin No 27=
|
||||||
|
Pin Type 27=0
|
||||||
|
Pull Type 27=0
|
||||||
|
Pin inversed 27=False
|
||||||
|
LinkchkLink_27=False
|
||||||
|
SwitchchkSwitch_27=False
|
||||||
|
HoldchkHold_27=False
|
||||||
|
DoublechkDouble_27=False
|
||||||
|
TripplechkTripple_27=False
|
||||||
|
Pin active 28=False
|
||||||
|
Pin No 28=
|
||||||
|
Pin Type 28=0
|
||||||
|
Pull Type 28=0
|
||||||
|
Pin inversed 28=False
|
||||||
|
LinkchkLink_28=False
|
||||||
|
SwitchchkSwitch_28=False
|
||||||
|
HoldchkHold_28=False
|
||||||
|
DoublechkDouble_28=False
|
||||||
|
TripplechkTripple_28=False
|
||||||
|
Pin active 29=False
|
||||||
|
Pin No 29=
|
||||||
|
Pin Type 29=0
|
||||||
|
Pull Type 29=0
|
||||||
|
Pin inversed 29=False
|
||||||
|
LinkchkLink_29=False
|
||||||
|
SwitchchkSwitch_29=False
|
||||||
|
HoldchkHold_29=False
|
||||||
|
DoublechkDouble_29=False
|
||||||
|
TripplechkTripple_29=False
|
||||||
|
Pin active 30=False
|
||||||
|
Pin No 30=
|
||||||
|
Pin Type 30=0
|
||||||
|
Pull Type 30=0
|
||||||
|
Pin inversed 30=False
|
||||||
|
LinkchkLink_30=False
|
||||||
|
SwitchchkSwitch_30=False
|
||||||
|
HoldchkHold_30=False
|
||||||
|
DoublechkDouble_30=False
|
||||||
|
TripplechkTripple_30=False
|
||||||
|
Pin active 31=False
|
||||||
|
Pin No 31=
|
||||||
|
Pin Type 31=0
|
||||||
|
Pull Type 31=0
|
||||||
|
Pin inversed 31=False
|
||||||
|
LinkchkLink_31=False
|
||||||
|
SwitchchkSwitch_31=False
|
||||||
|
HoldchkHold_31=False
|
||||||
|
DoublechkDouble_31=False
|
||||||
|
TripplechkTripple_31=False
|
||||||
|
Pin active 32=False
|
||||||
|
Pin No 32=
|
||||||
|
Pin Type 32=0
|
||||||
|
Pull Type 32=0
|
||||||
|
Pin inversed 32=False
|
||||||
|
LinkchkLink_32=False
|
||||||
|
SwitchchkSwitch_32=False
|
||||||
|
HoldchkHold_32=False
|
||||||
|
DoublechkDouble_32=False
|
||||||
|
TripplechkTripple_32=False
|
||||||
|
Param1_1=
|
||||||
|
Param2_1=
|
||||||
|
Param3_1=
|
||||||
|
Param4_1=
|
||||||
|
Param5_1=
|
||||||
|
Param6_1=
|
||||||
|
Param1_2=1
|
||||||
|
Param2_2=
|
||||||
|
Param3_2=
|
||||||
|
Param4_2=
|
||||||
|
Param5_2=
|
||||||
|
Param6_2=
|
||||||
|
Param1_3=
|
||||||
|
Param2_3=
|
||||||
|
Param3_3=
|
||||||
|
Param4_3=
|
||||||
|
Param5_3=
|
||||||
|
Param6_3=
|
||||||
|
Param1_4=
|
||||||
|
Param2_4=
|
||||||
|
Param3_4=
|
||||||
|
Param4_4=
|
||||||
|
Param5_4=
|
||||||
|
Param6_4=
|
||||||
|
Param1_5=
|
||||||
|
Param2_5=
|
||||||
|
Param3_5=
|
||||||
|
Param4_5=
|
||||||
|
Param5_5=
|
||||||
|
Param6_5=
|
||||||
|
Param1_6=
|
||||||
|
Param2_6=
|
||||||
|
Param3_6=
|
||||||
|
Param4_6=
|
||||||
|
Param5_6=
|
||||||
|
Param6_6=
|
||||||
|
Param1_7=
|
||||||
|
Param2_7=
|
||||||
|
Param3_7=
|
||||||
|
Param4_7=
|
||||||
|
Param5_7=
|
||||||
|
Param6_7=
|
||||||
|
Param1_8=
|
||||||
|
Param2_8=
|
||||||
|
Param3_8=
|
||||||
|
Param4_8=
|
||||||
|
Param5_8=
|
||||||
|
Param6_8=
|
||||||
|
Param1_9=
|
||||||
|
Param2_9=
|
||||||
|
Param3_9=
|
||||||
|
Param4_9=
|
||||||
|
Param5_9=
|
||||||
|
Param6_9=
|
||||||
|
Param1_10=
|
||||||
|
Param2_10=
|
||||||
|
Param3_10=
|
||||||
|
Param4_10=
|
||||||
|
Param5_10=
|
||||||
|
Param6_10=
|
||||||
|
Param1_11=
|
||||||
|
Param2_11=
|
||||||
|
Param3_11=
|
||||||
|
Param4_11=
|
||||||
|
Param5_11=
|
||||||
|
Param6_11=
|
||||||
|
Param1_12=
|
||||||
|
Param2_12=
|
||||||
|
Param3_12=
|
||||||
|
Param4_12=
|
||||||
|
Param5_12=
|
||||||
|
Param6_12=
|
||||||
|
Param1_13=
|
||||||
|
Param2_13=
|
||||||
|
Param3_13=
|
||||||
|
Param4_13=
|
||||||
|
Param5_13=
|
||||||
|
Param6_13=
|
||||||
|
Param1_14=
|
||||||
|
Param2_14=
|
||||||
|
Param3_14=
|
||||||
|
Param4_14=
|
||||||
|
Param5_14=
|
||||||
|
Param6_14=
|
||||||
|
Param1_15=
|
||||||
|
Param2_15=
|
||||||
|
Param3_15=
|
||||||
|
Param4_15=
|
||||||
|
Param5_15=
|
||||||
|
Param6_15=
|
||||||
|
Param1_16=
|
||||||
|
Param2_16=
|
||||||
|
Param3_16=
|
||||||
|
Param4_16=
|
||||||
|
Param5_16=
|
||||||
|
Param6_16=
|
||||||
|
|
||||||
|
[Expert]
|
||||||
|
ManufacturerIdEn=False
|
||||||
|
ManufacturerId=64447
|
||||||
|
ManufacturerNameEn=False
|
||||||
|
ManufacturerName=ptvo.info
|
||||||
|
ModelIdEn=True
|
||||||
|
ModelId=ptvo.pzem
|
||||||
|
Icon enabled=False
|
||||||
|
Icon=
|
||||||
|
LocationDescriptionEn=False
|
||||||
|
LocationDescription=
|
||||||
|
LinkKeyEn=False
|
||||||
|
LinkKey=01030507090B0D0F00020406080A0C0D
|
||||||
|
ReportIntEn=True
|
||||||
|
ReportInt=15
|
||||||
|
DateCode=True
|
||||||
|
WatchDog=False
|
||||||
|
PSM mode wait commands=False
|
||||||
|
PSM mode net poll enabled=False
|
||||||
|
PSM mode net poll interval=0
|
||||||
|
Disable reset=False
|
||||||
|
|
||||||
|
[PA]
|
||||||
|
TX EN=P11
|
||||||
|
RX EN=P10
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
Board type: CC2530 + RFX2401 (config control pins!!!)
|
||||||
|
Device type: Router
|
||||||
|
Transmit enable (TXEN): P12Receive enable (RXEN): P14
|
||||||
|
Update firmware's timestamp : 2023-01-28
|
||||||
|
Status LED: P01, Sending reports
|
||||||
|
Set default reporting interval (s): 15
|
||||||
|
|
||||||
|
Output pins:
|
||||||
|
P02: Output 2, PZEM-004T V3 (Address (dec): 1)
|
||||||
|
|
||||||
|
Input pins:
|
||||||
|
P20: Input 1, External wake-up, External pull-up
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Board type: CC2530 + RFX2401 (config control pins!!!)
|
||||||
|
Device type: Router
|
||||||
|
Transmit enable (TXEN): P11, Receive enable (RXEN): P10
|
||||||
|
Model ID: ptvo.pzem
|
||||||
|
Update firmware's timestamp : 2023-04-14
|
||||||
|
Status LED: P01, Periodic (every 5 seconds)
|
||||||
|
Set default reporting interval (s): 5
|
||||||
|
|
||||||
|
Output pins:
|
||||||
|
P02: Output 1, PZEM-004T V3 (Address (dec): 248)
|
||||||
|
|
||||||
|
Input pins:
|
||||||
|
P20: Input 1, External wake-up, External pull-up
|
||||||
@@ -0,0 +1,161 @@
|
|||||||
|
|
||||||
|
// #define MY_DEBUG
|
||||||
|
// Enable and select radio type attached
|
||||||
|
#define MY_RADIO_RF24
|
||||||
|
// #define MY_RF24_PA_LEVEL RF24_PA_MIN
|
||||||
|
// #define MY_RF24_PA_LEVEL RF24_PA_LOW
|
||||||
|
// #define MY_RF24_PA_LEVEL RF24_PA_HIGH
|
||||||
|
#define MY_RF24_PA_LEVEL RF24_PA_MAX
|
||||||
|
|
||||||
|
#define MY_RF24_CHANNEL 14
|
||||||
|
|
||||||
|
#define MY_REPEATER_FEATURE
|
||||||
|
|
||||||
|
#define MY_DEFAULT_RX_LED_PIN A0
|
||||||
|
#define MY_DEFAULT_TX_LED_PIN A1
|
||||||
|
#define MY_DEFAULT_ERR_LED_PIN A2
|
||||||
|
|
||||||
|
#include <SPI.h>
|
||||||
|
#include <MySensors.h>
|
||||||
|
|
||||||
|
#include <PZEM004Tv30.h>
|
||||||
|
#include <Wire.h>
|
||||||
|
|
||||||
|
PZEM004Tv30 pzem(3,4);
|
||||||
|
|
||||||
|
#define CHILD_ID_VOLTAGE 0
|
||||||
|
#define CHILD_ID_CURRENT 1
|
||||||
|
#define CHILD_ID_POWER 2
|
||||||
|
#define CHILD_ID_ENERGY 3
|
||||||
|
#define CHILD_ID_FREQUENCY 4
|
||||||
|
#define CHILD_ID_PF 5
|
||||||
|
|
||||||
|
MyMessage voltageMsg(CHILD_ID_VOLTAGE, V_VOLTAGE);
|
||||||
|
MyMessage currentMsg(CHILD_ID_CURRENT, V_CURRENT);
|
||||||
|
MyMessage powerMsg(CHILD_ID_POWER, V_WATT);
|
||||||
|
MyMessage energyMsg(CHILD_ID_ENERGY, V_KWH);
|
||||||
|
MyMessage frequencyMsg(CHILD_ID_FREQUENCY, V_VAR1);
|
||||||
|
MyMessage pfMsg(CHILD_ID_PF, V_VAR2);
|
||||||
|
|
||||||
|
|
||||||
|
double thisTime = 0;
|
||||||
|
double powerLastTime = 0;
|
||||||
|
double energyLastTime = 0;
|
||||||
|
|
||||||
|
void presentation()
|
||||||
|
{
|
||||||
|
#ifdef MY_DEBUG
|
||||||
|
Serial.println("- - - - - presentation - - - - -");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
sendSketchInfo("pzem0004t", "0.2");
|
||||||
|
|
||||||
|
present(CHILD_ID_VOLTAGE, S_MULTIMETER, "voltage");
|
||||||
|
sleep(400);
|
||||||
|
present(CHILD_ID_CURRENT, S_MULTIMETER, "current");
|
||||||
|
sleep(400);
|
||||||
|
present(CHILD_ID_POWER, S_POWER, "power");
|
||||||
|
sleep(400);
|
||||||
|
present(CHILD_ID_ENERGY, S_POWER, "energy");
|
||||||
|
sleep(400);
|
||||||
|
present(CHILD_ID_FREQUENCY, S_CUSTOM, "frequency");
|
||||||
|
sleep(400);
|
||||||
|
present(CHILD_ID_PF, S_CUSTOM, "power factor");
|
||||||
|
sleep(400);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
#ifdef MY_DEBUG
|
||||||
|
Serial.println("- - - - - setup - - - - -");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
#ifdef MY_DEBUG
|
||||||
|
Serial.println("- - - - - loop - - - - -");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
thisTime = millis();
|
||||||
|
|
||||||
|
if ((thisTime - powerLastTime) > 2000) {
|
||||||
|
powerLastTime = thisTime;
|
||||||
|
|
||||||
|
float power = pzem.power();
|
||||||
|
if (power != NAN) {
|
||||||
|
Serial.print("Power: ");
|
||||||
|
Serial.print(power);
|
||||||
|
Serial.println("W");
|
||||||
|
send(powerMsg.set(power, 0));
|
||||||
|
sleep(500);
|
||||||
|
} else {
|
||||||
|
Serial.println("Error reading power");
|
||||||
|
}
|
||||||
|
|
||||||
|
float voltage = pzem.voltage();
|
||||||
|
if (voltage != NAN) {
|
||||||
|
Serial.print("Voltage: ");
|
||||||
|
Serial.print(voltage);
|
||||||
|
Serial.println("V");
|
||||||
|
send(voltageMsg.set(voltage, 0));
|
||||||
|
sleep(500);
|
||||||
|
} else {
|
||||||
|
Serial.println("Error reading voltage");
|
||||||
|
}
|
||||||
|
|
||||||
|
float current = pzem.current();
|
||||||
|
if (current != NAN) {
|
||||||
|
Serial.print("Current: ");
|
||||||
|
Serial.print(current);
|
||||||
|
Serial.println("A");
|
||||||
|
send(currentMsg.set(current, 3));
|
||||||
|
sleep(500);
|
||||||
|
} else {
|
||||||
|
Serial.println("Error reading current");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if ((thisTime - energyLastTime) > 60000) {
|
||||||
|
energyLastTime = thisTime;
|
||||||
|
|
||||||
|
float energy = pzem.energy();
|
||||||
|
if (energy != NAN) {
|
||||||
|
Serial.print("Energy: ");
|
||||||
|
Serial.print(energy, 3);
|
||||||
|
Serial.println("kWh");
|
||||||
|
send(energyMsg.set(energy, 2));
|
||||||
|
sleep(500);
|
||||||
|
} else {
|
||||||
|
Serial.println("Error reading energy");
|
||||||
|
}
|
||||||
|
|
||||||
|
float frequency = pzem.frequency();
|
||||||
|
if (frequency != NAN) {
|
||||||
|
Serial.print("Frequency: ");
|
||||||
|
Serial.print(frequency, 1);
|
||||||
|
Serial.println("Hz");
|
||||||
|
send(frequencyMsg.set(frequency, 0));
|
||||||
|
sleep(500);
|
||||||
|
} else {
|
||||||
|
Serial.println("Error reading frequency");
|
||||||
|
}
|
||||||
|
|
||||||
|
float pf = pzem.pf();
|
||||||
|
if (pf != NAN) {
|
||||||
|
Serial.print("PF: ");
|
||||||
|
Serial.println(pf);
|
||||||
|
send(pfMsg.set(pf, 2));
|
||||||
|
sleep(500);
|
||||||
|
} else {
|
||||||
|
Serial.println("Error reading power factor");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Serial.println();
|
||||||
|
delay(2000);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,684 @@
|
|||||||
|
{
|
||||||
|
"board": {
|
||||||
|
"3dviewports": [],
|
||||||
|
"design_settings": {
|
||||||
|
"defaults": {
|
||||||
|
"apply_defaults_to_fp_fields": false,
|
||||||
|
"apply_defaults_to_fp_shapes": false,
|
||||||
|
"apply_defaults_to_fp_text": false,
|
||||||
|
"board_outline_line_width": 0.05,
|
||||||
|
"copper_line_width": 0.2,
|
||||||
|
"copper_text_italic": false,
|
||||||
|
"copper_text_size_h": 1.5,
|
||||||
|
"copper_text_size_v": 1.5,
|
||||||
|
"copper_text_thickness": 0.3,
|
||||||
|
"copper_text_upright": false,
|
||||||
|
"courtyard_line_width": 0.05,
|
||||||
|
"dimension_precision": 4,
|
||||||
|
"dimension_units": 3,
|
||||||
|
"dimensions": {
|
||||||
|
"arrow_length": 1270000,
|
||||||
|
"extension_offset": 500000,
|
||||||
|
"keep_text_aligned": true,
|
||||||
|
"suppress_zeroes": false,
|
||||||
|
"text_position": 0,
|
||||||
|
"units_format": 1
|
||||||
|
},
|
||||||
|
"fab_line_width": 0.1,
|
||||||
|
"fab_text_italic": false,
|
||||||
|
"fab_text_size_h": 1.0,
|
||||||
|
"fab_text_size_v": 1.0,
|
||||||
|
"fab_text_thickness": 0.15,
|
||||||
|
"fab_text_upright": false,
|
||||||
|
"other_line_width": 0.1,
|
||||||
|
"other_text_italic": false,
|
||||||
|
"other_text_size_h": 1.0,
|
||||||
|
"other_text_size_v": 1.0,
|
||||||
|
"other_text_thickness": 0.15,
|
||||||
|
"other_text_upright": false,
|
||||||
|
"pads": {
|
||||||
|
"drill": 3.0,
|
||||||
|
"height": 3.0,
|
||||||
|
"width": 3.0
|
||||||
|
},
|
||||||
|
"silk_line_width": 0.12,
|
||||||
|
"silk_text_italic": false,
|
||||||
|
"silk_text_size_h": 1.0,
|
||||||
|
"silk_text_size_v": 1.0,
|
||||||
|
"silk_text_thickness": 0.15,
|
||||||
|
"silk_text_upright": false,
|
||||||
|
"zones": {
|
||||||
|
"45_degree_only": false,
|
||||||
|
"min_clearance": 0.508
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"diff_pair_dimensions": [
|
||||||
|
{
|
||||||
|
"gap": 0.0,
|
||||||
|
"via_gap": 0.0,
|
||||||
|
"width": 0.0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"drc_exclusions": [],
|
||||||
|
"meta": {
|
||||||
|
"filename": "board_design_settings.json",
|
||||||
|
"version": 2
|
||||||
|
},
|
||||||
|
"rule_severities": {
|
||||||
|
"annular_width": "error",
|
||||||
|
"clearance": "error",
|
||||||
|
"connection_width": "warning",
|
||||||
|
"copper_edge_clearance": "error",
|
||||||
|
"copper_sliver": "warning",
|
||||||
|
"courtyards_overlap": "error",
|
||||||
|
"diff_pair_gap_out_of_range": "error",
|
||||||
|
"diff_pair_uncoupled_length_too_long": "error",
|
||||||
|
"drill_out_of_range": "error",
|
||||||
|
"duplicate_footprints": "warning",
|
||||||
|
"extra_footprint": "warning",
|
||||||
|
"footprint": "error",
|
||||||
|
"footprint_symbol_mismatch": "warning",
|
||||||
|
"footprint_type_mismatch": "error",
|
||||||
|
"hole_clearance": "error",
|
||||||
|
"hole_near_hole": "error",
|
||||||
|
"invalid_outline": "error",
|
||||||
|
"isolated_copper": "warning",
|
||||||
|
"item_on_disabled_layer": "error",
|
||||||
|
"items_not_allowed": "error",
|
||||||
|
"length_out_of_range": "error",
|
||||||
|
"lib_footprint_issues": "warning",
|
||||||
|
"lib_footprint_mismatch": "warning",
|
||||||
|
"malformed_courtyard": "error",
|
||||||
|
"microvia_drill_out_of_range": "error",
|
||||||
|
"missing_courtyard": "ignore",
|
||||||
|
"missing_footprint": "warning",
|
||||||
|
"net_conflict": "warning",
|
||||||
|
"npth_inside_courtyard": "ignore",
|
||||||
|
"padstack": "error",
|
||||||
|
"pth_inside_courtyard": "ignore",
|
||||||
|
"shorting_items": "error",
|
||||||
|
"silk_edge_clearance": "warning",
|
||||||
|
"silk_over_copper": "warning",
|
||||||
|
"silk_overlap": "warning",
|
||||||
|
"skew_out_of_range": "error",
|
||||||
|
"solder_mask_bridge": "ignore",
|
||||||
|
"starved_thermal": "ignore",
|
||||||
|
"text_height": "warning",
|
||||||
|
"text_thickness": "warning",
|
||||||
|
"through_hole_pad_without_hole": "error",
|
||||||
|
"too_many_vias": "error",
|
||||||
|
"track_dangling": "warning",
|
||||||
|
"track_width": "error",
|
||||||
|
"tracks_crossing": "error",
|
||||||
|
"unconnected_items": "error",
|
||||||
|
"unresolved_variable": "error",
|
||||||
|
"via_dangling": "warning",
|
||||||
|
"zones_intersect": "error"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"allow_blind_buried_vias": false,
|
||||||
|
"allow_microvias": false,
|
||||||
|
"max_error": 0.005,
|
||||||
|
"min_clearance": 0.0,
|
||||||
|
"min_connection": 0.0,
|
||||||
|
"min_copper_edge_clearance": 0.05,
|
||||||
|
"min_hole_clearance": 0.25,
|
||||||
|
"min_hole_to_hole": 0.25,
|
||||||
|
"min_microvia_diameter": 0.2,
|
||||||
|
"min_microvia_drill": 0.1,
|
||||||
|
"min_resolved_spokes": 2,
|
||||||
|
"min_silk_clearance": 0.0,
|
||||||
|
"min_text_height": 0.8,
|
||||||
|
"min_text_thickness": 0.08,
|
||||||
|
"min_through_hole_diameter": 0.3,
|
||||||
|
"min_track_width": 0.2,
|
||||||
|
"min_via_annular_width": 0.05,
|
||||||
|
"min_via_diameter": 0.4,
|
||||||
|
"solder_mask_to_copper_clearance": 0.0,
|
||||||
|
"use_height_for_length_calcs": true
|
||||||
|
},
|
||||||
|
"teardrop_options": [
|
||||||
|
{
|
||||||
|
"td_onpadsmd": true,
|
||||||
|
"td_onroundshapesonly": false,
|
||||||
|
"td_ontrackend": false,
|
||||||
|
"td_onviapad": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"teardrop_parameters": [
|
||||||
|
{
|
||||||
|
"td_allow_use_two_tracks": true,
|
||||||
|
"td_curve_segcount": 0,
|
||||||
|
"td_height_ratio": 1.0,
|
||||||
|
"td_length_ratio": 0.5,
|
||||||
|
"td_maxheight": 2.0,
|
||||||
|
"td_maxlen": 1.0,
|
||||||
|
"td_on_pad_in_zone": false,
|
||||||
|
"td_target_name": "td_round_shape",
|
||||||
|
"td_width_to_size_filter_ratio": 0.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"td_allow_use_two_tracks": true,
|
||||||
|
"td_curve_segcount": 0,
|
||||||
|
"td_height_ratio": 1.0,
|
||||||
|
"td_length_ratio": 0.5,
|
||||||
|
"td_maxheight": 2.0,
|
||||||
|
"td_maxlen": 1.0,
|
||||||
|
"td_on_pad_in_zone": false,
|
||||||
|
"td_target_name": "td_rect_shape",
|
||||||
|
"td_width_to_size_filter_ratio": 0.9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"td_allow_use_two_tracks": true,
|
||||||
|
"td_curve_segcount": 0,
|
||||||
|
"td_height_ratio": 1.0,
|
||||||
|
"td_length_ratio": 0.5,
|
||||||
|
"td_maxheight": 2.0,
|
||||||
|
"td_maxlen": 1.0,
|
||||||
|
"td_on_pad_in_zone": false,
|
||||||
|
"td_target_name": "td_track_end",
|
||||||
|
"td_width_to_size_filter_ratio": 0.9
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"track_widths": [
|
||||||
|
0.0,
|
||||||
|
1.0,
|
||||||
|
2.0
|
||||||
|
],
|
||||||
|
"tuning_pattern_settings": {
|
||||||
|
"diff_pair_defaults": {
|
||||||
|
"corner_radius_percentage": 80,
|
||||||
|
"corner_style": 1,
|
||||||
|
"max_amplitude": 1.0,
|
||||||
|
"min_amplitude": 0.2,
|
||||||
|
"single_sided": false,
|
||||||
|
"spacing": 1.0
|
||||||
|
},
|
||||||
|
"diff_pair_skew_defaults": {
|
||||||
|
"corner_radius_percentage": 80,
|
||||||
|
"corner_style": 1,
|
||||||
|
"max_amplitude": 1.0,
|
||||||
|
"min_amplitude": 0.2,
|
||||||
|
"single_sided": false,
|
||||||
|
"spacing": 0.6
|
||||||
|
},
|
||||||
|
"single_track_defaults": {
|
||||||
|
"corner_radius_percentage": 80,
|
||||||
|
"corner_style": 1,
|
||||||
|
"max_amplitude": 1.0,
|
||||||
|
"min_amplitude": 0.2,
|
||||||
|
"single_sided": false,
|
||||||
|
"spacing": 0.6
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"via_dimensions": [
|
||||||
|
{
|
||||||
|
"diameter": 0.0,
|
||||||
|
"drill": 0.0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"diameter": 0.8,
|
||||||
|
"drill": 0.0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"diameter": 1.0,
|
||||||
|
"drill": 0.0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"zones_allow_external_fillets": false,
|
||||||
|
"zones_use_no_outline": true
|
||||||
|
},
|
||||||
|
"ipc2581": {
|
||||||
|
"dist": "",
|
||||||
|
"distpn": "",
|
||||||
|
"internal_id": "",
|
||||||
|
"mfg": "",
|
||||||
|
"mpn": ""
|
||||||
|
},
|
||||||
|
"layer_presets": [],
|
||||||
|
"viewports": []
|
||||||
|
},
|
||||||
|
"boards": [],
|
||||||
|
"cvpcb": {
|
||||||
|
"equivalence_files": []
|
||||||
|
},
|
||||||
|
"erc": {
|
||||||
|
"erc_exclusions": [],
|
||||||
|
"meta": {
|
||||||
|
"version": 0
|
||||||
|
},
|
||||||
|
"pin_map": [
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
[
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2,
|
||||||
|
2
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"rule_severities": {
|
||||||
|
"bus_definition_conflict": "error",
|
||||||
|
"bus_entry_needed": "error",
|
||||||
|
"bus_to_bus_conflict": "error",
|
||||||
|
"bus_to_net_conflict": "error",
|
||||||
|
"conflicting_netclasses": "error",
|
||||||
|
"different_unit_footprint": "error",
|
||||||
|
"different_unit_net": "error",
|
||||||
|
"duplicate_reference": "error",
|
||||||
|
"duplicate_sheet_names": "error",
|
||||||
|
"endpoint_off_grid": "warning",
|
||||||
|
"extra_units": "error",
|
||||||
|
"global_label_dangling": "warning",
|
||||||
|
"hier_label_mismatch": "error",
|
||||||
|
"label_dangling": "error",
|
||||||
|
"lib_symbol_issues": "warning",
|
||||||
|
"missing_bidi_pin": "warning",
|
||||||
|
"missing_input_pin": "warning",
|
||||||
|
"missing_power_pin": "error",
|
||||||
|
"missing_unit": "warning",
|
||||||
|
"multiple_net_names": "warning",
|
||||||
|
"net_not_bus_member": "warning",
|
||||||
|
"no_connect_connected": "warning",
|
||||||
|
"no_connect_dangling": "warning",
|
||||||
|
"pin_not_connected": "error",
|
||||||
|
"pin_not_driven": "error",
|
||||||
|
"pin_to_pin": "warning",
|
||||||
|
"power_pin_not_driven": "error",
|
||||||
|
"similar_labels": "warning",
|
||||||
|
"simulation_model_issue": "error",
|
||||||
|
"unannotated": "error",
|
||||||
|
"unit_value_mismatch": "error",
|
||||||
|
"unresolved_variable": "error",
|
||||||
|
"wire_dangling": "error"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"pinned_footprint_libs": [],
|
||||||
|
"pinned_symbol_libs": []
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"filename": "atmega328p--e01c-ml01s--pzem004t.kicad_pro",
|
||||||
|
"version": 1
|
||||||
|
},
|
||||||
|
"net_settings": {
|
||||||
|
"classes": [
|
||||||
|
{
|
||||||
|
"bus_width": 12,
|
||||||
|
"clearance": 0.2,
|
||||||
|
"diff_pair_gap": 0.25,
|
||||||
|
"diff_pair_via_gap": 0.25,
|
||||||
|
"diff_pair_width": 0.2,
|
||||||
|
"line_style": 0,
|
||||||
|
"microvia_diameter": 0.3,
|
||||||
|
"microvia_drill": 0.1,
|
||||||
|
"name": "Default",
|
||||||
|
"pcb_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"track_width": 0.25,
|
||||||
|
"via_diameter": 0.8,
|
||||||
|
"via_drill": 0.4,
|
||||||
|
"wire_width": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"bus_width": 12,
|
||||||
|
"clearance": 0.2,
|
||||||
|
"diff_pair_gap": 0.25,
|
||||||
|
"diff_pair_via_gap": 0.25,
|
||||||
|
"diff_pair_width": 0.2,
|
||||||
|
"line_style": 0,
|
||||||
|
"microvia_diameter": 0.3,
|
||||||
|
"microvia_drill": 0.1,
|
||||||
|
"name": "+3.3V",
|
||||||
|
"pcb_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"track_width": 0.55,
|
||||||
|
"via_diameter": 0.8,
|
||||||
|
"via_drill": 0.4,
|
||||||
|
"wire_width": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"bus_width": 12,
|
||||||
|
"clearance": 0.2,
|
||||||
|
"diff_pair_gap": 0.25,
|
||||||
|
"diff_pair_via_gap": 0.25,
|
||||||
|
"diff_pair_width": 0.2,
|
||||||
|
"line_style": 0,
|
||||||
|
"microvia_diameter": 0.3,
|
||||||
|
"microvia_drill": 0.1,
|
||||||
|
"name": "+5V",
|
||||||
|
"pcb_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"track_width": 0.55,
|
||||||
|
"via_diameter": 0.8,
|
||||||
|
"via_drill": 0.4,
|
||||||
|
"wire_width": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"bus_width": 12,
|
||||||
|
"clearance": 0.2,
|
||||||
|
"diff_pair_gap": 0.25,
|
||||||
|
"diff_pair_via_gap": 0.25,
|
||||||
|
"diff_pair_width": 0.2,
|
||||||
|
"line_style": 0,
|
||||||
|
"microvia_diameter": 0.3,
|
||||||
|
"microvia_drill": 0.1,
|
||||||
|
"name": "GND",
|
||||||
|
"pcb_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||||
|
"track_width": 0.25,
|
||||||
|
"via_diameter": 0.8,
|
||||||
|
"via_drill": 0.4,
|
||||||
|
"wire_width": 6
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"version": 3
|
||||||
|
},
|
||||||
|
"net_colors": null,
|
||||||
|
"netclass_assignments": null,
|
||||||
|
"netclass_patterns": [
|
||||||
|
{
|
||||||
|
"netclass": "+3.3V",
|
||||||
|
"pattern": "+3.3V"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"netclass": "+5V",
|
||||||
|
"pattern": "+5V"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"netclass": "GND",
|
||||||
|
"pattern": "GND"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"pcbnew": {
|
||||||
|
"last_paths": {
|
||||||
|
"gencad": "",
|
||||||
|
"idf": "",
|
||||||
|
"netlist": "",
|
||||||
|
"plot": "",
|
||||||
|
"pos_files": "",
|
||||||
|
"specctra_dsn": "",
|
||||||
|
"step": "",
|
||||||
|
"svg": "",
|
||||||
|
"vrml": ""
|
||||||
|
},
|
||||||
|
"page_layout_descr_file": ""
|
||||||
|
},
|
||||||
|
"schematic": {
|
||||||
|
"annotate_start_num": 0,
|
||||||
|
"bom_fmt_presets": [],
|
||||||
|
"bom_fmt_settings": {
|
||||||
|
"field_delimiter": ",",
|
||||||
|
"keep_line_breaks": false,
|
||||||
|
"keep_tabs": false,
|
||||||
|
"name": "CSV",
|
||||||
|
"ref_delimiter": ",",
|
||||||
|
"ref_range_delimiter": "",
|
||||||
|
"string_delimiter": "\""
|
||||||
|
},
|
||||||
|
"bom_presets": [],
|
||||||
|
"bom_settings": {
|
||||||
|
"exclude_dnp": false,
|
||||||
|
"fields_ordered": [
|
||||||
|
{
|
||||||
|
"group_by": false,
|
||||||
|
"label": "Reference",
|
||||||
|
"name": "Reference",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": true,
|
||||||
|
"label": "Value",
|
||||||
|
"name": "Value",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": false,
|
||||||
|
"label": "Datasheet",
|
||||||
|
"name": "Datasheet",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": false,
|
||||||
|
"label": "Footprint",
|
||||||
|
"name": "Footprint",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": false,
|
||||||
|
"label": "Qty",
|
||||||
|
"name": "${QUANTITY}",
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group_by": true,
|
||||||
|
"label": "DNP",
|
||||||
|
"name": "${DNP}",
|
||||||
|
"show": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"filter_string": "",
|
||||||
|
"group_symbols": true,
|
||||||
|
"name": "Grouped By Value",
|
||||||
|
"sort_asc": true,
|
||||||
|
"sort_field": "Reference"
|
||||||
|
},
|
||||||
|
"connection_grid_size": 50.0,
|
||||||
|
"drawing": {
|
||||||
|
"dashed_lines_dash_length_ratio": 12.0,
|
||||||
|
"dashed_lines_gap_length_ratio": 3.0,
|
||||||
|
"default_line_thickness": 6.0,
|
||||||
|
"default_text_size": 50.0,
|
||||||
|
"field_names": [],
|
||||||
|
"intersheets_ref_own_page": false,
|
||||||
|
"intersheets_ref_prefix": "",
|
||||||
|
"intersheets_ref_short": false,
|
||||||
|
"intersheets_ref_show": false,
|
||||||
|
"intersheets_ref_suffix": "",
|
||||||
|
"junction_size_choice": 3,
|
||||||
|
"label_size_ratio": 0.25,
|
||||||
|
"operating_point_overlay_i_precision": 3,
|
||||||
|
"operating_point_overlay_i_range": "~A",
|
||||||
|
"operating_point_overlay_v_precision": 3,
|
||||||
|
"operating_point_overlay_v_range": "~V",
|
||||||
|
"overbar_offset_ratio": 1.23,
|
||||||
|
"pin_symbol_size": 0.0,
|
||||||
|
"text_offset_ratio": 0.08
|
||||||
|
},
|
||||||
|
"legacy_lib_dir": "",
|
||||||
|
"legacy_lib_list": [],
|
||||||
|
"meta": {
|
||||||
|
"version": 1
|
||||||
|
},
|
||||||
|
"net_format_name": "Pcbnew",
|
||||||
|
"ngspice": {
|
||||||
|
"fix_include_paths": true,
|
||||||
|
"fix_passive_vals": false,
|
||||||
|
"meta": {
|
||||||
|
"version": 0
|
||||||
|
},
|
||||||
|
"model_mode": 0,
|
||||||
|
"workbook_filename": ""
|
||||||
|
},
|
||||||
|
"page_layout_descr_file": "",
|
||||||
|
"plot_directory": "",
|
||||||
|
"spice_adjust_passive_values": false,
|
||||||
|
"spice_current_sheet_as_root": false,
|
||||||
|
"spice_external_command": "spice \"%I\"",
|
||||||
|
"spice_model_current_sheet_as_root": true,
|
||||||
|
"spice_save_all_currents": false,
|
||||||
|
"spice_save_all_dissipations": false,
|
||||||
|
"spice_save_all_voltages": false,
|
||||||
|
"subpart_first_id": 65,
|
||||||
|
"subpart_id_separator": 0
|
||||||
|
},
|
||||||
|
"sheets": [
|
||||||
|
[
|
||||||
|
"d27a5317-09b2-4e42-85da-663c20ec430f",
|
||||||
|
""
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"text_variables": {}
|
||||||
|
}
|
||||||