stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

3h 6m 51s logged

A lot has happened since the last devlog; this was the phase of making the simulator more complete and visually clear. (I apologize for adding so much time to a single devlog, but I kept having ideas and working on them, I didn’t even realize it had been 3 hours without any breakdown.)

In terms of interface and usability, it’s now possible to delete components and wires with the right mouse button (deletes the component + connected wires, or just an isolated wire).
The components are no longer generic rectangles: now they have real electrical symbols, a battery-style cell (with +/-), a zigzag resistor, an LED as a triangle + bar (also with +/-). (I used a bit of AI in this part of the element design to make sure it’s well done and with the correct symbols, since I sometimes get confused with the symbols.)

I also added new components (and I still intend to add more):
Switch, clickable, toggles between on (closed green line) and off (open, red); If switched off, the circuit shows “Open circuit”.
Capacitor, symbolized by two parallel lines, currently “transparent” to the calculation (still without simulation of charge/discharge over time).
Button, like a switch, but only stays on while the mouse holds it down.
Motor, symbolized by a circle with “M”, treated as a series voltage consumer (like an LED, but without requiring polarity or current limit). The motor was what gave me the most trouble because I tried to use it with the same logic as the LED, but to do so I had to rewrite the motor calculation in my code.

As I mentioned before, I rewrote the calculation engine to traverse the real circuit chain starting from the battery (instead of just grouping connected components), and this allowed the simulator to support multiple LEDs in series (summing the forward voltages of all of them), detect LEDs connected backwards (current entering through the cathode), with an explanatory warning, mix different types of “consumers” (LEDs and motors) in the same circuit (the problem that made me want to change this part of the code), and I fixed a bug where a circuit with only a motor (without an LED) showed no results.

At this moment, the simulator already supports 7 different components (battery, resistor, LED, switch, button, capacitor, motor), all with their own symbols, pedagogical error detection, and a calculation engine that traverses the real circuit instead of always assuming the same fixed structure.

Now I want to add a multimeter, which will be different from the others because it’s not another link in the chain, but a measuring instrument that connects to a point of your choice.

0
5

Comments 0

No comments yet. Be the first!