All Projects → wokwi → Avr8js

wokwi / Avr8js

Licence: mit
Arduino (8-bit AVR) simulator, written in JavaScript and runs in the browser / Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Avr8js

Attinycore
Arduino core for ATtiny 1634, 828, x313, x4, x41, x5, x61, x7 and x8
Stars: ✭ 974 (+854.9%)
Mutual labels:  arduino, microcontroller, avr
Tinygo
Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
Stars: ✭ 9,068 (+8790.2%)
Mutual labels:  arduino, microcontroller, avr
Platformio Core
PlatformIO is a professional collaborative platform for embedded development 👽 A place where Developers and Teams have true Freedom! No more vendor lock-in!
Stars: ✭ 5,539 (+5330.39%)
Mutual labels:  arduino, microcontroller, avr
Blog
A set of various projects based on ESP8266, ESP32, ATtiny13, ATtiny85, ATtiny2313, ATmega8, ATmega328, ATmega32, STM32 and more.
Stars: ✭ 198 (+94.12%)
Mutual labels:  arduino, microcontroller, avr
Minicore
Arduino hardware package for ATmega8, ATmega48, ATmega88, ATmega168, ATmega328 and ATmega328PB
Stars: ✭ 546 (+435.29%)
Mutual labels:  arduino, microcontroller, avr
Mightycore
Arduino hardware package for ATmega1284, ATmega644, ATmega324, ATmega324PB, ATmega164, ATmega32, ATmega16 and ATmega8535
Stars: ✭ 413 (+304.9%)
Mutual labels:  arduino, microcontroller, avr
Arduino freertos library
A FreeRTOS Library for all Arduino AVR Devices (Uno, Leonardo, Mega, etc)
Stars: ✭ 523 (+412.75%)
Mutual labels:  arduino, avr
Ferret
Ferret is a free software lisp implementation for real time embedded control systems.
Stars: ✭ 878 (+760.78%)
Mutual labels:  arduino, microcontroller
Erika3
ERIKA Enterprise v3 RTOS
Stars: ✭ 98 (-3.92%)
Mutual labels:  arduino, avr
Bare Arduino Project
Start your Arduino projects right out of the box
Stars: ✭ 505 (+395.1%)
Mutual labels:  arduino, avr
Calunium
Arduino clone based on the ATmega644P/ATmega1284P
Stars: ✭ 30 (-70.59%)
Mutual labels:  arduino, avr
Rf1101se Teensy
Driving one of those cheap RF1101SE boards with a Arduino or Teensy
Stars: ✭ 45 (-55.88%)
Mutual labels:  arduino, microcontroller
Avr Cheat Sheet
AVR cheat sheet for the ATmega328p
Stars: ✭ 64 (-37.25%)
Mutual labels:  microcontroller, avr
Ir Tester
Quick IR Value Tester
Stars: ✭ 14 (-86.27%)
Mutual labels:  arduino, avr
Arduinomenu
Arduino generic menu/interactivity system
Stars: ✭ 520 (+409.8%)
Mutual labels:  arduino, avr
Koduino
Arduino code for STM32 microcontrollers
Stars: ✭ 63 (-38.24%)
Mutual labels:  arduino, microcontroller
Serial Studio
Multi-purpose serial data visualization & processing program
Stars: ✭ 1,168 (+1045.1%)
Mutual labels:  arduino, microcontroller
Ol3d
A tiny portable 3D graphics lib for micro controllers
Stars: ✭ 90 (-11.76%)
Mutual labels:  arduino, microcontroller
Platformio Atom Ide
PlatformIO IDE for Atom: The next generation integrated development environment for IoT
Stars: ✭ 475 (+365.69%)
Mutual labels:  arduino, microcontroller
Deepsleepscheduler
DeepSleepScheduler is a lightweight, cooperative task scheduler library with configurable sleep and task supervision.
Stars: ✭ 59 (-42.16%)
Mutual labels:  arduino, avr

AVR8js

This is a JavaScript library that implementats the AVR 8-bit architecture.

It's the heart- but not the whole body- of the Arduino simulator at https://wokwi.com.

Build Status NPM Version License: MIT Types: TypeScript Gitpod ready-to-code

Example Applications Using AVR8js

How to Use This Library

This library only implements the AVR CPU core. You have to supply it pre-compiled machine code to run, and implement functional simulations of any external hardware. You will probably also want to add audio/visual representations of external hardware being simulated.

A rough conceptual diagram:

Pre-Compiled machine code --> AVR8js <--> Glue code <--> external hardware functional simulation <--> simulation state display for the user

You may be interested in exploring the wokwi-elements collection of web-components for visual representations of many common hardware components. (Note: these are visual only elements- you will need to add the appropriate functional simulation and glue code.)

Walkthrough Video Tutorial

A step-by-step video tutorial showing how to build a simple Arduino simulator using AVR8js and React:

AVR8JS Walkthrough Video

And a related blog post.

Unofficial examples

These examples show working examples of using avr8js in an application. Many of them also demonstrate how to use the wokwi-elements and include working examples of functional simulations of the components, and how to hook them up to avr8js.

Note: they are all hosted outside of this repo.

Running the demo project

The demo project allows you to edit Arduino code, compile it, and run it in the simulator. It also simulates 2 LEDs connected to pins 12 and 13 (PB4 and PB5).

To run the demo project, check out this repository, run npm install and then npm start.

Which chips can be simulated?

The library focuses on simulating the ATmega328p, which is the MCU used by the Arduino Uno.

However, the code is built in a modular way, and is highly configurable, making it possible to simulate many chips from the AVR8 family, such as the ATmega2560 and the ATtiny series:

Check out issue 67 and issue 73 for more information.

Running the tests

Run the tests once:

npm test

Run the tests of the files you modified since last commit (watch mode):

npm run test:watch

For more information, please check the Contributing Guide.

License

Copyright (C) 2019, 2020, 2021 Uri Shaked. The code is released under the terms of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].