Eval » Historie » Version 73
Maximilian Seesslen, 05.11.2025 14:07
| 1 | 1 | Maximilian Seesslen | h1. Eval |
|---|---|---|---|
| 2 | |||
| 3 | 11 | Maximilian Seesslen | "https://www.seesslen.net/redmine/projects/slonce/wiki/Office":See |
| 4 | |||
| 5 | 26 | Maximilian Seesslen | Warum alles zusammen? |
| 6 | RTC aktiviert MCU via Batterien. Muss LED-Traffo aktivieren. Können unterschiedliche Traffos fur unterschiedliche Lampen-Typen (kalt/warm) sein. |
||
| 7 | |||
| 8 | 8 | Maximilian Seesslen | h2. New Features compared to Mainswitch/CANSwitch |
| 9 | 1 | Maximilian Seesslen | |
| 10 | * More current |
||
| 11 | * Fix Wakeup |
||
| 12 | 6 | Maximilian Seesslen | ** Beim Mainswitch gab der Power-button einen Stromimpuls auf den ACQxxx und auf einen GPIO. Wenn das system von extern gespest wurde und die MCU schlafen war, konnte sie nicht wieder aufgewekt werden. |
| 13 | 1 | Maximilian Seesslen | * Periodic wakeups to make measurements: RTC |
| 14 | 31 | Maximilian Seesslen | ** RTC_OUT gibt spannung auf den ENABLE des MAX5200 |
| 15 | 33 | Maximilian Seesslen | * Programmed wakeup for plant lights and light-buzzer |
| 16 | 1 | Maximilian Seesslen | * Diode ? Voltage-Drop issue |
| 17 | ** Ideal diode with Mosfet |
||
| 18 | 35 | Maximilian Seesslen | * High voltage (24V)? Transceiver halten 14-16V an CAN-HI/CAN_Low aus. |
| 19 | 36 | Maximilian Seesslen | ** Akku: ACCU-BPE1.3-12/BP |
| 20 | 34 | Maximilian Seesslen | ** TS78L05CX-RFG (Fuer 12V) |
| 21 | ** "Fuer 24V":https://www.reichelt.de/de/de/shop/produkt/spannungsregler_fest_3_3_v_sot-23-115940 |
||
| 22 | 1 | Maximilian Seesslen | ** Different connectors |
| 23 | * Global Timeserver; It already has batteries |
||
| 24 | * Real touch keys |
||
| 25 | 18 | Maximilian Seesslen | ** Why? In addition to increase illumination. But thats what candis was for. |
| 26 | 1 | Maximilian Seesslen | * Over-Temperature power off (PCB/Box) |
| 27 | * Buzzer? |
||
| 28 | ** indicate peridoc on/off during day time |
||
| 29 | 8 | Maximilian Seesslen | * External Solid State Relais for high power switching like Horo |
| 30 | 1 | Maximilian Seesslen | |
| 31 | * 4 Sectionen: SZ, WZ, MEMS, ? |
||
| 32 | 33 | Maximilian Seesslen | ** Switching sounds valid. But not sure. |
| 33 | ** Stoeren ungepowerte Platinen CAN? Sollten sie nicht. |
||
| 34 | ** Erzwingt Sternkonstelation |
||
| 35 | 1 | Maximilian Seesslen | |
| 36 | h2. Components |
||
| 37 | |||
| 38 | Ideal Diode: |
||
| 39 | |||
| 40 | * VN7140ASTR; up to 0,280 ohm, 0,120 Ohm typical |
||
| 41 | * LTC4412; 2,9V; TME 2.60EUro; External P-MOSFET needed; Waere perfekt gewesen; load sharing |
||
| 42 | * TPS2410 N.A. |
||
| 43 | * LM5050 |
||
| 44 | * MAX40200; 1A only, no external MOSFET |
||
| 45 | 8 | Maximilian Seesslen | * LM74700; 1.27€; perfekt; load sharing |
| 46 | 1 | Maximilian Seesslen | |
| 47 | 4 | Maximilian Seesslen | --LTC4412 is the only available-- |
| 48 | 1 | Maximilian Seesslen | |
| 49 | 27 | Maximilian Seesslen | Temperature: |
| 50 | |||
| 51 | 1 | Maximilian Seesslen | TMP1075; TMP1075NDRLR; 0,31€ |
| 52 | Muesste noch viel rumliegen haben |
||
| 53 | 27 | Maximilian Seesslen | |
| 54 | Power measurement: |
||
| 55 | |||
| 56 | 73 | Maximilian Seesslen | INA228AIDGSR; 3.63EUro |
| 57 | |||
| 58 | 4 | Maximilian Seesslen | |
| 59 | 1 | Maximilian Seesslen | h2. Calculations |
| 60 | |||
| 61 | * 240V/600mA eigentlich ausreichend; 144W |
||
| 62 | * AQH3213A |
||
| 63 | * STM32F030K6T6 should draw 20µA in stop |
||
| 64 | * 700mAh=700000µAh |
||
| 65 | * 700000µAh/20µA=3500h=1458d=ca 4 years |
||
| 66 | |||
| 67 | h2. MCU |
||
| 68 | |||
| 69 | * "Find":https://www.tme.eu/de/katalog/st-mikrocontroller_112866/?params=375:1453589,1453450,1853043,1634756,1634761,1938598,1473784,1613924;3461:1979124,1979125 |
||
| 70 | * STM32F072C8T6 |
||
| 71 | ** 2V, ok, Entladeaschlussspannung |
||
| 72 | ** Nur LQFP48; 4.53Euro |
||
| 73 | ** 1,85 € Reichelt STM32F072CBT6 128KB Flash |
||
| 74 | 7 | Maximilian Seesslen | ** RTC_OUT out PC13 |
| 75 | 1 | Maximilian Seesslen | * STM32H503CBT6, "STM32H503KBU6":https://www.tme.eu/Document/e92fcde7cdebb20ebbd5639f57dc7863/stm32h503cb.pdf |
| 76 | ** 3.20Euro |
||
| 77 | * Fuer VBAT wird beim STM32H503KBU6 auch FQFP48 benoetigt. |
||
| 78 | 8 | Maximilian Seesslen | |
| 79 | 28 | Maximilian Seesslen | h2. Regulator boards |
| 80 | 1 | Maximilian Seesslen | |
| 81 | 28 | Maximilian Seesslen | h3. Number of LED drivers |
| 82 | |||
| 83 | 1 | Maximilian Seesslen | Living room has 4 lamps, maybe 6 later. |
| 84 | 28 | Maximilian Seesslen | |
| 85 | h3. Electrical design |
||
| 86 | 1 | Maximilian Seesslen | |
| 87 | 29 | Maximilian Seesslen | Optokopler needs 10mA, 1.38V_F. |
| 88 | 28 | Maximilian Seesslen | Powermeter needs common ground anyways to measure voltage. |
| 89 | "All TME":https://www.tme.eu/de/katalog/smd-operationsverstarker_112843/?params=2613:1508643_integrierten-schaltkreises-art:spannungs-und-stromuberwachung&onlyInStock=1 |
||
| 90 | 10 | Maximilian Seesslen | |
| 91 | 32 | Maximilian Seesslen | h3. Regulators |
| 92 | |||
| 93 | LDB350 hat 9 ~ 36VDC EIngang und 2-40V Ausgang. |
||
| 94 | |||
| 95 | 1 | Maximilian Seesslen | h2. Issues |
| 96 | |||
| 97 | h3. Wie Straenge schalten |
||
| 98 | |||
| 99 | * 4 x LTC4412 umstaendlich, E.g. status ruecklesen |
||
| 100 | * Jeweils 2 Mosfets notwendig um zu isolieren, klein + gross |
||
| 101 | 16 | Maximilian Seesslen | * Wozu Stränge? 2 direkt verbundene Buchsen reichen nicht? Auch nur um sich allenfalls Verteiler zu sparen. |
| 102 | |||
| 103 | h3. USB interface? |
||
| 104 | |||
| 105 | * Usable with Raspberry or so. |
||
| 106 | 43 | Maximilian Seesslen | * Should at least work along with CAN |
| 107 | |||
| 108 | 16 | Maximilian Seesslen | |
| 109 | 13 | Maximilian Seesslen | h3. Light optional |
| 110 | |||
| 111 | * Media does not need light. The name is "helios". Use CANSwitch then. |
||
| 112 | 15 | Maximilian Seesslen | * But having the regulators in batteries is nice. They work even without MCU board. |
| 113 | |||
| 114 | * 4xPWM |
||
| 115 | * 2xTerminals; IN+OUT |
||
| 116 | 1 | Maximilian Seesslen | * Switch can be done on helios, only for first block |
| 117 | 17 | Maximilian Seesslen | ** If the switch is also on the blocks, Single power supply can be used |
| 118 | 20 | Maximilian Seesslen | ** Do i really have multiple power supplys for different LEDs? Could be, an active one for High power and an small one for nice ambience. |
| 119 | 24 | Maximilian Seesslen | ** Smaller power supply for bus only? |
| 120 | 1 | Maximilian Seesslen | * Must not connect Grounds of different power supplys |
| 121 | 17 | Maximilian Seesslen | |
| 122 | Das mit IDC oder aehnlichem zu machen klingt nice. Dann gehen theoretisch 4x4 (4xNetzteile schalten), man braucht 'nur' 4xPWM, Kaskadierung. |
||
| 123 | 25 | Maximilian Seesslen | Alternativ 'addresse' einstellbar. Dann ist man noch flexibler, e.g. |
| 124 | 17 | Maximilian Seesslen | 8 x kalt, 8 x warm. |
| 125 | 8 x Zimmer, 4 x Tisch. |
||
| 126 | 1 | Maximilian Seesslen | |
| 127 | 23 | Maximilian Seesslen | "B2B-Steckverbinder":https://www.tme.eu/de/katalog/platine-zu-platine-steckverbinder_100569 |
| 128 | 18 | Maximilian Seesslen | Kabel: 4xPWM, 4xSwitch VDD, GND -> 10P |
| 129 | 19 | Maximilian Seesslen | |
| 130 | DIP-Switches: DS04254204BKSMT |
||
| 131 | 25 | Maximilian Seesslen | Steck-Verbinder: FTSH10501FDV007KP; ZL231-10PG (THT) (SMD expensive) |
| 132 | 24 | Maximilian Seesslen | Kabel: DS1052-102B2NA2015 |
| 133 | 37 | Maximilian Seesslen | |
| 134 | h2. Netzteile |
||
| 135 | |||
| 136 | Beleuchtung: |
||
| 137 | GLP GPV-60-36 (Reichelt 16,95Euro) |
||
| 138 | 60 W, 36 V DC, 1,67 A; der koennte eh "nur" 4,771428571 COBs betreiben. |
||
| 139 | |||
| 140 | For Bus: |
||
| 141 | GLP GPV-20-12 |
||
| 142 | 38 | Maximilian Seesslen | LPC2412CV |
| 143 | 39 | Maximilian Seesslen | |
| 144 | h2. Go 12V |
||
| 145 | |||
| 146 | Device should be prepared to provide 12V-Bus. |
||
| 147 | Voltage regulator needs v_in > 15V for this. |
||
| 148 | 40 | Maximilian Seesslen | |
| 149 | https://cdn-reichelt.de/documents/datenblatt/A200/LM2576T_ADJG.pdf |
||
| 150 | |||
| 151 | 41 | Maximilian Seesslen | LM2576 can do this. 3A. Jumper for voltage possible. 1,15Euro; LM2576R-ADJ-TT |
| 152 | 42 | Maximilian Seesslen | |
| 153 | Fuer die 3V3: LDI8119-3.3EN-DIO; Eingang 1,8...18V |
||
| 154 | 44 | Maximilian Seesslen | |
| 155 | h2. 5V |
||
| 156 | |||
| 157 | 64 | Maximilian Seesslen | 5V braucht es ohnehin fuer SSR zum schalten und fuer die USB-charger-bar. |
| 158 | |||
| 159 | 44 | Maximilian Seesslen | At least high power SSRs need 5V as gate voltage. A level shifter is needed. |
| 160 | 47 | Maximilian Seesslen | 74LVC4245A; 50mA should be enough; High power SSR needs cam 16mA. LDB-350 needs 1mA, 2V-10V |
| 161 | 48 | Maximilian Seesslen | |
| 162 | 50 | Maximilian Seesslen | "List at TME":https://www.tme.eu/de/katalog/spannungsregler-dc-dc-schaltungen_100220/?params=365:1443462,1455068,2077593,1450000,1443628,1502191,1443463,1455073,2077617,1443635,1498627,1443636,1444026,1443531,2077498,1455077,1444027,1481928,1443532,1450037,1444029,1443641,1493298,1492896,1492968,1450041,1450265,1455114,1498182,1455113,1499757,1521916,1502257&onlyInStock=1&productListOrderDir=ASC&productListOrderBy=1000014 |
| 163 | |||
| 164 | 51 | Maximilian Seesslen | VOUT = VREF ( 1 + R2/R1 ) |
| 165 | R2 = R1 (VOUT/VREF -1) |
||
| 166 | where VREF = 1.23V, R1 between 1.0k and 5.0k |
||
| 167 | |||
| 168 | R2=12k |
||
| 169 | R1=3,9K |
||
| 170 | 1,23 × (1 + (12000 / 3900)) ≈ 5,014615385V |
||
| 171 | |||
| 172 | 66 | Maximilian Seesslen | h2. 12V |
| 173 | 51 | Maximilian Seesslen | |
| 174 | 54 | Maximilian Seesslen | TI itself recommends |
| 175 | 55 | Maximilian Seesslen | LMR51430, LM76003, TLVM13630; higher switching speeds for smaller coils. |
| 176 | 58 | Maximilian Seesslen | A4403GEUTR-T; klein, < 1 Euro |
| 177 | 67 | Maximilian Seesslen | |
| 178 | 68 | Maximilian Seesslen | L7987; etwas komplizierter; < 2 Euro; Schafft VOUT=VIN, also 12V Netzteile fuer VBUS=12V moeglich. |
| 179 | 3A; 1.5MHz; PGOOD koennte MOSFET schalten, also Bus spannungsfrei bei Unter-/Ueberspannung. Bei max. 61V geht auch 48V Netzteil. |
||
| 180 | 1 | Maximilian Seesslen | |
| 181 | 66 | Maximilian Seesslen | AOZ1284PI; simpler; <70Cent; 2Mhz; 4A; funktioniert nicht mit 12V Netzteilen bzw. 5V USB Netzteilen. Manche Devices koennen theoretisch 12V und 5V. |
| 182 | 61 | Maximilian Seesslen | IHLP2525CZER100M01 Induktion, 2 in Serie |
| 183 | DE1207-27 |
||
| 184 | 63 | Maximilian Seesslen | DE1207-10 |
| 185 | 61 | Maximilian Seesslen | |
| 186 | 58 | Maximilian Seesslen | "List at TME":https://www.tme.eu/de/katalog/spannungsregler-dc-dc-schaltungen_100220/?params=624:2077615,1502014,1502029,1895352,2077463,1895323,1895173,1544465;144:1906047,1752668,2077462,1752496,1440773;365:1443628,1443463,2077617,1443635,1443531&onlyInStock=1 |
| 187 | 1 | Maximilian Seesslen | |
| 188 | 51 | Maximilian Seesslen | When having 5V+12V, USB charging bar can be reactivated. |
| 189 | 66 | Maximilian Seesslen | |
| 190 | 69 | Maximilian Seesslen | Der 12V teil sollte komplett optional sein. |
| 191 | 62 | Maximilian Seesslen | |
| 192 | 48 | Maximilian Seesslen | h2. 5V I2C |
| 193 | |||
| 194 | System is a little bit inconsistent. |
||
| 195 | 49 | Maximilian Seesslen | 5V PWM signals but 3V I2C. Add level shifter. |
| 196 | |||
| 197 | PCA9306DCTR |
||
| 198 | 70 | Maximilian Seesslen | |
| 199 | h2. Issues |
||
| 200 | |||
| 201 | VDD transition |
||
| 202 | On start the battery is feeding vdd via perfect diode. |
||
| 203 | The MCU starts. The RTC must not be reconfigured till other pin is taking care the battery will keep feeding VDD. |
||
| 204 | |||
| 205 | A pin from VDD is switching the SSR. |
||
| 206 | Power supply feeds 2xL7987, one producing 5V. An LDI8119xxEN then veeds VDD again. |
||
| 207 | 71 | Maximilian Seesslen | |
| 208 | The SSR must be powerable by 2V and by 3,3V. |
||
| 209 | 72 | Maximilian Seesslen | IF=5mA; VF=1.2; R=1,2/0,005=240Ohm; |
| 210 | Rvor = ( V - Vf ) / If; (1,8-1,2)/0,005=120 Ohm->120Ohm |
||
| 211 | 3,3/120+240=9mA |