Wiki » History » Version 25
Frédéric Blanc, 2024-04-09 15:40
1 | 1 | Frédéric Blanc | h1. Wiki |
---|---|---|---|
2 | |||
3 | 11 | Frédéric Blanc | h2. Modbus / RS485 isolated |
4 | |||
5 | 25 | Frédéric Blanc | !clipboard-202404091540-4btca.png! |
6 | |||
7 | h3. non isoler |
||
8 | 24 | Frédéric Blanc | |
9 | !clipboard-202404091414-fugem.png! |
||
10 | |||
11 | 21 | Frédéric Blanc | !clipboard-202404081517-wbjgq.png! |
12 | |||
13 | 23 | Frédéric Blanc | h3. Texas Instruments ISOW14x2 Isolated RS-485 DC-DC Converter |
14 | 22 | Frédéric Blanc | |
15 | !clipboard-202404081533-dzk67.png! |
||
16 | |||
17 | 18 | Frédéric Blanc | h3. ANALOG DEVICES LTM2881CV-5#PBF |
18 | |||
19 | 19 | Frédéric Blanc | !clipboard-202404051942-kmfn5.jpg! |
20 | |||
21 | 18 | Frédéric Blanc | Transceiver, RS422, RS485, 20 Mbps, 1 Driver, 1 Récepteur, 4,5 à 5.5V, 0 à 70°C, LGA-32 |
22 | |||
23 | Code Farnell 4023829 |
||
24 | |||
25 | h3. ADM2865E Power Isolated, RS-485 Transceivers |
||
26 | 12 | Frédéric Blanc | |
27 | 1 | Frédéric Blanc | !clipboard-202404041435-zyzea.png! |
28 | 12 | Frédéric Blanc | |
29 | 13 | Frédéric Blanc | |Code Farnell|Référence Fabricant |Fabricant / Description| |
30 | 12 | Frédéric Blanc | |4023816 |ADM2865EBRNZ |ANALOG DEVICES Transceiver, RS422, RS485, 25 Mbps, 1 Driver, 1 Récepteur, 3 à 5.5V, -40 à 105°C, WSOIC-28| |
31 | |1456395 |SM712.TCT |SEMTECH Diode TVS, SM, Bidirectionelle, 12 V, 26 V, SOT-23, 3 Broche(s)| |
||
32 | |1515786 |BLM15HD182SN1D |MURATA Perle de ferrite, 0402 [1005 Metric], 1.8 kohm, 200 mA, BLM15H, 2.2 ohm, ± 25%| |
||
33 | |1867958 |08053D106KAT2A |KYOCERA AVX Condensateur céramique multicouche CMS, 10 µF, 25 V, 0805 [Métrique 2012], ± 10%, X5R| |
||
34 | |2443238 |BLM18HE601SN1D |MURATA Perle de ferrite, 0603 [1608 Metric], 600 ohm, 800 mA, BLM18H, 0.25 ohm, ± 25%| |
||
35 | 11 | Frédéric Blanc | |
36 | 20 | Frédéric Blanc | h2. XY5005E |
37 | |||
38 | com ? |
||
39 | |||
40 | !clipboard-202404081443-iygma.png! |
||
41 | |||
42 | |||
43 | 14 | Frédéric Blanc | h2. XY6015L Step-Down Regulated Power Supply |
44 | 1 | Frédéric Blanc | |
45 | !clipboard-202403251011-lfrn1.png! |
||
46 | |||
47 | 4 | Frédéric Blanc | µC AT32F421 ARM® Cortex®-M4 core |
48 | Ctrl EG1163S BUCK DC-DC de Rectification synchrone 300kHz |
||
49 | MOS NCE82H140 |
||
50 | |||
51 | 2 | Frédéric Blanc | Baud rate 9600 ? |
52 | |||
53 | 1 | Frédéric Blanc | Modbus registers: |
54 | U_SET = 0 |
||
55 | I_SET = 1 |
||
56 | UOUT = 2 |
||
57 | IOUT = 3 |
||
58 | POWER = 4 |
||
59 | UIN = 5 |
||
60 | Ah = 6 |
||
61 | PROTECT = 7 # not tested |
||
62 | Wh = 8 |
||
63 | Time = 11 |
||
64 | Temp = 13 |
||
65 | Lock = 15 |
||
66 | CV_CC = 17 |
||
67 | ONOFF = 18 |
||
68 | Celsius = 19 |
||
69 | MODEL = 22 # ? |
||
70 | 5 | Frédéric Blanc | VERSION = 23 # ? |
71 | 15 | Frédéric Blanc | |
72 | h3.notice |
||
73 | |||
74 | presser [SW] pendant 2s pour accéder aux paramètres |
||
75 | !clipboard-202404041503-e5ifh.png! |
||
76 | |||
77 | 6 | Frédéric Blanc | h2. GUI Python |
78 | |||
79 | 9 | Frédéric Blanc | h3. venv — Création d'environnements virtuels |
80 | 6 | Frédéric Blanc | |
81 | <pre><code class="shell"> |
||
82 | 8 | Frédéric Blanc | $ python3 -m venv venv |
83 | 6 | Frédéric Blanc | </code></pre> |
84 | |||
85 | Pour activer l'environnement, exécutez |
||
86 | |||
87 | <pre><code class="shell"> |
||
88 | source venv/bin/activate |
||
89 | </code></pre> |
||
90 | |||
91 | 7 | Frédéric Blanc | <pre><code class="shell"> |
92 | . venv/bin/activate |
||
93 | </code></pre> |
||
94 | |||
95 | 9 | Frédéric Blanc | Vous devrez « quitter » ou « désactiver » votre environnement virtuel à l'aide de la commande |
96 | 6 | Frédéric Blanc | |
97 | <pre><code class="shell"> |
||
98 | deactivate |
||
99 | </code></pre> |
||
100 | |||
101 | |||
102 | |||
103 | 1 | Frédéric Blanc | https://docs.python.org/fr/3/library/venv.html |
104 | |||
105 | 16 | Frédéric Blanc | h3. pyqt5 |
106 | |||
107 | <pre><code class="shell"> |
||
108 | pip3 install pyqt5 --config-settings --confirm-license= --verbose |
||
109 | </code></pre> |
||
110 | |||
111 | 17 | Frédéric Blanc | https://stackoverflow.com/questions/73714829/pip-install-pyqt5-it-cannot-go-on |
112 | 16 | Frédéric Blanc | |
113 | 9 | Frédéric Blanc | h3. XY6015L_pyGUI |
114 | |||
115 | !clipboard-202404041117-w53xm.png! |
||
116 | |||
117 | configuration du port com |
||
118 | |||
119 | le port série peut être corrigé en modifiant le paramètre "port_set" dans "dps5005_limits.ini". |
||
120 | |||
121 | |||
122 | <pre><code class="shell"> |
||
123 | [SectionZero] |
||
124 | The parameters below limit the code from incorrectly transmitting extreme values entered by the user: |
||
125 | if threshold exceeded value defaults to zero: |
||
126 | This file may be adapted for other versions of 'DPSxxxx' power supplies: |
||
127 | |||
128 | [SectionOne] |
||
129 | #leave empty "" for automatic port scanning or set serial port e.g. "/dev/cu.wchusbserial1410" or "/dev/ttyUSB0": |
||
130 | port_set: "/dev/ttyACM0" # |
||
131 | |||
132 | #The parameters below limit the code from incorrectly transmitting extreme values entered by the user: |
||
133 | 1 | Frédéric Blanc | #if threshold exceeded value defaults to zero: |
134 | 10 | Frédéric Blanc | ... |
135 | 9 | Frédéric Blanc | </code></pre> |
136 | |||
137 | h2. Sources |
||
138 | 5 | Frédéric Blanc | |
139 | https://github.com/AntaresAdroit/RDTech_PS_Comm |
||
140 | https://github.com/lambcutlet/DPS5005_pyGUI |
||
141 | https://github.com/kbs3056/XY6015L_pyGUI |