Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    C

    cpldcpu

    cpldcpu.wordpress.com · Personal blog · on HN since 2014

    An electronics hobbyist writes about very cheap microcontrollers, LED hacks, reverse engineering and small neural networks on tiny chips.

    Visit blogHN submissions
    Hardware & ElectronicsAI & Machine Learning
    What HN says

    HN links it for the 3 cent microcontroller survey and related projects such as LED candles and MNIST inference on cheap chips.

    Stats for nerds
    30HN people shared it
    22linked in comments
    1.4Kstory points
    Sep 2024last shared
    2016people per year2024

    Top posts on HN

    1. 1
      The “terrible” 3 cent MCU – a short survey of sub $0.10 microcontrollers
      9 people · 253 points · first shared 2019 · 94 comments on HN
    2. 2
      General purpose MCUs built in to LEDs emulate candle flicker
      2 people · 237 points · first shared 2024 · 182 comments on HN
    3. 3
      What made the 1960s CDC6600 supercomputer fast?
      2 people · 216 points · first shared 2020 · 102 comments on HN
    4. 4
      Implementing neural networks on the "3 cent" 8-bit microcontroller
      2 people · 206 points · first shared 2024 · 20 comments on HN
    5. 5
      Reverse Engineering a Real Candle
      5 people · 175 points · first shared 2016 · 37 comments on HN
    6. 6
      Controlling RGB LEDs with only powerlines: Anatomy of a Christmas light string
      2 people · 158 points · first shared 2022 · 51 comments on HN
    7. 7
      Implementing Neural Networks on a "10-cent" RISC-V MCU
      3 people · 134 points · first shared 2024 · 24 comments on HN
    8. 8
      Decapsulating the CH32V203 Reveals a Separate Flash Die
      1 person · 37 points · first shared 2024 · 1 comments on HN
    9. 9
      Addressable 7 segment display using a 7 cent microprocessor
      1 person · 4 points · first shared 2020 · 1 comments on HN
    10. 10
      A WS2812/Neopixel built from discrete transistors
      2 people · 3 points · first shared 2021 · Discussion on HN

    What HN people wrote when they linked it

    • makerdietyJan 2024

      > 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 interfaces for small microchips, microcontrollers, and tiny computers? And don't forget microscopes to do power analysis for reverse engineering some old toy that was made to emulate or fake a real life candle's intractable flame properties.[1]

      If you can't write code, then what's the point? How would no code be an agent of freedom and expression?

      Reprogramming a microcontroller unit with a USB cable connected between it and a laptop computer is convenient. 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.

      [1]: https://cpldcpu.wordpress.com/2024/01/14/revisiting-candle-flicker-leds-now-with-integrated-timer/

    • dragontamerJan 2023

      I got the chip from a blog elsewhere (https://cpldcpu.wordpress.com/2019/08/12/the-terrible-3-cent-mcu/), advertised as a 8.75-cent MCU.

      I did a brief search before posting, and one webpage suggested a 1000+ quantity price for $0.11 USD. However, upon closer inspection, this webpage is completely out-of-stock. (https://www.lcsc.com/product-detail/Others_Holtek-Semicon-HT68F001_C133382.html). I assumed the ~10-cent price point was still available and should have looked more into it before posting.

      > Holtek 'Buy Online' shows $1.50 @ 500+

      That is indeed terrible. ATTiny4 chips (cheapest chip on Digikey that's available... 512B Flash + 32B RAM) are available at 39-cents @100 Quantity from Digikey, so these HT68F001 chips need to come in significantly cheaper than the ATTiny4 before I consider them.

      Sure, the ATTiny4 is like 20 uA at 128kHz, but this is all less than the leakage current of batteries, so we're definitely looking at multi-year battery lives. Also PWM, Analog Comparator, ADCs, and other such features are included. So its more capable.

      In 2019, the HT68F001 _WAS_ a 8.75-cent chip or so. Alas, the 2020+ chip shortage may have killed the cost-effectiveness of this particular model.

    • userbinatorMay 2020

      As noted in the first post, the Z80 is still much easier to generate code for than the 6502.

      I see everyone there seems to be referring to free/open-source compilers, but I know of one commercial compiler for Z80 (IAR) whose output is quite good, and I have linked to in this previous comment I made on a different article about Z80 C compilation:

      https://news.ycombinator.com/item?id=18902501

      If one didn't know better, it would look almost like handwritten Asm.

      On the topic of architectures which are difficult to compile C to, I can also think of several more: 8051, low-end PIC series, and these: https://cpldcpu.wordpress.com/2019/08/12/the-terrible-3-cent-mcu/

      ...and most of those have C (or at least C-subset) compilers too.

    • kjs3Aug 2023

      Completely accurate, particularly around the "don't tell them it's an 8051" clones.

      I have a friend that used to reverse engineers all sorts of embedded black box products and he's said "when there's no markings or other clues, assume it's some kind of 8051 and see where you get". That might not be as true these days with ubiquitous ARMs and sub 10 cent Chinese/Taiwanese microcontrollers (many apparently PIC12 knockoffs[1]), but it apparently worked for a long time.

      [1] https://cpldcpu.wordpress.com/2019/08/12/the-terrible-3-cent-mcu/

    • croteJan 2024

      Read the article:

      > There are rectangular regular areas that look like memory, there is a large area in the center with small random looking structure, looking like synthesized logic and some part that look like hand-crafted analog.

      And the PIC12 is known to be a source of inspiration for dirt-cheap Chinese microcontrollers, see for example [0].

      Hard evidence? No. But if it looks like a duck, walks like a duck, and quacks like a duck...

      [0]: https://cpldcpu.wordpress.com/2019/08/12/the-terrible-3-cent-mcu/

    • magnatMar 2023

      You can actually bit-bang low speed USB on Arduino [0]. There is even a bootloader [1] for ATtiny visible to host as HID USB device. It is obviously not compatible with Arduino, but those tiny boards look too cute to ignore [2]. Also, you can use USB port both for downloading firmware and your application.

      [0] https://github.com/obdev/v-usb

      [1] https://github.com/micronucleus/micronucleus

      [2] https://cpldcpu.wordpress.com/2014/04/25/the-nanite-85/

    Related

    Ken Shirriffrighto.com560 people

    Mining Bitcoin with pencil and paper: 0.67 hashes per day

    Ken Shirriff
    Personal · last shared 2026
    Chips and Cheesechipsandcheese.com185 people

    Google's Liquid Cooling

    Chips and Cheese
    Publication · last shared 2026
    MCU on Eclipsemcuoneclipse.com26 people

    How to make sure no dynamic memory is used

    MCU on Eclipse
    Personal · last shared 2026
    Trixtertrixter.oldskool.org63 people

    8088 MPH: We Break All Your Emulators

    Trixter
    Personal · last shared 2026
    Robert Collinsrcollins.org25 people

    The Pentium F00F Bug (1998)

    Robert Collins
    Personal · last shared 2026
    Chris Wellonsnullprogram.com295 people

    Why Aren't There C Conferences?

    Chris Wellons
    Personal · last shared 2026
    3.14.by3.14.by16 people

    Lichee Console 4A – RISC-V mini laptop: Review, benchmarks and early issues

    3.14.by
    Personal · last shared 2024
    Dan Farquhardfarq.homeip.net61 people

    The biggest CRT ever made: Sony's PVM-4300

    Dan Farquhar
    Personal · last shared 2026