As I mentioned in the last devlog, I’m making changes to the learning method. In the last hour, I added things that were really missing from the simulator. I created a new type of lesson, “assemble_circuit,” where instead of typing a number, the user assembles the circuit on the screen and presses Enter for the program to automatically check if the assembled circuit meets the request (e.g., “achieves a current of ~15mA”). The verification uses the existing calculation engine, comparing the present components and the resulting current with what the lesson asks for, with a tolerance margin. While testing this, I noticed that there was still no way to adjust the component values after they were placed (the resistance always stayed at 1000Ω, the battery always at 9V), which made Lesson 5 impossible to complete as planned. Even though I wanted to include this function from the beginning of this project, I hadn’t yet taken the time to do it. So I finally added value editing with the mouse wheel; now hovering the mouse over a resistor or battery and rotating the wheel adjusts the value in real time. The current value now appears below the component name (e.g., “Resistance (470Ω)”) (I wish I could add a screen recording to show this working, but it seems that only screenshots are allowed).
This ended up being a much bigger improvement than just “fixing” Lesson 5, since the simulator became much more realistic and experimentable, as before all components had fixed default values.
I forgot to mention on the last devlog, but answers now have a 5% tolerance if your calculator gives a wierd number for some reason
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.