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