Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

karotte, to random German
@karotte@chaos.social avatar

Wenn Jugendliche ein Datenbankschema bearbeiten wollen:

Ey ALTER, TABLE!

karotte, to random
@karotte@chaos.social avatar

Dune 3D Version 1.1 is out! https://github.com/dune3d/dune3d/releases/tag/v1.1.0

Just in time for the workshop at

Apart from loads of much-needed bugfixes it also contains a couple of handy new features such as symmetry constraints.

karotte, to random
@karotte@chaos.social avatar

TIL there's a redirect from "do not eat" to Silica Gel in the english Wikipedia.

karotte, to random
@karotte@chaos.social avatar

It's more or less widely known that especially high-capacitance ceramic capacitors have significantly less capacitance at their rated voltage than at 0V. While this effect is detrimental for bypass applications, has anyone ever turned that effect into something useful?

I was thinking of using this effect to make a variable capacitor for a VCO or maybe getting some use out of the non-exponential RC charge characteristic.

ftg,
@ftg@mastodon.radio avatar

@gsuberland @karotte
Unfortunately I think it is likely too temperature dependent to do that.
But it could be interesting to see.

A 1:47AM thought, could the body diode be used to measure the die temperature?

Then you'd have the built in temperature sensor for temperature compensation as well.

But back to DTC's. So far all of them that I have seen used a pile of switched capacitors.
Or were just ST8P switches with "bring your own capacitors".

gsuberland,
@gsuberland@chaos.social avatar

@ftg @karotte hmm, possibly if the package has a separate body terminal? although I don't know if the forward IV curve or reverse leakage current over the body diode varies with Vds or Vgs in the subthreshold region.

karotte, to random
@karotte@chaos.social avatar

So you're developing a cross-platform library that deals with filenames as a const char * (or the equivalent thereof)? On Windows, please treat the the filenames as UTF-8 and internally convert them to UTF-16 to call the Unicode Windows APIs or only have a wchar_t* function available.

DO NOT pass the filename as-is to the ANSI Windows APIs. With char * being treated as UTF-8 encoded text, this appears to work until an umlaut or another non-ASCII character appears in a filename.

Thank you.

gsuberland,
@gsuberland@chaos.social avatar

@karotte yes; the older *A functions (e.g. CreateFileA) expect a Windows-1252 (ISO 8859-1 superset) string. that codepage does contain many accented characters, but it is not byte-compatible with UTF-8 so passing UTF-8 strings in will bite you in the ass.

use MultiByteToWideChar to convert UTF-8 to UTF-16, then call the *W suffixed API rather than the *A suffixed API.

(or mbstowcs in C++)

karotte, to random
@karotte@chaos.social avatar

Selecting a DC/DC converter IC: 5min
Picking the inductor to go with it: 30min

Help my projects are taking forever…

sad_electronics,
@sad_electronics@fosstodon.org avatar

@karotte I've become quite lazy these power modules are awesome and come with the inductor integrated. The one in the image is from Würth and they are somewhat pricey but MPS has ones for just a dollar which is nice.

azonenberg,
@azonenberg@ioc.exchange avatar

@sad_electronics @karotte Yeah modules are awesome.

I've been using the Murata MYMGK series a lot lately. They're... A little larger than the ones in your photo. But for a large FPGA or something they're great.

karotte, to random
@karotte@chaos.social avatar

So your software needs a list of screen resolutions? Here's how to make it look nice:

  1. Instead of an 'x' use '×' U+00D7 MULTIPLICATION SIGN
  2. Use tabular figures
  3. Left-pad the width with U+2007 FIGURE SPACE

That way, all of the the × line up nicely in the same column.

karotte, to random
@karotte@chaos.social avatar

Here's the project you all were wondering why it doesn't exist yet: https://digipres.club/@foone/111948980229300662, https://ioc.exchange/@azonenberg/110849751773610561

Introducing USBKVM! A keyboard, screen and mouse that all fit in your the palm of your hand!

It's built around the MS2109 HDMI to USB capture chip and its I²C interface connected to an STM32 MCU that takes care of the keyboard and mouse emulation.

While the hardware is fully functional, firmware and software are in a proof-of-concept stage. Stay tuned…

The raspberry pi desktop in a window titled "USBKVM". In the lsusb output in the terminal, there's a TinyUSB device.
ThinkPad UEFI setup startup page in the USBKVM window.

azonenberg,
@azonenberg@ioc.exchange avatar

@karotte Nice, keep us posted. Might have to pick one up if you get it polished enough to sell.

karotte,
@karotte@chaos.social avatar

Turns out, not all QFN-48s from the same manufacturer are created equal…

Anyhow, I wanted to know if everything's working before respinning the board, so I decided to play: will it bodge?

Yes! After spending two evenings soldering around 40 0.1mm magnet wires to the 0.4mm-spaced pads, I can confirm that the VGA input is working 😀

karotte, to random
@karotte@chaos.social avatar

A couple of shitposts on my timeline about the link protocol used by TI calculators reminded me about an oddity of it that I haven't seen elsewhere:

It's a two-wire (red, white, GND) open-drain interface. One might assume, that one wire's clock and the other one is data or that one's RX and the other one is TX. However, it's none of that:

🧵 (1/2)

karotte,
@karotte@chaos.social avatar

To transmit a '1', the sender pulls the white line low, the receiver acknowledges this by pulling the red line low. The sender then releases the white line and the receiver finally releases the red line. For transmitting a '0', the sender starts with pulling the red wire low.

This has the nice property that it does bit-level handshaking and flow control and is self-clocking.

Despite these advantages, I've never seen such kind of protocol used anywhere else. If you have, let us know!

🧵 (2/2)

azonenberg,
@azonenberg@ioc.exchange avatar

@karotte Sounds vaguely similar to https://en.wikipedia.org/wiki/Wiegand_interface or CAN except with opposite-wire acknowledgements.

Never seen something exactly like that though.

karotte, to random German
@karotte@chaos.social avatar

, letzte Chance eine hamburger Bahnsteigkarte zu kaufen! Ab Januar gibt es die nicht mehr.

karotte, to random
@karotte@chaos.social avatar

Rheinhafen Karlsruhe, also known as USB Port.

karotte, to random
@karotte@chaos.social avatar

Now that's a first: Ordered some hard-to-find chips from China and they came with the marking lasered off 🤨

I did some cursory checks for connectivity of multiple GND/VCC pins and ESD diodes and it all checks out with the expected pinout. So either someone spent a lot of effort making a counterfeit or they're actually genuine.

Only one way to find out…

nblr,
@nblr@chaos.social avatar

@karotte With some luck they are genuine and the seller just wanted to get rid of tracking information because the source was dubius. Fingers crossed.

karotte, to random
@karotte@chaos.social avatar

OH: Ein RGBlahaj

karotte, to random
@karotte@chaos.social avatar

If EINVAL was so good, why is there no ZWEIVAL?

gsuberland,
@gsuberland@chaos.social avatar

@karotte 🎵 du bist EINVAL
ZWEIVAL
DREIVAL eine dame
und ich liebe dich 🎵

gsuberland,
@gsuberland@chaos.social avatar

@karotte Lionel Richie is so much better in German.

karotte, to random
@karotte@chaos.social avatar

So… I'm writing another piece of CAD software 🤓

Say hi to Dune 3D, a parametric 3D CAD that supports STEP import, chamfers and fillets!

It's the result of gluing together the UI from Horizon EDA with the solver from solvespace and Open CASCADE for a geometry kernel.

After about 3 months of off-and-on development, it's finally ready for prime time, go check it out on https://github.com/dune3d/dune3d#readme

Don't be surprised if it's a bit janky or lacks some features, there's still a lot left to be done…

karotte,
@karotte@chaos.social avatar

Habemus documentation!
https://docs.dune3d.org/en/latest/index.html

It not only includes a hopefully-useful getting-started guide, but also a handy reference on all Groups, Entities and Constraints.

karotte,
@karotte@chaos.social avatar

Packagers get ready!

I've prepared a preliminary release of Dune 3D for everyone to make sure that they'll be able to package the upcoming 1.0 release without any bad surprises: https://github.com/dune3d/dune3d/releases/tag/v0.9.3

There's also an MSI installer for all you Windows people out there: https://github.com/dune3d/dune3d/actions/runs/7577059606/artifacts/1179634166

If all goes well, the 1.0 release should happen next weekend.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • magazineikmin
  • everett
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • love
  • khanakhh
  • kavyap
  • tacticalgear
  • GTA5RPClips
  • DreamBathrooms
  • provamag3
  • modclub
  • mdbf
  • normalnudes
  • Durango
  • ethstaker
  • osvaldo12
  • cubers
  • ngwrru68w68
  • tester
  • anitta
  • cisconetworking
  • Leos
  • JUstTest
  • All magazines