Live data from Hacker News

General purpose MCUs built in to LEDs emulate candle flicker

cpldcpu.wordpress.com

131–140 of 191 posts

Re: General purpose MCUs built in to LEDs emulate candle flicker

#131

Earlier quoted context omitted.

I'm waiting for the EU to ban these fucking things already. That and disposable power banks. Yes, you read that right. Selling consumer devices with Li-Ion batteries that are designed to not be rechargeable, should be banned altogether.

Indeed these things are an abomination. I regularly find half consumed vapes at intersections where they have clearly been accidentally dropped and abandoned by cyclists. I have a nice collection of perfectly good lithium batteries.

Cyclists in your area are vaping while they ride?

Just spitballing here, but considering that at typical intersections, automobile traffic outnumbers cyclist traffic by at least 100:1, isn't it more likely that those vapes were throw out the window of a car when someone got frustrated they clogged or something? (I'm not a vaper, but I've heard of clogged vapes being a common occurrence).

Re: General purpose MCUs built in to LEDs emulate candle flicker

#132

Once upon a time, on USENET, someone had a .sig that predicted one day computers would be cheap enough they'd come in cereal boxes and we'd throw them away. That day appears to have arrived.

At least a decade ago, a major magazine had a disposable chip inside for... I don't remember why. Does anyone remember this?

I remember receiving this video ad for a Chevy pickup truck in a print issue of Popular Mechanics circa 2015 [0]. When disassembled, it consisted of a screen, battery, speaker, and circuit board. What the article doesn't say is that the circuit board had a micro-USB port which when connected to a computer mounted the internal storage as a drive, with the four-or-so videos it played accessible. I actually managed to find an existing home video video with the correct format (I wasn't familiar with FFmpeg at the time) and when one of the internal videos was replaced with mine (with the same filename), it would play instead. I believe the micro-USB also charged the internal LiPo battery as well, as I don't recall being worried too much about battery life. I probably still have the thing somewhere! [0] https://www.tubefilter.com/2015/04/16/chevrolet-video-ads-in...

Re: General purpose MCUs built in to LEDs emulate candle flicker

#133

I love it. I have noted this article for my talk about how CPUs are free. To appreciate that, you have to understand that when the first microcomputers came out engineers were still in "compute" mode[1], we were lectured that you wouldn't use a hard coded loop to check for a switch closure, you had to use interrupts because otherwise you were wasting all those CPU clocks . And computing at the time was often billed i…

> I have noted this article for my talk about how CPUs are free. If teeny computers are free, and if I want to re-program them for my own use cases and personal applications, then why do I have to still spend nearly a thousand dollars or two on embedded systems development equipment like microcontroller development boards, JTAGs, ICEs, ROM flashers, UART-based bootloading solutions, and other delicate programming int…

First: don't conflate NRE and tooling with the cost of something. Plastic spoons are close to free, but making a plastic spoon factory would be expensive.

Second: you don't need most of that stuff. Dev boards that are a few bucks and debug probes for under $20 are credible and usable; fairly good compilers are free.

> But too bad that's not really the standard for old technology and resources laying around the planet, isn't it? You have to basically be uncanny like MacGyver or inhumanly intelligent like Tony Stark to reprogram the apparently free teeny computers laying around the world.

USB DFU is pretty dang common. It's not the absolutely lowest end stuff, but still pretty dang close to free.

Compare to doing all of this ages ago, where you'd have an 8051 with an expensive, crummy compiler and need a lot more tooling to do anything.

Re: General purpose MCUs built in to LEDs emulate candle flicker

#134

> Is it possible to improve on this candle-LED implementation? It seems so, but this may be for another project. Hey, I got paid to do this a few years back! Here's the result: https://evietealight.com/ They're the sort of thing it's not really possible to show off in a photo or even video. What really gets you (or at least gets me) is seeing these things out of the corner of your eye, flickering, just like flames fl…

I own six sets of Evie lights and they are the best I have ever seen. Three light sets with an induction charger sell for $75.

Here is a pre-release writeup from Product Creation Studios in Seattle about the development of Evie lights.

https://www.productcreationstudio.com/product-creation-glass...

And, here is a short video clip of Evies “burning.”

https://www.facebook.com/glassybaby/videos/2723369747740357/

Re: General purpose MCUs built in to LEDs emulate candle flicker

#135

Earlier quoted context omitted.

At least a decade ago, a major magazine had a disposable chip inside for... I don't remember why. Does anyone remember this?

Esquire October 2008 e-ink cover?

Someone hacked that too!

Hacking the Esquire e-ink cover

https://www.popsci.com/diy/article/2008-09/hacking-esquire-e...

Re: General purpose MCUs built in to LEDs emulate candle flicker

#136

Earlier quoted context omitted.

The rechargeable lithium batteries in those really doesn't fit the "lithium shortage" and "we don't have enough battery capacity to build an EV for everyone" narrative

It takes around 850g of lithium carbonate to produce one kWh of lithium batteries. The current market price for lithium carbonate is about $14/kg. The base spec Tesla Model 3 has a 57.5kWh battery pack, so the lithium in the pack represents a cost of ~$685, or just under 2% of the list price of the vehicle. A typical disposable vape contains about five cents worth of lithium. https://www.irena.org/-/media/Files/IRENA…

Another post in this thread mentions 1.8 million disposable vapes being sold per week in Australia. So that corresponds to 131 EV batteries per week. Or roughly 48000 EV batteries per year. 87000 EVs were registered in Australia in 2023.

Make of that what you want, but disposable electronics to administer nicotine seem to be a major waste.

Re: General purpose MCUs built in to LEDs emulate candle flicker

#137

I love it. I have noted this article for my talk about how CPUs are free. To appreciate that, you have to understand that when the first microcomputers came out engineers were still in "compute" mode[1], we were lectured that you wouldn't use a hard coded loop to check for a switch closure, you had to use interrupts because otherwise you were wasting all those CPU clocks . And computing at the time was often billed i…

We're almost at (or are already at) the stage where the packaging of the chip costs more than the computer inside it.

we're two orders of magnitude past that stage. a ryzen 7 is ten billion cmos transistors for a hundred dollars, ten nanodollars per transistor. so how much does a minimal computer cost at ten nanodollars per transistor?

the intersil im6100 was a pdp-8 cpu in 4000 cmos transistors, and the 6502 was comparable, but that's with no memory other than the cpu registers. for a useful microcontroller you probably need about 8192 bits of instruction memory and a few bytes of ram, so let's round up to 16384 transistors for a whole computer. an 8051, with built-in instruction eprom and 128 bytes of ram, was 50k. the arm2 without ram was 27k. an avr, with built-in ram and flash, is 140k. https://en.wikipedia.org/wiki/Transistor_count

at that price, counts of 16384 to 131072 transistors work out to 0.016¢ to 0.13¢. but the cheapest computer you can buy today is a padauk pms150c https://www.lcsc.com/product-detail/Microcontroller-Units-MC... which is 4.2¢ in onesies (and 2.43¢ in quantity) with 64 bytes of ram and 1024 13-bit words of one-time-programmable prom for the program https://free-pdk.github.io/chips/PMS150C. that's 150× more; in the day of moore's law doublings every two years that would have been 14 years, but now it's probably longer. (incidentally this same blog looked at them a few years ago https://cpldcpu.wordpress.com/2019/08/12/the-terrible-3-cent...)

ergo we've been at the stage where the packaging of the chip costs more than the computer inside it since about 02009

(obviously the ryzen 7 cpu costs a great deal more than its packaging, though, because that's what you have to do when you're competing on computrons per dollar rather than gpios per dollar. in theory for 2.43¢ you should be able to get 2.4 million transistors, enough for about 300 kilobytes of rom or a 50 kilobytes of sram, or half that together with a 486 or a quad-core arm3. presumably padauk is not doing this because they're using long-obsolete semiconductor process nodes, which is also why their chips are so power-hungry)

Re: General purpose MCUs built in to LEDs emulate candle flicker

#138

Earlier quoted context omitted.

We're almost at (or are already at) the stage where the packaging of the chip costs more than the computer inside it.

I have had Microchip FEs say as much to me. Will be interesting when chiplet technology gets to the point where multiple chips are installed in a plastic package (there are thermal expansion/contraction issues that make this a hard problem but still ...)

chiplets still lose area to scribing and dicing

Re: General purpose MCUs built in to LEDs emulate candle flicker

#139

Earlier quoted context omitted.

Not true. "Disposable" vapes use commodity li-ion cells, of the same basic type that you'd find in a cellphone, a laptop or an EV. They probably aren't the best quality, but there's nothing unusual about the chemistry or packaging. Li-ion cells are the preferred chemistry because of the very high discharge rate - alkaline or primary lithium cells just can't deliver enough current. The cell is perfectly capable of bei…

some people prefer the convenience of a disposable device I don't understand this. Instead of plugging it into a charger, they'd rather go to the store to buy another, or more likely order online and wait for it to be delivered?

i don't have personal experience with this, but i imagine so, because if you plug your vape into a charger, you can smoke it in an hour or two, and if you buy a cigarette at the convenience store that's a block away, you can smoke it in two minutes

maybe you live somewhere without convenience stores

Re: General purpose MCUs built in to LEDs emulate candle flicker

#140

Earlier quoted context omitted.

Going to drop this here: “Reverse engineering” a real candle https://cpldcpu.wordpress.com/2016/01/05/reverse-engineering...

This is great, I wish I could find off the shelf LED candles that more closely approximate the real thing. I'd also like them to be taper candles on a little holder with a loop finger hole so I can grab it to investigate noises in the night.

The best LED candle/flame simulations are the ones that use many LED's such as:

https://www.amazon.com/gp/product/B08789LJPS

https://www.amazon.com/gp/product/B07RBPLRPV

There used to be a company that made 192 LED rechargeable candles which looked like real flames (when behind frosted glass). They have apparently stopped selling them because of all the cheaper ripoffs with fewer LED's and worse algorithms. The many LED flames look more realistic because the light source actually moves, rather than just varying in intensity. They had a bulb similar to the first link above. It's odd that the cheap LED lights don't use a better algorithm, a brownian motion or fractal algorithm with pseudorandom number generator designed for a long sequence before it repeats wouldn't raise the price, it just takes a little more time to implement.

Post reply on HN