{"id":605,"date":"2022-11-22T16:17:46","date_gmt":"2022-11-22T16:17:46","guid":{"rendered":"https:\/\/www.wiquid.fr\/?p=605"},"modified":"2022-11-23T13:35:06","modified_gmt":"2022-11-23T13:35:06","slug":"a-circuit-simulator-in-javascript","status":"publish","type":"post","link":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/","title":{"rendered":"An electronic circuit simulator in javascript"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">How could we have an electronic circuit editor in TAO platform? Years ago, I explored many solutions for DEPP (French Ministery of Education service in charge of statistics) and I think that this new solution could benefit to many TAO users. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">H.Lorenzi has created an open source project of this kind (<a href=\"https:\/\/github.com\/hlorenzi\/circuitsim\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/hlorenzi\/circuitsim<\/a>). The idea is to use this project as a model. If you analyze the code, it is based on nodejs and build with Webpack, that is not compatible with the PCI structure. The challenge is to change the Javascript design patern to RequireJS, to make it compatible with the PCI format for TAO. <\/p>\n\n\n\n<iframe loading=\"lazy\" id=\"circuitSim\" title=\"Building an electronic circuit\" width=\"800\" height=\"600\" src=\"https:\/\/www.wiquid.fr\/projects\/circuitSim\/\">\n<\/iframe>\n\n\n\n<p class=\"wp-block-paragraph\">This applet has 2 main functionalities : <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. the graphic editor <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. the solver.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The solver is a module that calculates the representation, depending on the elements and their connections. It displays the values (Volt, Watt &#8230;), the electric current animation and its speed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I explored successfully this solution as a proof of concept of a TAO PCI Electronic Circuit Editor.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"TAO 2021\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/8uqwJDYaesM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Refactoring all the object system et restructured the code to fit to PCI, this electronic circuit design tool works now in TAO. Of course, all complementary features must be developed, adding options : elements and symbols. The item creator could choose what to display, using the solver or not, using different type of symbols (beginners, students, professionnals), adding much more elements to the palette.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are interested in this project and have ideas on how to make it better. Please contact me or leave a comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How could we have an electronic circuit editor in TAO platform? Years ago, I explored many solutions for DEPP (French Ministery of Education service in charge of statistics) and I think that this new solution could benefit to many TAO users. H.Lorenzi has created an open source project of this kind (https:\/\/github.com\/hlorenzi\/circuitsim). The idea is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-605","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>An electronic circuit simulator in javascript - Wiquid Digital Tools for Education<\/title>\n<meta name=\"description\" content=\"An electronic circuit design tool could be a very interesting feature for TAO testing platform. This shows a proof of concept of such module, through the PCI (portable custom interaction) format.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"An electronic circuit simulator in javascript - Wiquid Digital Tools for Education\" \/>\n<meta property=\"og:description\" content=\"An electronic circuit design tool could be a very interesting feature for TAO testing platform. This shows a proof of concept of such module, through the PCI (portable custom interaction) format.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"Wiquid Digital Tools for Education\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wiquid.toulouse\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/wiquid.toulouse\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-22T16:17:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-23T13:35:06+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@jeanphi96881100\" \/>\n<meta name=\"twitter:site\" content=\"@Wiquid_JPR\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.wiquid.fr\/#\/schema\/person\/d9d52c68f7f300765d327cfb26e0d38a\"},\"headline\":\"An electronic circuit simulator in javascript\",\"datePublished\":\"2022-11-22T16:17:46+00:00\",\"dateModified\":\"2022-11-23T13:35:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/\"},\"wordCount\":262,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.wiquid.fr\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/\",\"url\":\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/\",\"name\":\"An electronic circuit simulator in javascript - Wiquid Digital Tools for Education\",\"isPartOf\":{\"@id\":\"https:\/\/www.wiquid.fr\/#website\"},\"datePublished\":\"2022-11-22T16:17:46+00:00\",\"dateModified\":\"2022-11-23T13:35:06+00:00\",\"description\":\"An electronic circuit design tool could be a very interesting feature for TAO testing platform. This shows a proof of concept of such module, through the PCI (portable custom interaction) format.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.wiquid.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"An electronic circuit simulator in javascript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wiquid.fr\/#website\",\"url\":\"https:\/\/www.wiquid.fr\/\",\"name\":\"Wiquid Digital Tools for Education\",\"description\":\"Wiquid Digital\",\"publisher\":{\"@id\":\"https:\/\/www.wiquid.fr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wiquid.fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.wiquid.fr\/#organization\",\"name\":\"Wiquid Digital Tools for Education\",\"url\":\"https:\/\/www.wiquid.fr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wiquid.fr\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.wiquid.fr\/wp-content\/uploads\/2021\/12\/cropped-WiquidYellowTilesBIG.png?fit=1392%2C241&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.wiquid.fr\/wp-content\/uploads\/2021\/12\/cropped-WiquidYellowTilesBIG.png?fit=1392%2C241&ssl=1\",\"width\":1392,\"height\":241,\"caption\":\"Wiquid Digital Tools for Education\"},\"image\":{\"@id\":\"https:\/\/www.wiquid.fr\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/wiquid.toulouse\",\"https:\/\/x.com\/Wiquid_JPR\",\"https:\/\/www.linkedin.com\/in\/jean-philippe-rivire-983b5651\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wiquid.fr\/#\/schema\/person\/d9d52c68f7f300765d327cfb26e0d38a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wiquid.fr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/570c9a27a69de01dd5f0a613e4cfd76d2d46954d19c8a694902fdd71e9afd2c6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/570c9a27a69de01dd5f0a613e4cfd76d2d46954d19c8a694902fdd71e9afd2c6?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/www.wiquid.fr\",\"https:\/\/www.facebook.com\/wiquid.toulouse\",\"https:\/\/www.linkedin.com\/in\/jean-philippe-rivire-983b5651\/\",\"https:\/\/x.com\/jeanphi96881100\"],\"url\":\"https:\/\/www.wiquid.fr\/index.php\/author\/janfix\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"An electronic circuit simulator in javascript - Wiquid Digital Tools for Education","description":"An electronic circuit design tool could be a very interesting feature for TAO testing platform. This shows a proof of concept of such module, through the PCI (portable custom interaction) format.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"An electronic circuit simulator in javascript - Wiquid Digital Tools for Education","og_description":"An electronic circuit design tool could be a very interesting feature for TAO testing platform. This shows a proof of concept of such module, through the PCI (portable custom interaction) format.","og_url":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/","og_site_name":"Wiquid Digital Tools for Education","article_publisher":"https:\/\/www.facebook.com\/wiquid.toulouse","article_author":"https:\/\/www.facebook.com\/wiquid.toulouse","article_published_time":"2022-11-22T16:17:46+00:00","article_modified_time":"2022-11-23T13:35:06+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@jeanphi96881100","twitter_site":"@Wiquid_JPR","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/#article","isPartOf":{"@id":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/"},"author":{"name":"admin","@id":"https:\/\/www.wiquid.fr\/#\/schema\/person\/d9d52c68f7f300765d327cfb26e0d38a"},"headline":"An electronic circuit simulator in javascript","datePublished":"2022-11-22T16:17:46+00:00","dateModified":"2022-11-23T13:35:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/"},"wordCount":262,"commentCount":0,"publisher":{"@id":"https:\/\/www.wiquid.fr\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/","url":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/","name":"An electronic circuit simulator in javascript - Wiquid Digital Tools for Education","isPartOf":{"@id":"https:\/\/www.wiquid.fr\/#website"},"datePublished":"2022-11-22T16:17:46+00:00","dateModified":"2022-11-23T13:35:06+00:00","description":"An electronic circuit design tool could be a very interesting feature for TAO testing platform. This shows a proof of concept of such module, through the PCI (portable custom interaction) format.","breadcrumb":{"@id":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wiquid.fr\/index.php\/2022\/11\/22\/a-circuit-simulator-in-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wiquid.fr\/"},{"@type":"ListItem","position":2,"name":"An electronic circuit simulator in javascript"}]},{"@type":"WebSite","@id":"https:\/\/www.wiquid.fr\/#website","url":"https:\/\/www.wiquid.fr\/","name":"Wiquid Digital Tools for Education","description":"Wiquid Digital","publisher":{"@id":"https:\/\/www.wiquid.fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wiquid.fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wiquid.fr\/#organization","name":"Wiquid Digital Tools for Education","url":"https:\/\/www.wiquid.fr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wiquid.fr\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.wiquid.fr\/wp-content\/uploads\/2021\/12\/cropped-WiquidYellowTilesBIG.png?fit=1392%2C241&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.wiquid.fr\/wp-content\/uploads\/2021\/12\/cropped-WiquidYellowTilesBIG.png?fit=1392%2C241&ssl=1","width":1392,"height":241,"caption":"Wiquid Digital Tools for Education"},"image":{"@id":"https:\/\/www.wiquid.fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/wiquid.toulouse","https:\/\/x.com\/Wiquid_JPR","https:\/\/www.linkedin.com\/in\/jean-philippe-rivire-983b5651\/"]},{"@type":"Person","@id":"https:\/\/www.wiquid.fr\/#\/schema\/person\/d9d52c68f7f300765d327cfb26e0d38a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wiquid.fr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/570c9a27a69de01dd5f0a613e4cfd76d2d46954d19c8a694902fdd71e9afd2c6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/570c9a27a69de01dd5f0a613e4cfd76d2d46954d19c8a694902fdd71e9afd2c6?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/www.wiquid.fr","https:\/\/www.facebook.com\/wiquid.toulouse","https:\/\/www.linkedin.com\/in\/jean-philippe-rivire-983b5651\/","https:\/\/x.com\/jeanphi96881100"],"url":"https:\/\/www.wiquid.fr\/index.php\/author\/janfix\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/posts\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/comments?post=605"}],"version-history":[{"count":11,"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/posts\/605\/revisions"}],"predecessor-version":[{"id":625,"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/posts\/605\/revisions\/625"}],"wp:attachment":[{"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/media?parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/categories?post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiquid.fr\/index.php\/wp-json\/wp\/v2\/tags?post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}