Live data from Hacker News

What I learned selling 2,500 MIDI recorders: Hardware is not so hard

chipweinberger.com

261–270 of 276 posts

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#261

Hardware has a reputation for being hard for three reasons. First, it scales differently than software. It's far harder to design something you want to make a million of than something you want to make ten of. Second, it's harder to anticipate, test, and correct all the things that can go wrong on the user end. Some people will put batteries the wrong way, some will drop the device on the ground, some will connect it…

> Imagine we had that for software - "your JS is too big, you can't ship until you get it under 50 kB".

We’re one decade into cookie banners and privacy regulations by jurisdiction. There’s some vague similarities with interference here.

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#262
post #257
post #63

Inquiring minds want to know: what is your anti-counterfeit strategy or is the fact that you're keeping it under your hat part of the strategy? Also, pretty cool that you set up your website real fast. Would you mind adding your Twitter link onto the site?

With 2500 units sold, no one has moved to counterfeit yet(1). A device this simple will be cloned by AI in an afternoon. There is no imaginable anticounterfeit strategy. (1)2500*$175=$437,500. Estimated profit is 33-66%, so $150-300k. Nice for a soloprenuer, but limited market, so small target for piracy.

Counterfeit != clone. I welcome competitors. They can help grow the pie.

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#263

Earlier quoted context omitted.

No, you actually don't have to do the testing, except in some special circumstances (e.g. childrens' toys). Generally, the "CE" mark is a self-certification done by the manufacturer or importer that certifies that the product meets certain (category-specific) criteria. You can do the proper thing, test your product and then certify it. But it is also possible and usually legal to just issue the certificate based on a…

> except in some special circumstances (e.g. childrens' toys) Don't nearly all electronics fall under it too, this is the second item after children toys in the link you posted. > Here is a non-exhaustive list of products that are included in EU laws about CE marking: > Toys, drones, electrical and electronic equipment , pyrotechnic products, recreational crafts and watercraft

>> except in some special circumstances (e.g. childrens' toys)

> Don't nearly all electronics fall under it too, this is the second item after children toys in the link you posted.

No. That page just says: There are tons of EU laws about everything, including electronics. By putting a CE mark in your product, you certify that your product complies with all applicable EU laws.

In most cases, this certification can be a self-assessment, meaning that you can just assign the CE mark by whatever internal process you deem sufficient. I.e. you are allowed to rubber-stamp, but of course you are fully responsible for all consequences.

In some cases, for example childrens' toys, but only for some electronic components (electronic toys, medical stuff, high-voltage components, components that emit EM radiation above a certain threshold, ...), self-assessment isn't enough. In those cases, you need to obtain a certification from a notified body, which is an external organisation doing some design review and testing, as required by the respective laws.

It's all laid out further below under "How to obtain CE marking" and "Do you need an independent assessment?"

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#264

Very happy JamCorder customer here. I've started playing in improv shows since I bought it too, and it's nice to have those on record! It's rare that I come across a product I have literally zero complaints about, or any feedback to offer. Even my concern that it was tied to an app that might disappear one day is of course covered by the fact that it's all just MIDI files on a card. Thank you so much for making this,…

>Even my concern that it was tied to an app that might disappear one day is of course covered by the fact that it's all just MIDI files on a card. I was sorta surprised when the blog mentioned it was like 200k lines of code for an app. I wouldn't think you'd even need an app for something that puts midi files on an sd card.

The app is not required if you access the midi files from the sd card. You don't even need to install it.

The app is optional, and its for browsing your library. Think of it like the Photos app but for MIDI.

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#265
post #194

Earlier quoted context omitted.

A fun fact of the CE mark, is that it's also used to signal "Chinese Export" deceptively, with the marks being almost identical beyond spacing.

Of course there’s no actual official ‘china export’ mark and that is just what some Chinese factories were claiming when they were caught slapping a (accidentally mis-spaced) CE conformance mark on their products! The EC made a statement on this back in 2008 [1] so everyone knows what game they are playing. 1. https://www.europarl.europa.eu/doceo/document/P-6-2007-5938-...

Notably, that link does not repeat that "some Chinese factories were claiming...". It just states that some people put it on noncompliant products. It is unclear whether any Chinese factories ever made that claim.

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#266

Earlier quoted context omitted.

Im not an expert in emissions testing but pretty sure it still needs CE certification testing. The module shouldnt cause any problems providing that the firmware for the transmitter is configured properly, and is placed sanely in the enclosure, but the entire product must still undergo the relevant testing for 2.4GHz emitters. Just because you use a certified module doesn't give you a free pass.

It does still need CE certification and emissions testing. I’m guessing they didn’t do that and it will be fine because they only sold 2,500 units.

Technically it doesn't - it just needs to be compliant.

It is completely left up to you how you are going to demonstrate this if they ever come asking for the paperwork proving this. This can be a certification by an independent testing lab, documentation from in-house tests, or perhaps even documentation proving that it is compliant by design.

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#267
post #199

Earlier quoted context omitted.

Not literally, but I had two projects I had to fundamentally redesign due to multi-year chip shortages in the COVID years. And we're not talking about any fancy chips.

STM32 had this problem of disappearing for years. At least I was forced to move to ESP32 and have never returned back.

Same with ATMegas: I was working on a product line which was based on the atmega32u4 for legacy reasons. They became unobtainium and our platform recently started gaining RP2040 support - which was readily available at lower cost - so the decision to switch wasn't too hard.

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#268
post #114

Yeah, hardware is indeed not too hard if you have a trivial hardware project and ignore all the hard stuff. Complexity-wise this is probably the easiest board one could imagine. It's an off-the-shelf MCU module, a 1:1 copy of the MIDI circuit from the specification, and some ports wired straight to the MCU. Throw in a trivial I2C-connected RTC and HSM for good measure. You could probably design this in an afternoon.…

I appreciate the critiques! First, so far, there have been 0 failures in the field. My email address is on the website, the app, and the first page of the instruction sheet, so I'd probably know if there were. But since it's fun, I'll address some of these :) I'm not flying by the seat of my pants here as much as you expect. - The ESP32-S3 includes ±2 kV ESD, which is respectable. Adding more is a bit precautionary I…

> The ESP32-S3 includes ±2 kV ESD, which is respectable.

This might not quite mean what you think it means, by the way. In practice it is almost always just a property of the IP macro they use for the physical GPIO design, and its functionality is not tested - at all.

The reason for this "eh, good enough" approach is that it is intended for potential shocks during manufacturing: they don't want it to definitely die during a freak shock in an ESD-controlled environment. The rating is only for single shocks (so no repeats, as you'd see in the wild) and only for 2kV (not the 15kV you'd see in the wild, let alone the odd 30kV one for static-prone people) because that's all it is going to encounter during assembly.

I made the exact same mistake with one of my first commercial designs. And then after a while the reports of weird cases of single-pin GPIO failures started rolling in...

> The AMS1117 is just more available than the alternatives.

Keep in mind that this is both a blessing and a curse. It is more available because there's a giant number of clones, all of which are going to behave slightly differently. Your design with MLCC capacitors is outside of the regular operating parameters. It might work fine now, but don't be surprised if it starts failing on the next production run because the fab substituted it for a different AMS1117 clone to save a few cents.

At 2500 units your run is big enough to order whole reels of parts. There are dozens of drop-in replacements for the AMS1117 which are perfectly fine with low-ESR capacitors. Considering your sales price you should be able to afford splurging 5 more cents on a proper modern alternative from a reputable brand, so why take the risk?

When making decisions like those it is important to ask yourself one crucial question: can your brand survive both the financial and the PR blowback of, say, a 10% failure rate on your next batch? When you are selling a premium product at a premium price - and you are - your customers expect premium quality as well. Ironically, you literally can't afford to cheap out on parts.

> But at 3.3v and 232 mW it's not a fire hazard. It will fail open

"Fail open" in practice means "catches fire". Will it spread to other parts? Probably not, if everything goes well! PCBs are fairly hardy (the "FR" in FR4 stands for "flame retardant", after all), your parts are fairly spaced-out, and there's even a chance you might've used an overkill self-extinguishing plastic for the housing. But can you afford to ignore the potential risk? How will your customers react when it does an Nvidia 12VHPWR and the freak 0.001% failure is suddenly front-page news for your community?

Hardware design isn't merely about making it work. Things like design for manufacture/assembly (kudos on the one-screw method, by the way!) are just as important - as is designing it for reliability. Your work isn't done when it functions, but when it can't reasonably fail in any way that matters.

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#269

Earlier quoted context omitted.

If you consume power over USB-C, 2 resistor are enough. But for providing power over USB-C, you generally need a dedicated IC to handle VBUS switching. It wasn't worth it. Also, once you ship a consumer product with a USB port on it, you'll realize a lot of people really don't understand how USB works, and USB-C doubly so. Square holes for square pegs goes a long way.

Sure, but your power input should be a USB-C. No reason to use the clunky USB-B for that. Labeling as Power In and leaving a regular USB A for the output seems fine to me. Given that most older keyboards use USB-B for their input, A is a perfectly fine solution and solves the “input vs output”.

OP mentioned in another comment that a decent chunk of users is elderly, and C-to-B cables (albeit rare) do exist, so confusion isn't impossible.

I personally really don't like it in a world where everyone has USB-C power bricks readily available and USB-B cables are dying out, but considering the user base it is not an entirely unreasonable design decision - for now.

Re: What I learned selling 2,500 MIDI recorders: Hardware is not so hard

#270

This is not a criticism but I am curious about what the trade offs are in terms of cost/bom etc of using usb-c. I found it surprising that that wasn't a given in 2026,curious where it hasn't caught up as an option.

Assuming this is just standard 2.0 speeds, it should be nothing. It adds a slightly more expensive connector and 2 resistors… and that’s it.

It is likely to be 1.1 speeds, and considering that USB-B connectors are chunky and dying out it is likely going to be cheaper to go for USB-C.

USB-C connectors from well-known brands start at less than $0.20, USB-B ones are $0.30. Same story for the low-end: C can be found for as little as $0.011, B starts at $0.05. Resistors are basically free - about a cent a piece if you splurge, more like $0.0007 if you really push it.

With the EU practically mandating USB-C on all portable electronics, the market is rapidly shifting towards it being the default for all 5V-powered gear: either you ship a cable/brick with it, or you give it USB-C. Even with a premium connector it is quite obvious which option is cheaper, so even bargain-bin gear is incentivized to adopt USB-C, which in turn pushes the connector manufacturers to develop dirt-cheap USB-C options.

Post reply on HN