frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ultrathin business card runs a fluid simulation

https://github.com/Nicholas-L-Johnson/flip-card
362•wompapumpum•3h ago

Comments

mouse_•3h ago
Nice work, awesome presentation
x187463•3h ago
Very cool. Though, I was waiting for the video to properly 'shake' the card.
raincole•3h ago
Off topic, but where should one start learning writing physical simulation?

Several years ago I ran into this project [0] and got overwhelmed even the algorithm can be written in 88 lines of C++. I realized that out of all CS topics, physical simulation is probably the one I knew the less (not saying I'm a compiler/database expert or something, but at least I've implemented a toy compiler and some basic data structures used in database. When it comes to physical simulation my bran just draws a blank.)

[0]: https://github.com/yuanming-hu/taichi_mpm

maccard•3h ago
Rigid body simulations are much much simpler. There’s a siggraph course from 2001 [0] which is a bit of a dense read but it will bring you all the way up to a full blown rigid body simulation and understanding the math behind it too.

[0] https://graphics.pixar.com/pbm2001/pdf/notesg.pdf

beardyw•2h ago
Though in this case there's not much more than 500 points, which even if you scale up is manageable.
maccard•2h ago
It’s less about the number of points and scaling and more about understanding the fundamentals. Any sort of particule simulation (which is the easiest way to get into cloth, soft body and fluid dynamics) requires about the first half of that paper I linked anyway.
Cthulhu_•2h ago
One thing that helped me was doing some tutorials for pico-8, an intentionally 'weak' game platform, one of which is a platform game with a simple / understandable inertia / gravity simulation (jumping, running left/right; think Mario). It was understandable enough with an x / y position for the character and a delta-x / delta-y representing their current speed. Every frame the dx / dy would get changed depending on player input and/or character state.

Ex: if player presses jump button, set state to 'jumping' and dy to 1. Every frame, dy = dy * 0.9. When dy <= 0, set state to 'falling'. Every frame, dy = dy * 1.1 until dy = 1 (terminal velocity). Then add some collision detection.

I think those basics are also behind the simpler physics simulations, the 'falling sand' types would be ideal for an application like this.

maurits•2h ago
For statistical mechanics, I really liked [1]. Comes with loads of python programs.

To see what might peak you interest, the videos in [2] could be a good starting point.

[1]: https://www.coursera.org/learn/statistical-mechanics

[2]: https://matthias-research.github.io/pages/tenMinutePhysics/i...

ethan_smith•1h ago
The Nature of Code by Daniel Shiffman is an excellent entry point - it teaches fundamentals of physics simulations with clear examples in Processing/p5.js.
stormfather•1h ago
Just go to Perplexity or something like that, its well trodden ground. And essentially, what you're doing is discretizing the relevant differential equations and getting that to run in a 2D or 3D cellular automaton.

I'll give you a simple example. For diffusion of heat between 2 points, the rate of change (first derivative) is proportional to the difference in temp between them. So you make an update rule for points on a grid that says "calc the average difference of a cell's temp with that of its neighbors, multiply by some constant, and that is the amount to update this cell at this time. Run that for every cell in parallel, many times." Then you tack on a visualization and you can watch the heat diffuse. A fun example would be the cooling of the proto-Earth. You can watch the crust form.

Heat diffusion is a good starter problem. So is gravitational interaction.

IIAOPSW•32m ago
Probably what you want is "numerical methods" and "computational physics".

"Physical simulation" is a very broad scope, so your code for simulating fluids is going to be very different from your code for simulating planetary orbits, and at times it may feel a bit ad hoc. But at its foundation physical laws are written in differential equations and linear algebra.

So whatever algorithm lets you numerically integrate several inter-related variables is going to be broadly applicable to simulating any physical phenomena. At the simplest end of the spectrum you just naively approximate integration by brute force. Eg at each step just update your physical state variables by doing velocity += acceleration, position += velocity. This is called Euler's method, and while simple, it accumulates unacceptable errors rather quickly in most circumstance. The more advanced approach is to use a method like Runge Kutta. In circumstances where you have some known property, like say energy conservation, you can implement a method which explicitly imposes the constraint. This is good for cases where the motion is highly periodic as it prevents the numerical error from accumulating exponentially in orbits that spiral out of control.

Of course at some point you'll have to grapple with the issue of if you are simulating trajectories of free particles or values of neighboring grid points in a field. This question of how best to encode physical systems and simulate them cuts to the heart of physics.

I'll leave it at the old cliche "information is physical"

RMDNZ•3h ago
Amazing. Just don't show it to Patrick Bateman.
ducktective•3h ago
"I can't belllieeeve RMDNZ preferred L-Johnson's card to mine"
tetris11•3h ago
Practically pregnant with electric potential
rwmj•3h ago
Would love to see more information about how it was built. He must have worked with a company that can do the surface mount assembly?
Retr0id•3h ago
You can get boards like these made for single-digit dollars per unit* even at prototype scale, through companies like jlcpcb.

*I haven't looked at the specific parts for this board, the LEDs look nice and could be a little pricey.

rwmj•2h ago
Boards, but can you get the pick and place and the soldering done? I wouldn't want to be soldering that many LEDs by hand!
mk_stjames•2h ago
Every major chinese PCB supplier has offered very affordable PCB assembly ("PCBA") for several years now where you give the gerbers for the boards along with a BOM with part numbers from a mutual supplier catalog and p'np / solderpaste mask data and they will load up a p'np machine and oven run a small batch of boards for you.

e.g.:

https://jlcpcb.com/smt-assembly

https://www.pcbway.com/pcb-assembly.html

Cyan488•2h ago
Electronics can be surprisingly easy and cheap to build these days. He designed the circuit and layout with software called KiCAD (free and open source) then submitted the designs to a fabrication house - probably a popular offshore one - that easily can handle that level of board and component placement complexity. It would probably cost only a few hundred to build and ship, with 1 month turnaround time.

You can also hand-assemble surface mount parts by applying solder paste carefully to the pads, then placing all the components on the paste and heating the board until all the solder melts. That would have very time consuming for all those LEDs!

Cthulhu_•2h ago
There's also some homebrew pick-and-place machines and soldering ovens, but that's probably a bigger upfront investment than the offshore companies can offer.
burnt-resistor•1h ago
As long as there aren't surprise 50% tariffs.
alnwlsn•1h ago
This was something I had to look into earlier this year. We found that even if tariffs were 200-300%, JLC and PCBway are still half the cost of domestic USA board houses, while also somehow providing half the leadtime. They are an absurdly good deal.
burnt-resistor•1h ago
Yep. And if you go to Shenzhen, some shops will take on varying amounts of board design and prototyping for you. It's possible to get boards fast and for cheap, like less than a few days and even cheaper when the goal is larger quantities for semi-serious products.

For a few hobby or toy things, the fixed rate board stuffing shops are the way to go.

alnwlsn•2h ago
>He must have worked with a company that can do the surface mount assembly

He did (there are centroid files in the production folder, which tell the board house where to put the components), but you'd be surprised at how possible it is to assemble something like this by hand. You won't believe me, but I find it easier than through-hole soldering (because you don't have to keep flipping the board over).

But there's a 99.9% chance this was done in-house at JLC or PCBWay.

phirks•26m ago
Indeed, JLC for this one, though I did start off by hand assembling the first version with a 3D printed jig to locate the LEDs.
bobsmooth•5m ago
No need to reinvent the wheel. Hand assembling all those leds looks like a nightmare.
JKCalhoun•40m ago
Yeah, wondering how the LEDs were aligned so precisely. Some kind of silicone grid-like jig to hold them while the solder reflows? Or is it just pick & place robotics doing what they do with precision?
triactual•11m ago
The surface tension of the solder will pull them into alignment if the pad shape and solder volume are correct.
ChrisMarshallNY•3h ago
Very nice, but probably a bit too expensive to just hand out.

I knew a chap that had a similar hardware business card (I don't remember exactly what it did, but it wasn't as cool as this one).

I remember that his card was pretty scuffed up, and he insisted I give it back, after he handed it to me. Bit weird.

Cthulhu_•3h ago
How much does it cost? The guest passes for hacker conferences are full-on computers these days, if this is in the same price bracket it would be a great idea for those.
4gotunameagain•2h ago
There's a BOM, you can find out. Plus some peanuts for the PCB :)

Now whether you get it populated or not..

https://github.com/Nicholas-L-Johnson/flip-card/blob/main/ki...

unwind•2h ago
Just as a point of interest perhaps for folks who are not familiar with PCB design and modern electronics: the "huge" matrix of 21x21=441 LEDs would, with the specified LED from the bill of materials (BOM) cost all of $6.

That is based on the price for low quantity (1-500 pieces) though; if you were to build more than one board you would buy more LEDs, pushing the per-LED price (way) down. You can get 4,000 LEDs for $30.'

Edit: here is the LED in question, from the BOM [1].

[1]: https://jlcpcb.com/partdetail/C497920

mritchie712•2h ago
GPT-o3 estimates it'd be $10 to $20 cost to make these. I could see someone running a niche business selling these (e.g. enterprise software sales rep trying to stand out).
messe•2h ago
If they wanted to ask an LLM, the GP would have done so themselves.
Imustaskforhelp•2h ago
Yeah but I guess they wanted to add something in the value for everyone of us while they didn't have ofc the whole knowledge to do so.

their heart might be in the right place tbh. But that's my 2 cents.

Wojtkie•12m ago
>But that's my 2 cents.

Or is it really ChatGPTs 2 cents? Copy-pasting LLM responses is as useful as posting a "let me google that for you" link. It's a lazy response at a minimum.

nejdk•6m ago
If they wanted you to white knight, the GP would have asked

You seem to think comment hierarchy equals a real hierarchy?

No one can contribute without the right sign off?

Gracana•2h ago
Seems about right. $17/ea for a qty 10 order from JLCPCB. Rises to $25/ea if you do the minimum qty 5 order.
hypercube33•2h ago
I half expected this to have a button/mode to show custom QR codes...
mcdonje•37m ago
That's a good idea!
chamomeal•2h ago
Maybe you wouldn’t give em to just anybody, but anybody who gets one is guaranteed to remember you!

I’d probably even keep it in my desk to play with. After a few weeks I’d accidentally have this guy’s email/linkedin memorized for eternity

ChrisMarshallNY•2h ago
This is true.

I remember a story linked from here, recently, where a designer submitted a CV that was a custom-made widget of some kind.

He got the job.

DonHopkins•1h ago
I'd include a sad tomagotchi that after a week or so guilt tripped you into giving it back, its heart broken, missing its original owner.
DonHopkins•3h ago
Instead of a business card, I'd love an ultrathin pleasure card you can refill with virtual beer and virtually drink! You could input your weight, and it could track you BAC!

I made "PalmJoint", a beamable Palm pleasure card for CodeCon 2002, when everybody was beaming their contacts around by IR at conferences, I would beam an interactive doobie simulator a bunch of people could play together in a circle. Each person gets their own doobie, and you can have contests to see who can virtually smoke theirs the quickest, or keep it lit for the longest time. I never get around to implementing an IR token passing network:

https://donhopkins.com/home/images/PalmJoint.png

https://donhopkins.com/home/PalmJoint/Src/PalmJointMain.cpp

Some conferences of the era had kiosks with IR LEDs that beamed out a Palm app with a conference map and schedule, which would have been great to hijack for beaming out PalmJoints instead.

serf•3h ago
small ad-hoc networks like that with IR and early bluetooth were a lot of fun.
DonHopkins•2h ago
For beaming a lit joint around, you would definitely need an acknowledgement that it was safely passed, lest it drop on the floor! But how would you prevent duplication if several people received the same joint? I'd just mark that bug "Intended Feature: Will Not Fix."

The Bluetooth Bong was a vast improvement over the MIDI Bong.

MIDI aftertouch on the carburetor was a nice improvement over your grandfather's old Serial Acoustic 300 Baud ASCII Bong, but the Bluetooth Bong HID has a much higher bandwidth, multitouch chording, accelerometer tilt tracking, modular monophonic splash resistant microphone, and they weren't as easy to accidentally knock over because they were wireless. An extremely important feature if you have cats around.

But nothing beats a high-end spill-proof Rooᴙ 802.11be NVB (Network Video Bong) with fully submersible IPX8 smoke resistant stereo mics.

Cthulhu_•2h ago
I love it; I bought a secondhand Palm just before smartphones became a thing for cheap and had a lot of fun with it. I wonder if I still have it somewhere and whether it still works, I haven't seen it in ages though so probably not.
catapart•2h ago
Ha! That's pretty cool.

My first thought with this card was that it could be "gamified" into something that kids would probably love. A clique-y, social thing where kids could "pour" some of their fluid into another's card, with NFC or something. User preference colors that don't change when "poured" could help indicate how many different people have interacted with your card.

But enough spitballing. There's no killer idea there. Just something I'll be amused to see show up as a value-add for some other kind of toy, or whatever.

DonHopkins•2h ago
Liquid Pokemon Eggs and Sperm! Gotta catch it all!

Then you can lay the fertilized eggs at any GPS coordinate to gestate and hatch later on.

That could start a whole genre of AI (Artificial Insemination) Life Simulation games.

fennecfoxy•1h ago
Until hackers get in and add Pokemon STDs >>
fennecfoxy•1h ago
Stuff like that is dead now btw (yes, it makes me sad too). Kids have iPhones; the idea is great but can just be an app. Which tbf makes more sense because you get the benefit of imu & everything else for that behaviour.

Remember those little LCD cube block toys with the stick dudes that lived in 'em, then when you plug 'em together they interact? Those were the days.

QuiCasseRien•3h ago
I love when people don't have to talk to explain how the hell they are expert in a domain.

This is a very good example, nice work !

5-•2h ago
i absolutely love the form factor!

a similar one was beamu (eink screen, nrf52 with bt): https://nicgardner.com/2020/05/09/beamu-first-impressions/

(this was an actual product, if a bit pointless. i have one still)

any others?

TechDebtDevin•1h ago
Do you use any of the features? This is kinda cool, I love when people pack way too many features into a single product :P
OisinMoran•2h ago
If you like this, you'll also love Mitxela's fluid simulation pendant [0], and likely all of his work! I'm consistently astounded by how informative and enjoyable his stuff his. He shares so much, so freely and it's so well produced, with a lovely voice to boot. Inspirational! Watch his vids, read his write-ups or both! We need more people like this.

[0] https://mitxela.com/projects/fluid-pendant

unwind•2h ago
That was very clearly mentioned and linked in the article, too.
OisinMoran•2h ago
Ahh, today it is my turn to fail the online reading comprehension test! My bad, I'm just very into Mitxela.
elictronic•55m ago
Guessing he found it from the reddit post where he mentions it in lower parts of the comment chain but not in the actual post. The project itself does clearly mention it but I had the same reaction when I first read the post remembering the mitxela project clearly. https://www.reddit.com/r/embedded/comments/1mkkd4z/my_busine...
nirava•2h ago
+1 for mitxela, dude never ceases to amaze
msephton•1h ago
The circle works much better for the fluid simulation.
fidotron•2h ago
The typical Chinese sources have been selling "digital hourglass" type ornaments that work like this for a while.

There was a whole game based on this sort of thing back on the Acorn Archimedes: Cataclysm https://www.youtube.com/watch?v=3Byyz1Vlv8w It got remade for the 360, but the original was regarded at the time as surprisingly impressive for the machines it was running on.

DonHopkins•1h ago
Is there a Digital Disco Ball?
fidotron•51m ago
You could make a bad analogue of such a thing using WLED - although as many people have observed it has a tendency of turning anything anywhere into looking like a vape shop.

The problem is so much of the effect of a disco ball is irregular directional beams reflecting off it, which would be hard to do.

gcapu•1h ago
Amazing project, but the font on the back of the card is gross.
Nevermark•1h ago
That’s cred, man. Real cred.

Wack font. Circuits exposed. Pixels with fat borders between them. An ugly charging port. But more stuff, packed into a small sleek volume than reasonably possible. Working perfectly.

That’s not Jobs. Oh, no. It’s effing Woz.

The guy is a true hardware engineer.

gcapu•1h ago
For the most part I agree, but the purpose of a business card is to be read. You can barely read that text.
phirks•42m ago
The render is pretty gnarly, but it's not quite that bad in person

https://github.com/Nicholas-L-Johnson/flip-card/blob/main/me...

gcapu•34m ago
The card is so impressive that it doesn’t matter much, but I think that if you remove half of the text in that card and make it very legible it would burn your name into people’s brain.
phkahler•1h ago
It would be cool to have a USB C connector that goes through the PCB so total height is that of the connector and not board+connector.

Like this one:

https://www.adafruit.com/product/5180?srsltid=AfmBOopEIapZEq...

But with supports along the sides that could solder one the top and/or bottom of the PCB. You'd have a notch cut out for the connector.

throawayonthe•1h ago
It is.

rather it's even smaller, it simply has the inner part of a usb c connector - exactly the thickness of the pcb

similar to https://github.com/cnlohr/ch32v003_3digit_lcd_usb/

ciaranmca•1h ago
Thought the same but from what I can see those are somewhat uncommon, presumably you are unable to affix them to the board as securely as the typical connectors
echelon_musk•51m ago
The images in the GitHub show that the card has this.
cameron_b•50m ago
In the implementation, the design uses a 'card edge' type connector with the whole PCB fitting into the constraint of the thickness of the center blade of the USB-C connector. So when charging, the board slots into the cable-end connector, and when not charging there is only the PCB. The PCB has cut-outs for the cable-end connector to fit into the PCB -- so like you're saying, but even thinner.
throawayonthe•1h ago
that's awesome, but i think since it's a business card the text on the back should be more legible (nicer font and/or bigger)
stusmall•40m ago
Agreed. I'd never hire this embedded system engineer to do graphic design. /s
kuschkufan•43m ago
Impressive, very nice. Let's see Paul Allen's card!
mrcwinn•29m ago
This beats the Bateman card. Excellent work!
donohoe•24m ago
If they used a sans-serif font then they would have nailed it
bschwindHN•5m ago
That and the overlapping silkscreen hurt to see, but otherwise a super cool project. Although they're very minor things that don't technically matter, it can give off certain impressions to people.
NoSalt•24m ago
We getting our stories from Reddit now?
uticus•12m ago
No issues mentioned with battery being exposed on both terminals? Seems like easy short hazard.

Show HN: Real-time 3D demo for doing RL in JavaScript

https://www.rldrone.dev/
1•ultrafro2•2m ago•0 comments

AI must RTFM: Why tech writers are becoming context curators

https://passo.uno/from-tech-writers-to-ai-context-curators/
2•theletterf•6m ago•0 comments

Ex-White House expert: Microsoft considers security an annoyance, not necessity

https://www.theregister.com/2025/08/08/exwhite_house_cyber_and_counterterrorism/
3•rntn•6m ago•1 comments

Show HN: Starter Repo for Rust CLI with built in database

https://www.deebkit.com/posts/how-to-cli-with-data-persistence
1•nickisyourfan•6m ago•0 comments

When Google plays judge and jury: account gone, zero due process

https://medium.com/@russoatlarge_93541/when-youre-accused-you-re-erased-what-happens-when-tech-companies-play-judge-and-jury-7a09ebe8bf6a
2•markatlarge•6m ago•0 comments

Ask HN: Why do schools still teach arithmetic algorithms?

1•amichail•7m ago•1 comments

PEP 802 – Display Syntax for the Empty Set

https://peps.python.org/pep-0802/
2•ayhanfuat•8m ago•0 comments

Programming as Extended Cognition

https://ieeexplore.ieee.org/document/11119124
1•todsacerdoti•8m ago•0 comments

Show HN: TinyZorin – Transform Your ZorinOS Experience with These Beginner Hacks

https://n51n3.bearblog.dev/tinyzorin/
1•encodejabber•10m ago•0 comments

AI is impressive because we've failed at personal computing

https://rakhim.exotext.com/ai-is-impressive-because-we-ve-failed-at-semantic-web-and-personal-computing
4•ambigious7777•13m ago•0 comments

An Open Letter to OpenAI

https://www.openai-transparency.org/
1•EvgeniyZh•15m ago•0 comments

Show HN: A free physics puzzle game with ragdoll mechanics

https://plonky.top/
2•Stephanie88•16m ago•0 comments

Hugging Face AI Sheets, open-source tool to vibe test models on your datasets

https://github.com/huggingface/aisheets
2•dvilasuero•17m ago•1 comments

Mangrove Photography Awards 2025

https://mymodernmet.com/mangrove-photography-awards-2025/
2•bookofjoe•18m ago•0 comments

The Pink Elephant Problem: Why "Don't Do That" Fails with LLMs

https://eval.16x.engineer/blog/the-pink-elephant-negative-instructions-llms-effectiveness-analysis
2•paradite•18m ago•0 comments

Job Hunting for 21 Months

https://www.businessinsider.com/laid-off-accenture-manager-struggles-salary-expectations-tough-job-market-2025-7
5•frenchman_in_ny•20m ago•2 comments

Show HN: Wordle" with the first 1000 Digits of Pi

https://subjectle.com/fivedigitsofpi
3•bezo226•21m ago•2 comments

Instant-esque voice-to-text for Mac [Open Source]

https://github.com/Beingpax/VoiceInk
1•michael-sumner•21m ago•0 comments

White Paper: Contribution-Based Governance for Developer Communities

3•ff12wq111•21m ago•0 comments

Google's Genie is more impressive than GPT5

https://theahura.substack.com/p/tech-things-genies-lamp-openai-cant
3•theahura•24m ago•0 comments

OverHAuL: Harnessing Automation for C Libraries with Large Language Models

https://kchousos.github.io/BSc-Thesis/
3•PaulHoule•24m ago•0 comments

Show HN: LessonQuill – Generate editable lesson notes from your curriculum

https://lessonsquill.com
1•pelumi_peter•25m ago•0 comments

How to build a router for MOE models

https://www.cerebras.ai/blog/moe-guide-router
2•jxmorris12•25m ago•0 comments

Open SWE by LangChain (Docs)

https://docs.langchain.com/labs/swe
2•dennisy•27m ago•0 comments

'It's a Mess': A Brain-Bending Trip to Quantum Theory's 100th Birthday Party

https://www.quantamagazine.org/its-a-mess-a-brain-bending-trip-to-quantum-theorys-100th-birthday-party-20250808/
2•baruchel•27m ago•0 comments

Open SWE by LangChain

https://swe.langchain.com/
2•dennisy•27m ago•0 comments

Redesigning Workers KV for increased availability and faster performance

https://blog.cloudflare.com/rearchitecting-workers-kv-for-redundancy/
1•cantaloupe•28m ago•0 comments

Post-mortem of network outage affecting OpenStreetMap.org in December 2024

https://operations.osmfoundation.org/2025/02/15/post-mortem.html
1•fanf2•28m ago•0 comments

AI is polytheistic, not monotheistic

https://balajis.com/p/ai-is-polytheistic-not-monotheistic
2•mooreds•30m ago•0 comments

We Are the Web (2005)

https://web.archive.org/web/20200827074657/https://www.wired.com/2005/08/tech/
1•Brajeshwar•32m ago•1 comments