Skip to content

[WIP] Add CircuitBuilder activity - #2015

Open
karthik-dev56 wants to merge 8 commits into
llaske:devfrom
karthik-dev56:feature/circuit-builder-activity
Open

karthik-dev56 wants to merge 8 commits into
llaske:devfrom
karthik-dev56:feature/circuit-builder-activity

Conversation

@karthik-dev56

@karthik-dev56 karthik-dev56 commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

This PR adds the CircuitBuilder activity to Sugarizer.

Fixes #1981

Changes

  • Added CircuitBuilder.activity with all required assets, icons, and logic

Status

  • Activity loads and runs
  • Add palette of running Circuits
  • Added show-labels of V and I,Current-flow,Voltage-controller
  • Different components are left for designing like : two switches etc..
  • Save to Jounal
  • Final testing and cleanup

This is a work in progress. Feedback welcome!

Removed commented sections and unused styles for clarity.
Removed comments explaining the usage of the dictstore module.
@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske Please have a look at this when you have a time

@llaske llaske changed the title [WIP] Add CircuitBuilder activity #1981 [WIP] Add CircuitBuilder activity Mar 11, 2026
@llaske

llaske commented Mar 11, 2026

Copy link
Copy Markdown
Owner

That's not fun. It's too scripted : the user must only follow instructions level by level. It's just like a book.
Sugarizer activities should be creative and make users want to play with it.

@karthik-dev56

karthik-dev56 commented Mar 11, 2026

Copy link
Copy Markdown
Contributor Author

Hey @llaske Actually I thought first like a game wise like the kid should know right what he should know I mean like : Bulb and wires how to connect so My idealogy was like that......Any way i willl make more fun way thank you....

@karthik-dev56

karthik-dev56 commented Mar 12, 2026

Copy link
Copy Markdown
Contributor Author

Hey @llaske I have updated the sandbox very well now kid can enjoy playing :

simplescreenrecorder-2026-03-12_19.17.50.mp4

Also This is the basic version I am doing research both on ConnectDots and Circuit builder so kids can enjoy lot and I have raised the PR

@llaske

llaske commented Mar 12, 2026

Copy link
Copy Markdown
Owner

That's better.
May be you could add a palette where you could choose some running circuits.

@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske Thank you for your feedback by the way nice idea I will try to implement and update you soon

- Added complete CircuitBuilder.activity with interactive circuit building interface
- Implemented circuit components: battery, bulb, switch with drag-and-drop functionality
- Added circuit validation and simulation engine
- Included comprehensive icon set for circuit elements and UI controls
- Added tutorial system and help documentation
- Integrated with Sugar-web framework and Sugarizer environment
- Added localization support (English and French)
- Included comprehensive test suite and build configuration
@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske I have added simple running circuits section so kids can take there interested palete and make changes and enjoy with their ideas:

simplescreenrecorder-2026-03-16_21.16.03.mp4

@karthik-dev56

karthik-dev56 commented Mar 31, 2026

Copy link
Copy Markdown
Contributor Author

Hey @llaske can u suggest few more ideas if u have time like what more features can we add in this to make it more playful

@karthik-dev56

karthik-dev56 commented Apr 1, 2026

Copy link
Copy Markdown
Contributor Author

Hey @llaske

I have added show V&I Labels and current-flow-direction and Voltage-Control
Its a fun and learning feature kids ca know current flow direction and can have fun on changing voltage and bulb glow changes accordingly

simplescreenrecorder-2026-04-01_21.12.38.mp4

Also u can suggest me some more ideas, your feedback support matters a lot to me

@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske
please have a look its important

@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske please have a look and say your feedback and suggestion to move forward

@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske please have a look at this and give your feedback and suggestions

@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske please have a look

@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske If you have time please review this also

@Ashutoshx7

Copy link
Copy Markdown

Hy please don't ping mentor over and over again
When he will have time he will get back to your pr

@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske really for sorry for messaging u frequently to review my activity when ever u are free u can take look i wont force now

@karthik-dev56

Copy link
Copy Markdown
Contributor Author

Hey @llaske

I have added show V&I Labels and current-flow-direction and Voltage-Control Its a fun and learning feature kids ca know current flow direction and can have fun on changing voltage and bulb glow changes accordingly
simplescreenrecorder-2026-04-01_21.12.38.mp4

Also u can suggest me some more ideas, your feedback support matters a lot to me

@llaske can u review this when have time please

@llaske

llaske commented Aug 17, 2026

Copy link
Copy Markdown
Owner

@karthik-dev56 following are my remarks. See also the latest comment on the issue where I've described what is expected from this activity.

  • Items are not looking good. Plus a light bulb should have a small point at the bottom (the contact) and a metal part around it (the base). It's important to make a difference between these parts. May be we could reuse items in GCompris application (https://invent.kde.org/education/gcompris/-/blob/master/src/activities/analog_electricity/resource . A mention is need in a credit file (CC-BY-SA)
  • Icons don't match the items. So for example, icon for battery is very different from the item on the board.
  • Icon to remove on item should be the minus icon (see in Labyrinth activity). Icon to remove everything on the board should be the square with a cross (see in Paint activity)
  • When you select an item in the toolbar each click will create a new item from this type. It's not user friendly. Plus for this activity the user will not create lot of items of each type. So it's better to avoid selection and just add an item in the board on each click in the toolbar.
  • It's not a good idea to use popup to change the voltage. We could just change the voltage on each click on the number. Click on 10V become 1V, click on 1V become 2V, … By the way I'm even not sure changing voltage is interesting.
  • The display of "I" label on the board is useless. Also the direction of electricity (yellow arrows) is useless.
  • Double click on a wire remove it, I don't think it's a good idea.
  • Do not display a message when the board is empty: some users can't read.
  • The board is brown with dots. It's better to have a white board like other activities.
  • There is a bug in processing parallel circuit, when one wire to one light is removed the light continue to work
  • It will be nice too to add items to explore electricity conductivity : Conductors allow current to flow (iron, aluminum, tap water). Insulators block current and protect against electric shock (plastic, wood, fabric, glass).
  • Regarding general game play, I suggest to remove completely the ready-to-use templates but use two features to encourage user to experiment:
    -- Medal reward, like in Curriculum activity. Each time the user complete a task expected, a medal is win. The medal could be easy to win (first time a battery is created, first time a link between two components has be done, ...) or more complex (first simple loop, first parallel loop, ...)
    -- Robot: clicking on the robot will help the user to accomplish the next step (like in Flip activity). The Robot is smart, he should suggest the more pertinent item considering the current board and the progress (medals) of the user. Of course, using the help of Robot prevent the user to win a medal on the current board.
    -- On medals screen the user could get a detailed explanation of what should be build to win the medal

@karthik-dev56

Copy link
Copy Markdown
Contributor Author

@llaske thank you llaske i will go with this features and research some more if it looks good and discuss with you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants