Author Archives: te-bachi

Gleichtaktdrossel

UU = form und dimension?
UF = material dicke? oder ferrite core material?

  • what is an uf10.5 inductor?
  • what is an UU9.8 inductor?
  • what is the maximal ac voltage of a uu9.8 inductor?
  • what is the maximal current of a UU9.8 choke?

Die Pitch für UF10.5 Gleichtaktdrosseln liegt bei 10*13mm. Dies bezieht sich auf die Abmessungen des Drahtes, der in der Induktivität verwendet wird, wie z.B. bei AliExpress.

The “UF10.5” in the context of electronic components refers to a type of common mode choke inductor. These chokes are used to filter out unwanted high-frequency noise and interference in electronic circuits. The “pitch” of an inductor refers to the spacing between the turns of the coil, which affects its inductance and overall performance.

A UU inductor, also known as a UU common mode inductor, is a dual coil inductive component that is mainly used in applications such as power supply filtering and EMI (electromagnetic interference) filtering.

An UU inductor is a type of inductor characterized by its core shape, which is composed of two U-shaped ferrite pieces joined to form a complete loop. It’s often used in common mode choke applications, typically designed to suppress noise in power supply circuits.

The UU refers to the shape of the core used: it’s two U shaped bits of ferrite put together to make a complete loop shape. As for a common mode choke, there are two separate coils on this inductor, which share the same core.

An UF10.5 inductor is a type of common mode choke inductor, designed for filtering out high-frequency noise and interference, specifically in electronic circuits. The “UF10.5” designation indicates a specific type and size, with a 10.5mm core material (UF stands for a specific ferrite material).

An UU9.8 inductor is a common mode choke, a type of inductor designed to suppress common mode electromagnetic interference (EMI) in electrical circuits. The “UU” refers to the shape of the ferrite core, which is two U-shaped pieces joined together. The number “9.8” likely refers to a specific core size or model.

UF10.5: This likely refers to a specific type and size of ferrite core material used in the inductor.

The maximum AC voltage an UU9.8 inductor can handle is 1500V AC when tested at 50Hz and 4mA for 1 minute, according to Miracle Electronic Devices and Prismatic Engineering. This voltage rating refers to the insulation between windings and between windings and the core. The insulation resistance is also specified to be greater than 100 MΩ at 500V DC.

The maximum current for a UU9.8 choke depends on the specific part number and application, but generally ranges from 0.06 Amps to 15 Amps, according to Coilcraft. Some manufacturers provide specific current ratings in milliAmps, as seen on Prismatic Engineering, while others, like Falco Electronics, list maximum current values up to 2 Amperes. It’s important to consult the datasheet for the specific UU9.8 choke you are using to determine its maximum current rating.

The maximum current for a UU10.5 choke can vary depending on the specific model, but generally ranges from 0.18A to 2A. Some suppliers like Coilcraft offer models with higher current ratings, even up to 15A.

What does “UU9.8” and “Common mode choke” mean for inductor coils?
UU Common Mode Chokes (PDF)
Common Mode Chokes – UU9.8 & UU10.5 Series (PDF)

Uu10.5/UF10.5 Common Mode Choke Coils Filter Inductor 50mh

UU9.8

UU9.8 Common Mode Choke Coil Transformer Bobbin
EMI Suppression Filter Common Mode Choke Coil UU9 For AC Power Lines
Uu/UF Series Common Mode Choke Filter for High Frequency Inverter

AliExpress AC EMI Filter

Voltage Regulator Li-Ion 4.2V to 3.3V

Function

  • Step-Up/Step-Down
  • Voltage Regulators – DC DC Switching Regulators

Device

  • LM3671 – 600mA
  • RT6150B-33GQW, 800mA
  • RT8010-33GQW, 1000mA
  • AP2210K-3.3TRG1, 300mA
  • TPS6200, 600mA
  • TPS62291, 1000mA
  • ADP2108, 600mA
  • AP3429, 2000mA
  • HX4002, 100mA
  • DD0403MA (AliExpress)
  • DM07 (AliExpress)

Digikey

RT6150B-33GQW, IC REG BCK BST 3.3V 800MA 10WDFN
RT8010-33GQW, IC REG BUCK 3.3V 1A 6WDFN
LM3671MFX-3.3/NOPB, IC REG BUCK 3.3V 600MA SOT23-5
TPS62007DGS, IC REG BUCK 3.3V 600MA 10VSSOP
TPS62291DRVR, IC REG BUCK 3.3V 1A 6WSON
ADP2108AUJZ-3.3-R7, IC REG BUCK 3.3V 600MA TSOT23-5
AP3429AKTTR-G1, IC REG BUCK ADJ 2A TSOT25

Digitec

Adafruit LM3671 3.3V Buck Converter Breakout 3.3V/600mA
Purecrea Spannungsregler Linear AMS1117 800mA 3.3V

Bastelgarage

HX4002 3.3V Step Up/Down Converter 1.8-5V to 3.3V 100mA

Play-Zone

SparkFun Buck Regulator Breakout – 3.3V (AP3429A)

AliExpress

New Mini 1.8V 3V 3.7V 5V to 3.3V Boost & Buck Low Noise Regulated PLR Charge Pump 2 in 1 DC/DC Converter, 100mA
2 Pcs DD0403MA 3.3-6V to 3V 3.3V DC-DC Converter Step-Down Power Supply Buck LDO Module repl AMS1117-3.3 Power Supply Board, 300mA
Mini DC-DC Buck Step-down Converter Power Supply Module 1.5v 1.8v 3.3v 4.2v 2A, 2000mA

Höpfhörer Active-Noise-Cancelling

digitec

Bose QuietComfort
Bose QuietComfort Ultra
Sony WH-1000XM5
Sennheiser Momentum 4 Wireless
soundcore Space One Pro
Apple AirPods Max 2024

interdiscount

BOSE QuietComfort Ultra (ANC, Schwarz)

YouTube

Best Premium Headphones [Tested & Compared!] – AirPods Max vs Bose vs Sony vs Sennheiser (03.01.2024)
Bose QuietComfort Ultra Headphones (Problems & Best Features after 1 Month)
16 BIGGEST ISSUES with the Bose QuietComfort ULTRA Headphones
What I Hate about Sony WH-1000XM5

Sony WH-1000XM5

Problems:

  • Adaptive ANC

TeX Command vs Macro?

what is the difference between a tex command and a tex macro?

What is the difference between ‘macro’ and ‘command’?

  • It seems, in the TeXbook the term “command” is used when the focus is on that stage where the programmer produces/delivers/types whatsoever .tex-input.
  • It seems, in the TeXbook the terms “token” and “macro” are used when the focus is on that stage where the TeX-program does process the .tex-input.
  • In TeX macros are always defined by \def and its variants such as \edef. LaTeX definition commands such as \newcommand are themselves macros that ultimately result in an application of \def to define a macro.

What are (TeX) macros
Introduction to Macros in Latex

esptool.py v4.2.1
Serial port COM20
Connecting...
.
.

Chip is ESP32-D0WD (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c8:2b:96:9e:a2:70
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0018ffff...
Warning: some reserved header fields have non-zero values. This image may be from a newer esptool.py?
Compressed 17536 bytes to 12203...
Writing at 0x00001000... (100 %)
Wrote 17536 bytes (12203 compressed) at 0x00001000 in 0.5 seconds (effective 274.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 511.6 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 688.0 kbit/s)...
Hash of data verified.
Compressed 1570820 bytes to 969826...
Writing at 0x00010000... (1 %)
Writing at 0x0001eaa1... (3 %)
Writing at 0x0002fd4c... (5 %)
Writing at 0x00034dbd... (6 %)
Writing at 0x00038dd8... (8 %)
Writing at 0x0003cc5d... (10 %)
Writing at 0x00046d1e... (11 %)
Writing at 0x00051bcd... (13 %)
Writing at 0x000591f0... (15 %)
Writing at 0x00063a0c... (16 %)
Writing at 0x0007725a... (18 %)
Writing at 0x0007ca9a... (20 %)
Writing at 0x000826f1... (21 %)
Writing at 0x000879c4... (23 %)
Writing at 0x0008d4fb... (25 %)
Writing at 0x000928cb... (26 %)
Writing at 0x00099275... (28 %)
Writing at 0x0009f03f... (30 %)
Writing at 0x000a4a82... (31 %)
Writing at 0x000aac56... (33 %)
Writing at 0x000b03a7... (35 %)
Writing at 0x000b622a... (36 %)
Writing at 0x000bc207... (38 %)
Writing at 0x000c1f67... (40 %)
Writing at 0x000c81c7... (41 %)
Writing at 0x000cdda8... (43 %)
Writing at 0x000d344a... (45 %)
Writing at 0x000d8754... (46 %)
Writing at 0x000ddb14... (48 %)
Writing at 0x000e3010... (50 %)
Writing at 0x000e8624... (51 %)
Writing at 0x000edfde... (53 %)
Writing at 0x000f3b96... (55 %)
Writing at 0x000f8d78... (56 %)
Writing at 0x000fe112... (58 %)
Writing at 0x00103236... (60 %)
Writing at 0x00108982... (61 %)
Writing at 0x0010db08... (63 %)
Writing at 0x00112dcc... (65 %)
Writing at 0x001188d3... (66 %)
Writing at 0x0011def2... (68 %)
Writing at 0x0012381f... (70 %)
Writing at 0x001292b7... (71 %)
Writing at 0x0012f519... (73 %)
Writing at 0x00134d5c... (75 %)
Writing at 0x0013a262... (76 %)
Writing at 0x0013f7e1... (78 %)
Writing at 0x001450aa... (80 %)
Writing at 0x0014adfa... (81 %)
Writing at 0x0014ffc1... (83 %)
Writing at 0x0015520a... (85 %)
Writing at 0x0015b06c... (86 %)
Writing at 0x001636c9... (88 %)
Writing at 0x0016c14d... (90 %)
Writing at 0x00172161... (91 %)
Writing at 0x0017757a... (93 %)
Writing at 0x0017cd31... (95 %)
Writing at 0x00182d09... (96 %)
Writing at 0x001880ee... (98 %)
Writing at 0x0018ddf1... (100 %)
Wrote 1570820 bytes (969826 compressed) at 0x00010000 in 22.1 seconds (effective 569.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Java Resource

log.debug("log1 = {}", Server.class.getResource("keystore.jks"));
log.debug("log2 = {}", Server.class.getResource("/keystore.jks"));
log.debug("log3 = {}", getClass().getResource("keystore.jks"));
log.debug("log4 = {}", getClass().getResource("/keystore.jks"));
log.debug("log5 = {}", getClass().getClassLoader().getResource("keystore.jks"));
log.debug("log6 = {}", getClass().getClassLoader().getResource("/keystore.jks"));
15:46:10.008 [main] DEBUG com.server.lib.Server -- log1 = null
15:46:10.015 [main] DEBUG com.server.lib.Server -- log2 = file:/C:/Dev/gitRepositories/SimpleWebServer/target/classes/keystore.jks
15:46:10.015 [main] DEBUG com.server.lib.Server -- log3 = null
15:46:10.016 [main] DEBUG com.server.lib.Server -- log4 = file:/C:/Dev/gitRepositories/SimpleWebServer/target/classes/keystore.jks
15:46:10.016 [main] DEBUG com.server.lib.Server -- log5 = file:/C:/Dev/gitRepositories/SimpleWebServer/target/classes/keystore.jks
15:46:10.017 [main] DEBUG com.server.lib.Server -- log6 = null

Findings…

  • class.getResource() or getClass().getResource() with slash
  • getClass().getClassLoader().getResource without slash

Java Simple HTTP Server

Without SSL/TLS

github.com/rjlfinn/java-http-server

With SSL/TLS

Simple Java HTTPS server
Java Network Programming, 4th Edition
SSL Handshake Failures

Do javax.net.ssl.* VM arguments need to be migrated to jakarta.net.ssl.*?
How does Javas KeyManagerFactory.init work with multiple keys
What is SunX509 used for and can it work with parties using IbmX509?
What is the difference of TrustManager PKIX and SunX509?

org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://localhost:8585/testOne": PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  • because of self-signed cert???

“PKIX path building failed” and “unable to find valid certification path to requested target”
Accept server’s self-signed ssl certificate in Java client
Keytool’s -storepass vs. -keypass — Why 2 passwords?

Introduction to SSL in Java

In case we get the error “javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target while establishing the SSL connection”, it indicates that we don’t have the public certificate of the server which we’re trying to connect in the Java truststore.

$ find /c/Program\ Files/choco/openjdk-jdk-17 -name "*cacert*"
/c/Program Files/choco/openjdk-jdk-17/lib/security/cacerts

$ keytool -list -v -keystore  /c/Program\ Files/choco/openjdk-jdk-17/lib/security/cacerts
Enter keystore password:
Keystore type: JKS
Keystore provider: SUN

Your keystore contains 111 entries
[...]

$ pwd
/c/gitRepositories/SimpleWebServer/src/main/resources

$ keytool -list -v -keystore keystore.jks -storepass pass_for_self_signed_cert
Keystore type: PKCS12
Keystore provider: SUN

Your keystore contains 1 entry

Alias name: selfsigned
Creation date: Nov 25, 2024
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=localhost, OU=Developers, O=Bull Bytes, L=Linz, C=AT
Issuer: CN=localhost, OU=Developers, O=Bull Bytes, L=Linz, C=AT
Serial number: f771d2346ba5c42b
Valid from: Mon Nov 25 15:31:14 CET 2024 until: Sun Feb 23 15:31:14 CET 2025
Certificate fingerprints:
         SHA1: DA:6D:B0:C4:F4:6E:65:45:AB:3E:AC:C3:9B:AD:25:30:B6:AD:21:CF
         SHA256: 81:94:78:29:23:13:1B:73:B3:D2:5A:B1:5B:24:77:85:34:F1:FD:BA:92:F6:34:12:DC:4F:88:50:7F:1B:3A:51
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 3

Extensions:

#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 4D 9B 90 29 EB 60 D7 7F   21 28 46 B2 FA 8E 58 5C  M..).`..!(F...X\
0010: D9 23 F1 98                                        .#..
]
]



*******************************************
*******************************************

$ keytool -import -v -trustcacerts -alias localhost-2 -file localhost.crt -keystore /c/Program\ Files/choco/openjdk-jdk-17/lib/security/cacerts -storepass changeit -keypass changeit
Owner: CN=localhost, OU=Developers, O=Bull Bytes, L=Linz, C=AT
Issuer: CN=localhost, OU=Developers, O=Bull Bytes, L=Linz, C=AT
Serial number: f771d2346ba5c42b
Valid from: Mon Nov 25 15:31:14 CET 2024 until: Sun Feb 23 15:31:14 CET 2025
Certificate fingerprints:
         SHA1: DA:6D:B0:C4:F4:6E:65:45:AB:3E:AC:C3:9B:AD:25:30:B6:AD:21:CF
         SHA256: 81:94:78:29:23:13:1B:73:B3:D2:5A:B1:5B:24:77:85:34:F1:FD:BA:92:F6:34:12:DC:4F:88:50:7F:1B:3A:51
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 3

Extensions:

#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 4D 9B 90 29 EB 60 D7 7F   21 28 46 B2 FA 8E 58 5C  M..).`..!(F...X\
0010: D9 23 F1 98                                        .#..
]
]

Trust this certificate? [no]:  yes
Certificate was added to keystore
[Storing C:/Program Files/choco/openjdk-jdk-17/lib/security/cacerts]
keytool error: java.io.FileNotFoundException: C:\Program Files\choco\openjdk-jdk-17\lib\security\cacerts (Access is denied)
java.io.FileNotFoundException: C:\Program Files\choco\openjdk-jdk-17\lib\security\cacerts (Access is denied)
        at java.base/java.io.FileOutputStream.open0(Native Method)
        at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:123)
        at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1375)
        at java.base/sun.security.tools.keytool.Main.run(Main.java:423)
        at java.base/sun.security.tools.keytool.Main.main(Main.java:416)


(admin)
$ keytool -import -v -trustcacerts -alias localhost-2 -file localhost.crt -keystore /c/Program\ Files/choco/openjdk-jdk-17/lib/security/cacerts -storepass changeit -keypass changeit
Owner: CN=localhost, OU=Developers, O=Bull Bytes, L=Linz, C=AT
Issuer: CN=localhost, OU=Developers, O=Bull Bytes, L=Linz, C=AT
Serial number: f771d2346ba5c42b
Valid from: Mon Nov 25 15:31:14 CET 2024 until: Sun Feb 23 15:31:14 CET 2025
Certificate fingerprints:
         SHA1: DA:6D:B0:C4:F4:6E:65:45:AB:3E:AC:C3:9B:AD:25:30:B6:AD:21:CF
         SHA256: 81:94:78:29:23:13:1B:73:B3:D2:5A:B1:5B:24:77:85:34:F1:FD:BA:92:F6:34:12:DC:4F:88:50:7F:1B:3A:51
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 3

Extensions:

#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 4D 9B 90 29 EB 60 D7 7F   21 28 46 B2 FA 8E 58 5C  M..).`..!(F...X\
0010: D9 23 F1 98                                        .#..
]
]

Trust this certificate? [no]:  yes
Certificate was added to keystore
[Storing C:/Program Files/choco/openjdk-jdk-17/lib/security/cacerts]


Reading from an SSL input stream (Java)

How to tell if Java SSLSocket has data available?

There is no way to do this. Your streams cannot tell you the length of the data without first decrypting it. available() will always return 0 for SSLSocket.

sslsocket read only once from inputstream,why?

Getting an InputStream from an SSLSocket

available() doesn’t do what you think it does; don’t rely on it. For SSLSockets, available() is even less reliable. From the JSSE Ref Guide:

“Implementation Note: Due to the complexity of the SSL and TLS protocols, it is difficult to predict whether incoming bytes on a connection are handshake or application data, and how that data might affect the current connection state (even causing the process to block). In the Sun JSSE implementation, the available() method on the object obtained by SSLSocket.getInputStream() returns a count of the number of application data bytes successfully decrypted from the SSL connection but not yet read by the application.”

My experience is that this generally maps to “0”.

Arduino Kalman Filter

CarbonAeronautics

Carbon Aeronautics Drone

github.com/CarbonAeronautics
, Quadcopter build and programming manual

Build and program this Arduino drone yourself!
0 | You can build a drone with less than 40 components
14 | Measure angles with the MPU6050 accelerometer
15 | Combine a gyroscope and accelerometer to measure angles – precisely
16 | Program an angle mode flight controller in Arduino

Machine Learning TV

Kalman Filter – Part 1