CCNAP

01In-browser Arduino lab · Cnipbotics

An Arduino lab engineered around the browser you already have.

CNAP lets students write, wire and run real Arduino sketches in one tab — compiled with the official toolchain, simulated on an emulated ATmega328P, and drawn on a live circuit canvas. No boards to buy, nothing to install.

ARDUINO UNO R3 · TOP VIEWEmulated board · pins, LEDs and serial are live

12345

FIG. 1Arduino UNO R3 · top viewSYS-0328

  • 01USB / SerialUpload and Serial Monitor at 9600 baud
  • 02Digital I/O14 pins, 6 with PWM (~)
  • 03ATmega328PAVR8 core emulated at 16 MHz
  • 04Analog inA0–A5 for sensors and potentiometers
  • 05Power5 V and 3.3 V rails
Clock speed
16MHz
ATmega328P, AVR8 core
Parts
50
Wokwi element library
Templates
26
Starter circuits, one click
Installs
0
Runs in a modern browser
04System recordSYS-0328

Inside the playground

Editor
Monaco · Arduino C++
Compiler
arduino-cli
Core
avr8js · ATmega328P
Canvas
Wokwi elements
123

FIG. 2Editor → core → canvasSYS-0328

Code, compiler and circuit stay in step — edit a line, press Run, and watch the pin change.

Clock

16MHz

Cycle-accurate AVR8 core

Flash

32KB

ATmega328P program memory

Serial

9600baud

Default Serial Monitor rate

05ComponentsWK INDEX

Parts from the kit students already know.

LEDs in the first lesson, sensors and displays by the end of term — the same parts a classroom kit ships with, each with a wiring guide.

All parts

06Starter circuitsTPL INDEX

Not only blink: input, display and motion.

Every template ships with its sketch, a wiring table and the circuit already on the canvas.

TPL-11beginnerbutton · LED

Press the button to toggle a red LED on and off.

Parts on canvas
4
Wires
5
Open template →

TPL-07intermediateLCD · display

Displays 'Hello, World!' on row 1 and a live uptime counter on row 2, using the LiquidCrystal library in 4-bit mode.

Parts on canvas
2
Wires
6
Open template →

TPL-18beginnerservo · analog input

Read a potentiometer's position and use it to set a servo's angle in real time — a classic analog-input-to-motion demo.

Parts on canvas
3
Wires
6
Open template →
07How a sketch runs

From first line to blinking pin.

Six stages, each visible in the playground — so students see what the hardware is doing, not only that it worked.

  1. 01

    Write

    Editor

  2. 02

    Compile

    arduino-cli

  3. 03

    Flash

    Intel HEX

  4. 04

    Emulate

    ATmega328P

  5. 05

    Render

    Canvas

  6. 06

    Debug

    Serial

FIG. 6 · Sketch pipeline · Rev A

08Worked example

Simulate the circuit before anyone wires it.

Every template carries the sketch, the wiring and the circuit. Here is what the LED Blink template does, line by line — the same code a student would upload to a physical UNO.

Change a delay, press Run, and the LED on the canvas follows.

EXWorked example · led-blink

Board
Arduino UNO R3
Wiring
D13 → 220 Ω → LED → GND
Setup
pinMode(13, OUTPUT)
Serial
9600 baud · “Blink started!”
Loop
HIGH 1000 ms · LOW 1000 ms
Clock
16 MHz
Result
LED toggles every second

Walkthrough of the bundled template. Open it to run, edit and re-time the sketch.

Ready when you are

Have a circuit in mind?

No hardware, no installs — a browser is enough.