Arduino Uno is the most popular board in the Arduino family. It is powered by the ATmega328p chip, which has 32K bytes of Flash program memory, 2k bytes of SRAM and 1K bytes of EEPROM.
Pins 0 to 13 are digital GPIO pins. Pins A0 to A5 double as analog input pins, in addition to being digital GPIO pins.
There are three ground pins: GND.1, which is on top of the board, next to pin 13, and GND.2/GND.3, which are on the bottom.
Pins VIN / 5V are connected to the positive power supply.
Pins 3.3V / IOREF / AREF / RESET are not available in the simulation.
Digital pins 3, 5, 6, 9, 10, and 11 have hardware PWM support.
Some of the digital pins also have additional functions:
|10||SPI||SS (Chip select)|
The board includes four LEDs:
|L||Connected to digital pin 13|
|RX||Serial RX Activity|
|TX||Serial TX Activity|
|ON||Power LED. Always on while the simulation is running|
In general, only the "L" LED can be controlled by the user's code. You can use the
LED_BUILTIN constant to reference it from your code:
See Blink for a complete code example.
The Arduino Uno is simulated using the AVR8js Library. The table below summarizes the status of features:
|GPIO||✔️||Including External/Pin Change Interrupts|
|8-bit timers||✔️||Timer0, Timer2|
|SPI||🟡||Master mode only|
|I2C||🟡||Master mode only|
|ADC||✔️||Used by analogRead()|
|GDB Debugging||✔️||See the GDB Debugging Guide|
🟡 Simulated, but see notes
❌ Not implemented
You can use the Serial Monitor to receive information from your Arduino code, such as debug print. You can also use it to send information to your code, such as textual commands.
For more information and code samples, check out the Serial Monitor guide. It also explains how to configure the Serial monitor, e.g. set the line ending characters.
The simulator supports many popular Arduino libraries. For a complete list, see the Libraries guides.