6 ms·
Doom on a chip from a IKEA LED smart lamp
- tpmx 4y agoA year ago (312 comments): https://news.ycombinator.com/item?id=27498789 https://news.ycombinator.com/item?id=27498789 Many of the links are dead. The technical details: https://web.archive.org/web/20210615035229/https://next-hack.com/index.php/2021/06/12/lets-port-doom-to-an-ikea-tradfri-lamp/ https://web.archive.org/web/20210615035229/https://next-hack...
- sgt 4y agoIt's pretty crazy that a lamp, even though it's a smart lamp, must have such a powerful processor.
- d-gearloose 4y agoIt could be that they just use the same processor for multiple products even if it is overpowered to be able to reduce cost in acquiry, hardware design and software development.
- amelius 4y agoStill crazy for a mass product.
- bastijn 4y agoIt's even more crazy to realize back in the days we were able to make entire games that could run on hardware like this.
- squarefoot 4y ago...and then use the same hardware for office tasks.
- LBJsPNS 4y ago...and were amazed we could do any of it at all.
- sgt 4y agoYou're right. Kids today have it easy. They can just go and pick a cheap 64 bit ARM cpu off the shelf and call it a day. We had no such luxuries!
- Gigachad 4y agoThis gets said all the time, but what do people expect? Chips that can run doom are basically the bottom tier chip now. There is no point making lower power chips because they would use the same physical resources to produce. Do you find it odd that most people buy chairs capable of supporting 200kg when they know that no one over 100kg will ever sit on it?
- martin8412 4y agoThat is not really accurate. There are plenty of chips being made that are less powerful. Such as the Epson S1C60 which is a 4-bit MCU capable of running at a whopping 1MHz frequency
- tgv 4y agoThe latter is overengineering for safety, using a fast chip isn't. But I imagine it's the cheapest, small SoC that offers bluetooth or wifi, or whatever a "smart" lamp needs. If someone wants to rail against the need for smart lamps, however, they'd have a point.
- wyager 4y agoIkea uses zigbee. Better for this purpose than wifi or BT (but sadly not much).
- Comevius 4y agoA Cortex-M33 microcontroller costs like a coffee, and much less that that for Ikea that can then sell more lamps and at a higher margin, because people like introducing more complications in their lives, like software updates for what used to be a wire and a switch.
- antonvs 4y agoIt's not particlarly powerful by modern standards. The processor in question is an ARM Cortex M33, which is available with single or dual 32-bit cores, at clock speeds of 150 to 240 MHz. But when Doom was first released, a typical PC would only have run at 66 MHz.
- gsliepen 4y agoYou might not need that kind of processing power continuously, but consider that the lamp has to connect to WiFi securely, then talk to your smart home HUB securely, meaning setting up TLS connections, and you want it to respond to commands in much less than a second, you want that kind of processing power in bursts.
- BeefWellington 4y agoWe do not need a processor this powerful to do this at all. Garage door openers have been around for ages and the only novel thing here is the strength of the encryption, which could be done in hardware. It's simply that this is "easy" because these chips are plentiful and cheap enough. The stories of Russia harvesting chips from washing machines and dryers to put into munitions systems[1][2] demonstrates just how much "excess" there is in terms of compute power in the average smart device. [1]: https://www.techspot.com/news/94589-russian-tanks-using-chips-household-appliances-due-sanctions.html https://www.techspot.com/news/94589-russian-tanks-using-chip... [2]: https://www.appropriations.senate.gov/hearings/a-review-of-the-presidents-fiscal-year-2023-funding-request-for-the-department-of-commerce https://www.appropriations.senate.gov/hearings/a-review-of-t...
- tyingq 4y agoThis particular one doesn't do WiFi, just ZigBee...they have a separate bridge box for that. It is a fairly pricey choice for what it's doing...$5-6 per piece for single unit purchases.
- asveikau 4y agoAnd yet i purchased a number of LEDs with mr16 gu5.3 bulbs just like the photo from TFA, and none of them work well in the minimum dimmer settings, they're all way too bright. Maybe I've got it all wrong and i should have played doom on them instead.
- crest 4y agoYou want your "smart" lamp to respond quickly to reduce power consumption and air time. Just a short sprint once is a while instead of a slower 8 bit cpu crunching on algorithms designed around 32 bit operations. The wider ALU and registers are cheap. The fetch and decode logic is almost identical in area and uses less power because you can implement your application executing fewer instructions. Have a look at the code size produced by common C compilers for something like AES128 targeting a Cortex M0+ (or M33 in this case) and a ATmega. You'll see lots of short helper functions that depending on compiler settings are either called very often, inlined or even inlined and unrolled.
- b112 4y ago[flagged]
- ysleepy 4y ago
- ungamedplayer 4y agoBMI is a poor tool, especially shit to anyone who builds muscle. Bad tool, the metric measurement is only valid to the 'middle sized sedentary lifestylers'
- FartyMcFarter 4y agoIt's also a poor tool for very tall people, since it divides by height squared, even though our bodies are obviously 3D objects. I see some research that supports using height^2.5 as a divisor: https://www.medicalnewstoday.com/articles/265215 https://www.medicalnewstoday.com/articles/265215
- b112 4y ago[flagged]
- ysleepy 4y ago
- topynate 4y agoThat's true. I bought some body fat calipers recently for just that reason. They cost about $10.
- buran77 4y agoI think people focused on the wrong metric, the BMI. They should have focused on the self-diagnosis that at 6'2" (1.88m) it would be "literally unhealthy" for you to weigh less than 100Kg. Even if you were a special case, like a body builder, to illustrate the weight we're talking about, Arnold Schwarzenegger was 6'2" and 107Kg [0] in competitions. [0] https://en.wikipedia.org/wiki/Arnold_Schwarzenegger#Bodybuilding_career https://en.wikipedia.org/wiki/Arnold_Schwarzenegger#Bodybuil...
- daniel_iversen 4y agoWhat amuses me is that I remember a time where only “powerful” computers could run doom in full screen, whereas others had to settle with playing Wolfenstein 3D, and now Doom is the smallest game we use for these hacks :-)
- uni_rule 4y agoWell if it can't run doom it might run Bad Apple
- ant6n 4y agoOr perhaps wolfenstein
- theWreckluse 4y agoOr perhaps Bad Apple
- MonkeyClub 4y agoEh, or perhaps Wolfenstein? :-)
- gbraad 4y agoI find it suspicious the video is now private, or is that just me...
- losingom 4y ago>The system runs a downsized version of Doom that requires less RAM. You could even say it's a...light-weight DOOM. I'll see myself out. (In all seriousness though, super impressive work! It always amazes me what computing power actually resides in what we deem to be "simple" devices these days - in some ways it feels like computing power gone to waste.)
- belter 4y agoNow the question is, how many Software Engineers does it take...To change the Software on the light bulb :-)
- zasdffaa 4y agoI laughed then I stopped in a kind of shock because I realised that's becoming a sane and reasonable question.
- bastijn 4y agoThat's easy, one. But you also have to pay for the scrum master, product owner, bti engineer, test engineer, architect, and 7 other roles that keep the software engineer from rolling out the update ;).
- ygra 4y agoI actually felt a little bad when I electrified my son's play kitchen to add lights and went for an Arduino Nano. That's a bunch of lights along with some programming (microwave timer and state machine, dimming when idle, undimming upon any input, PWM brightness control for the burners) running on a 16 MHz µC, which is most likely overkill for that. On the other hand it was cheap and programming it was accessible.
- grawp 4y agoThe interesting thing is that the microcontroller in the Nano - Atmega328P - is really a massive overkill but for a wholy different reason: price. Even back in 2015 the AVR based Atmega328P was more expensive than quite a few Cortex M0 based STM32 offerings (when comparing price for same quantities of course). And those MCUs had literaly by an order of magnitude bigger SRAM and the ARM core and STM32 peripheries vere obscenly more capable and I cannot stress this enough. Now the difference is even bigger and AVR based MCU are expensive almost-unobtanium for legacy designs. Calling AVR MCUs cheap is my trigger since 2015 when I and my collegues were browsing Farnell eshop looking for a cheap MCUs for various gizmos we were working on.
- tasubotadas 4y agoI am now eager to see it running on neuralink
- fjfaase 4y agoThe MCH2022 badge will have a (downsized) version of DOOM running on the ice40 FPGA (implementing a RISK-V core) and a RP2040 (just for reading the buttons).
- pflanze 4y agoThe RP2040 alone could run doom well: https://news.ycombinator.com/item?id=30672527 https://news.ycombinator.com/item?id=30672527
- fjfaase 4y agoYes, and the ESP32 too. Seems this is going to be the first badge with three processors that all can run Doom. On the MCH2022 badge, the RP2040 has no direct connection with display (except for regulating the back-light), so you would have to implement some bridge on the ESP32 or the FPGA. See block diagram on https://bodge.team/docs/badges/mch2022/ https://bodge.team/docs/badges/mch2022/
- snvzz 4y ago>RISK-V RISC-V.
- inamberclad 4y agoInteresting to see the manufacturing similarities between that and another smart bulb I tore apart a few months ago. Same cutout for the antenna, which sticks out the front. Same aluminum backed circuit board for heat dissipation, and same strange through hole socket for connecting the power, data, and lighting boards.