Lurker News
Hey HN! We are the founders of atopile. We’re building a tool to describe electronics with code. Here is a quick demo: https://youtu.be/7-Q0XVpfW3Y

Could you imagine the pain of building an entire software product using only assembly code? That’s about how we felt designing hardware. We don’t currently have good ways to describe what we need, reuse existing designs and compile that description down to a product.
We started atopile to fix this. atopile is an open-source language and toolchain to describe circuits with code. The compiler is here: https://github.com/atopile/atopile Docs are here: https://atopile.io/getting-started/ . For a detailed deep dive designing an ESP32 module, see this video: https://youtu.be/eMWRwZOajdQ
We realized this was a problem in our previous jobs. Narayan and I (Tim) had to manually, draw and export all our electronic circuit boards. This lasted until our friend Matt, a software engineer, showed us his development workflow. All his projects were built, tested, and merged automatically via GitHub. So we asked: Can we build the same for hardware?
We observed that the ability to abstract electronics effectively hinged on using a language to describe the requirements, so we came up with the “ato” language. In ato, you can break down circuits into modules, components and interfaces. You can nest and connect those blocks with each other. Here is an example with an RP2040 microcontroller:

  import RP2040Kit from "rp2040/RP2040Kit.ato"
  import LEDIndicatorBlue from "generics/leds.ato"
  import LDOReg3V3 from "regulators/regulators.ato"
  import USBCConn from "usb-connectors/usb-connectors.ato"

  module Blinky:
    micro_controller = new RP2040Kit
    led_indicator = new LEDIndicatorBlue
    voltage_regulator = new LDOReg3V3
    usb_c_connector = new USBCConn

    usb_c_connector.power ~ voltage_regulator.power_in
    voltage_regulator.power_out ~ micro_controller.power
    micro_controller.gpio13 ~ led_indicator.input
    micro_controller.power.gnd ~ led_indicator.gnd

    led_indicator.resistor.value = 100ohm +/- 10%

From there, the compiler produces a netlist that describes how the circuit is connected and selects jelly-bean components for you (https://atopile.io/blog/2024/01/31/cloud-components/). Our next focus will be to add layout reuse, mathematical relations between values and define circuits by traits (similar to Rusts’).

At the moment, atopile is intended to design all types of printed circuit boards (PCB) with low to medium complexity. The circuit complexity that the compiler can handle will steadily increase until it becomes suited for production usage. We often get asked if the compiler is meant for chip design rather than PCBs, but that is not the case. The language is exclusive to PCBs. At least for now..!
A big part of why the software community is so prolific is thanks to open source and open core technology. The ability to share software packages with each other and efficiently chain tools together has made the software world an awesome place for developers. As hardware engineers, we would love our field to benefit from this as well. That’s why we’ve made atopile’s core open source (Apache 2.0). We plan to generate revenue by selling entreprise targeted features, similar to GitLab.
We would love to have your thoughts on the compiler! What’s your story in electronics? What would you want us to build?

Comments (292) 77 threads

Show all comments

Showing thread 71 of 77

andrewstuart2 replies#
I'd like to hear the opinion of Lady Ada on this - one of the industries greatest hardware designers.
napowderly#
So would we! I think we are trying to do much the same things, make hardware design faster and more accessible.
markrages1 reply#
> one of the industries greatest hardware designers

Is this meant sarcastically?

andrewstuart1 reply#
>>Is this meant sarcastically?

No I don't mean it sarcastically, why do you ask? Do you not see Lady Ada as a shining light of the industry?
Lady Ada is one of the industry's greatest hardware designers and I would value her opinion on this.
If you don't know who she is, her name is Limor Fried and she founded AdaFruit.
I don't have current stats but from 2016: Revenue US$45 million (2016)[1] Number of employees 105
Front page of Make Magazine:
https://blog.adafruit.com/2017/05/08/limor-ladyada-fried-on-...
Front page of Wired:
https://www.wired.com/2011/03/wired-magazines-cover-features...
Front page of Smore magazine:
https://www.adafruit.com/product/3920
Front page of Hackspace:
https://www.flickr.com/photos/adafruit/40061387915

markrages2 replies#
By "industry" you mean "electronics hobbyists"?
andrewstuart2 replies#
I oh see you are wanting to diminish her capabilities for some reason.

I'm not interested buddy, you can take your sneering elsewhere until you show me the multi million dollar company you have created, the hundreds of commercial quality boards you have designed and sold for real money, the driver software you wrote to make them usable and the industry accolades you have received - on merit.

markrages1 reply#
She's a solid entrepreneur and a competent engineer.

Calling her "greatest" seems odd, for implementing breakout boards with datasheet circuits.

Continue this thread — 1 reply

leptons1 reply#
> and sold for real money

"Lady Ada" and Adafruit certainly are good at price gouging. They often charge exorbitant prices for the same stuff we can get elsewhere at a fraction of the cost. No, providing datasheets and some instruction isn't enough, there's a thousand other sites with better instructions in most if not all cases.

joemi1 reply#
As far as I can tell, Adafruit doesn't price gouge. More expensive than some other US places, sometimes, but usually not by much. Sometimes they're cheaper than similar US places.

The only places that sell same or similar items for drastically less than Adafruit are places like Aliexpress (or the same foreign sellers selling on Ebay), and there are many reasons why Adafruit is more expensive than those places...
Some of the stuff Adafruit sell is likely sourced from Aliexpress (or perhaps from Alibaba if they're buying in large enough quantity) and is indeed priced higher at Adafruit, but that's because if they price it the same or lower they make no money. So we know for those items, they must mark them up. But how much they need to be marked up is kind of complicated. Buying lots of things in order to resell them is more complicated than buying just one or two things for yourself, especially when the seller is on the other side of the world. Simply put: there's a lot more overhead when buying for resale that you don't have to worry about when buying low quantities for yourself. One big difference is that they need _reliable_ suppliers with large quantities consistently available, and those are rarely the same sellers selling things for pennies. (I could go into more differences, because there are many, but this reply is already getting pretty long. Ask me if you want to know more, or google for info about how to open and run a retail business.)
Also, bear in mind that some of that stuff that you can get elsewhere at a fraction of the cost than Adafruit are actually Adafruit's own designs being directly cloned, like a lot of their breakout boards. In those cases, you really can't blame Adafruit, since the reason those items are cheaper elsewhere is because someone's specifically trying to undercut them (often at the expense of overall quality and sometimes even at the expensive of authentic correctly-working parts).

leptons4 replies#
>As far as I can tell, Adafruit doesn't price gouge.

They charge ridiculous prices for LED strips, the same strips you can get anywhere.
Here's one example:
https://www.adafruit.com/product/1461
Black LED strip. 60 LEDs/meter.
1 Meter = $24.95
4 Meters = $99.80
And they advertise 4 meters as a "full reel" when everywhere else 5 meters is considered a full reel. What jerks!
Same exact thing, except 5 Meters, $22.99:
https://www.amazon.com/LOAMLIN-WS2812B-Individually-Addressa...
So, let's calculate this price gouge.
Adafruit price per meter at 4 meters/roll = $24.95
LOAMLIN price per meter at 5 meters/roll = $4.60
Adafruit is charging 5.42 times the price.
And if I want to wait a few days more to get it delivered, Aliexpress has the same thing for $11.26 per 5 meter roll!
https://www.aliexpress.us/item/2255800689099192.html
Every LED Adafruit sells comes from China, they do not make their own LEDs. They just mark up the price to a ridiculous extent and they prey on well meaning but clueless electronics hobbyists. There are many other examples, but I think I've spent enough time on this topic.

Continue this thread — 4 replies

MSFT_Edging#
Adafruit breakouts, libraries, and other various components are often leveraged at early prototype stages in general industry.

That is unless all you do is high speed FPGA work and that's all you consider to be "industry".