Skip to content

Project combining Wokwi's AVR8js Arduino simulator and Paul Falstad's CircuitJS1 circuit simulator

License

GPL-2.0, GPL-2.0 licenses found

Licenses found

GPL-2.0
LICENSE.txt
GPL-2.0
COPYING.txt
Notifications You must be signed in to change notification settings

x2nie/AVR8js-Falstad

 
 

Repository files navigation

AVR8js-Falstad

Project combining Wokwi's AVR8js Arduino simulator (https://github.com/wokwi/avr8js) and Paul Falstad's CircuitJS1 circuit simulator (https://github.com/pfalstad/circuitjs1).

Running

To run this project, simply clone or download the repo and open /war/index.html in a compatible browser (known to work with Chrome)

Using

  1. Copy and paste an Arduino script into the text editor on the right side of the screen
  2. Click "Run"
  3. Double-click on each Arduino pin to assign it to an AVR8js pin
  4. Create your own circuits by selecting Draw => Arduino Pin and dragging out Arduino pins (Arduino pins must have the "negative" node connected to a ground element)
  5. Ensure that simulation speed is not set to 0!

Building

To build the CircuitJS1 part of the application, follow the instructions at https://github.com/pfalstad/circuitjs1#building-the-web-application Note:You must be using GWT version 2.8.1 and JDK 1.8.0 to build this. The compiler argument -generateJsInteropExports must be passed

To build the avr8js part of the application, read the README in /avr8js and use "npm run-script build:demo". This utilises my edited package.json file to build my edited version of the demo project.

To integrate these two, move the contents of /avr8js/demo/dist to /war/AVR8js and edit the JS file argument on line 99 of /src/com/lushprojects/circuitjs1/client/circuitjs1.java (motorScript.setPropertyString("src", "AVR8js/src.30e1f952.js")) to reflect the new file being used.

License information

AVR8js (available at https://github.com/wokwi/avr8js) is used under the MIT License: https://github.com/wokwi/avr8js/blob/master/LICENSE

CircuitJS1 (available at https://github.com/pfalstad/circuitjs1) is used under the GPL 2.0 License: https://github.com/pfalstad/circuitjs1/blob/master/COPYING.txt

As a derivative work of AVR8js and CircuitJS1, this project is under the GPL 2.0 License.

About

Project combining Wokwi's AVR8js Arduino simulator and Paul Falstad's CircuitJS1 circuit simulator

Resources

License

GPL-2.0, GPL-2.0 licenses found

Licenses found

GPL-2.0
LICENSE.txt
GPL-2.0
COPYING.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 74.5%
  • TypeScript 16.6%
  • CSS 3.9%
  • JavaScript 2.6%
  • HTML 2.2%
  • PHP 0.1%
  • C++ 0.1%