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