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