Error codes › pin-current

Error codes

pin-current

error Boards, pins and parts

What it means#

A part linked to a board's pin draws more than the pin gives: the board's pin-current (20 mA on an Arduino UNO) against the current of the part's port (a motor's leads take 250 mA). A motor or a relay gets the quick fix "put a driver between them" (an L298N). As a warning: a LED straight on a pin with no resistor said (no current on its port).

How to fix it#

The message says what is wrong and where, and often what was meant (Did you mean …?). Change the model so that what this page describes no longer holds, then check again: archec check main.arche.

An error: archec builds nothing until it is fixed.

archec check --beginner says the most common messages in plain words, with the names that exist.

The automatic fix#

archec has no fix of its own for this code. When the message says Did you mean …?, VS Code offers that change (Quick Fix).

In the terminal#

archec explain pin-current prints this explanation; archec explain hardware lists the codes of its area.