Skip to main content

A toolchain bringing the best of software development to the real-world!

Project description

Shows a black logo in light color mode and a white one in dark color mode.


Logo atopile

📖 What Is atopile?

atopile is a tool to build electronic circuit boards with code.

🗣️ Join Us On Discord

What's your story in electronics? What would you like us to build? Come talk on discord.

Discord Banner 3

⚡️ato Code Examples

Simple Examples:

Voltage Divider

from "generics/resistors.ato" import Resistor

module VoltageDivider:
    signal top
    signal out
    signal bottom

    r_top = new Resistor
    r_top.package = "R0402"

    r_bottom = new Resistor
    r_bottom.package = "0402"

    top ~ r_top.p1; r_top.p2 ~ out
    out ~ r_bottom.p1; r_bottom.p2 ~ bottom

    r_total: resistance
    v_in: voltage
    v_out: voltage
    i_q: current

    assert v_in * r_bottom.value / (r_top.value + r_bottom.value) within v_out
    assert v_in / (r_bottom.value + r_top.value) within i_q

RP2040 Blinky Circuit

import RP2040Kit from "rp2040/RP2040Kit.ato"
import LEDIndicatorRed 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 LEDIndicatorRed
    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.v_in = 3.3volt +/-10%

Full Projects

Checkout out the servo drive project or the logic card project.

🔨 Getting Started

Find our documentation and getting started video.

atopile is on pypi.org: https://pypi.org/project/atopile/

Most Basic Installation

atopile requires python3.11 or later, which you can install using your package manager or from python.org.

Then just pip install atopile and you're good to go!

❓ Why Atopile?

The objective of atopile is to help push forward these paradigms from the software world to hardware, mainly these points:

  • Intelligent Design Capture: Define hardware specifications like ratios and tolerances in code, enabling precise control and easy reuse of designs.
  • Version Control Integration: Use git to manage design changes, facilitating collaboration and ensuring each iteration is thoroughly reviewed and validated.
  • Continuous Integration (CI): Implement CI to guarantee high-quality, compliant designs with every commit, represented by a green checkmark for assurance.

Describing hardware with code might seem odd at first glance. But once you realize it introduces software development paradigms and toolchains to hardware design, you'll be hooked, just like we've become.

Code can capture the intelligence you put into your work. Imagine configuring not the resistance values of a voltage divider, but its ratio and total resistance, all using physical units and tolerances. You can do this because someone before you described precisely what this module is and described the relationships between the values of the components and the function you care about. Now instead imagine what you can gain from reusing a buck design you can merely configure the target voltage and ripple of. Now imagine installing a servo drive the same way you might numpy.

Version controlling your designs using git means you can deeply validate and review changes a feature at a time, isolated from impacting others' work. It means you can detangle your organisation and collaborate on an unprecedented scale. We can forgo half-baked "releases" in favor of stamping a simple git-hash on our prototypes, providing an anchor off which to associate test data and expectations.

Implementing CI to test our work ensures both high-quality and compliance, all summarised in a green check mark, emboldening teams to target excellence.

🔍 Discover what people build

Browse and submit your modules at packages.atopile.io

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atopile-0.2.43.dev0.tar.gz (61.1 MB view details)

Uploaded Source

Built Distribution

atopile-0.2.43.dev0-py3-none-any.whl (736.7 kB view details)

Uploaded Python 3

File details

Details for the file atopile-0.2.43.dev0.tar.gz.

File metadata

  • Download URL: atopile-0.2.43.dev0.tar.gz
  • Upload date:
  • Size: 61.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for atopile-0.2.43.dev0.tar.gz
Algorithm Hash digest
SHA256 12c67d1f07520bc2827171a0bb0aa857b2d3f4c3bed0c7f4d4512d5c070ee0b8
MD5 a807beceb14faa861e6704a2f56cc18d
BLAKE2b-256 504cd6393bf6a0146b091c4ce065fe248872b51994f7f45d51a0cd1771b3de07

See more details on using hashes here.

File details

Details for the file atopile-0.2.43.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for atopile-0.2.43.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 d76196d3a7fad5e59a2aa655cc0ca6c099c53cbc5778c0767f9fc2a070141f28
MD5 c1949349f26cfaf4f1c9b6c412141383
BLAKE2b-256 961f8617f8b20824f234fc19442ec55b7d372eb762bfb288d5b8d26995194c60

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page