i
IoTSpark
Back

Circuit Diagram (Diagram)

Drag and drop components, wire connections, Auto-Connect modules, and handle warnings on the canvas.

Handling Connection Warnings and Errors

Auto-Fixing Wire Warnings (Auto Fix Wires)

When the diagram has a wire conflict (e.g. wrong supply voltage, power routed through the controller instead of directly, duplicate wires, I2C address conflicts...), the Properties panel on the right shows a "Warnings" card with the number of errors and a "Fix All" button.

  1. Click "Fix All" — the "Auto-Fix Wire Errors" modal opens and automatically analyzes the current diagram.
  2. The modal displays:
    • "Changes That Can Be Applied" — fixes the system can apply automatically right away.
    • "Needs Manual Handling" — errors the system cannot fix automatically, along with a description.
    • "Suggested Power Fix" — for example "Add a 5V → 3.3V power converter module" when a device needs a voltage converter; each suggestion has its own "Apply" button.
  3. Click "Apply Changes (N)" to apply all fixes in the "Changes That Can Be Applied" section, or click "Apply" on each individual power suggestion.
  4. If you edit the diagram while the modal is open, the system shows "The diagram has changed since the analysis. Please re-analyze before applying." — click "Re-analyze" before applying further.
  5. Click "Cancel" to close without applying anything.

Result: wires/components are fixed according to your choices (e.g. reconnecting power to the correct voltage rail, or adding a power converter module to the diagram); the corresponding warning disappears from the "Warnings" card after applying and saving.

Fixing Pin Connection Errors (Connection Pins)

This is a different kind of error from the wire conflicts above — it happens when the project's pin connection map (connection map) points to a pin that no longer exists in the component catalog.

  • In the "Components" tab in the left panel, if there's an error, a message like "There are N pin connection errors" appears right above the connection table.
  • The Properties panel on the right also shows a warning item "Pin Connection Errors" with the description "There are N pin connection errors. Please fix them before saving."
  • Click the "Auto-Fix Pin Connection Errors" button in that warning card.

Result: the system automatically re-matches the erroneous pins with the correct pins in the component catalog; the error message and warning table disappear, and the change is saved to the project once you save the diagram.

Viewing and Handling the General Warnings Card

  • The "Warnings" card in the Properties panel only appears when there's a conflict or pin connection error — it's fully hidden when the diagram is clean.
  • This card sits below the main content area (the properties form or the empty "No component selected" screen), not fixed at the top of the panel.
  • Click a specific warning line to have the system jump you straight to the related wire/component on the canvas.

Example

The DHT22 needs 3.3V power but was accidentally connected to the ESP32's 5V pin — the "Warnings" card reports 1 "wrong supply voltage" error. Click "Fix All" → the modal proposes "Reconnect to the 3.3V pin" under "Changes That Can Be Applied" → click "Apply Changes" and the wire is automatically reconnected correctly, and the warning disappears.