// Howdy 👋.
//
// This is where you can create powerful part automations like resistors that tell you when too much current is flowing through them
// You can also create your own flexible parts, like generics (https://docs.flux.ai/Introduction/generic-parts)
//
// If you are new to writing code in Flux make sure to check out our get started docs: https://docs.flux.ai/reference/introduction
//
// We also have a Flux Slack Community in case you need help: https://join.slack.com/t/fluxcommunity/shared_invite/zt-p48n941f-wzQ06kGmuFJ2HXnGYT1JkA
//
// To infinity and beyond 🚀# Initialize the design
init_design("Stepper Motor Control Board")
# Add power input socket
power_socket = add_component("PowerSocket", "12V_Input")
connect(power_socket, "GND", net = "GND")
# Add buck converter circuit(for converting 12V to 5V)
buck_converter = add_component("BuckConverter", "12V_to_5V")
connect(power_socket, "VCC", buck_converter, "Input")
connect(buck_converter, "Output", net = "5V")
connect(buck_converter, "GND", net = "GND")