Skip to content

Latest commit

 

History

History
157 lines (104 loc) · 8.4 KB

SimulIDE-Circuit-Simulator.md

File metadata and controls

157 lines (104 loc) · 8.4 KB

SimulIDE Circuit Simulator

SimulIDE Logo

Overview

SimulIDE is a real-time electronic circuit simulator. This guide provides a comprehensive installation and setup tutorial for Linux users, specifically tested on Debian Bookworm.

Quick Start Guide: Quick start guide for SimulIDE as an Arduino simulator - Github personal blog

Referenced:

https://www.arduino.cc/en/software

GitHub - arduino/arduino-cli: Arduino command line tool

Installation - Arduino CLI

Getting started - Arduino CLI

Prerequisites

Arduino CLI Installation

Install Arduino CLI using the following command:

curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh

Note: The binary will be located at ~/.local/bin/arduino-cli.

Arduino Core Setup

Update the Arduino core and install the AVR microcontroller toolchain:

arduino-cli core update-index
arduino-cli config init
arduino-cli core install arduino:avr
arduino-cli core list

List installed toolchains:

arduino-cli board list

Shell Completion Setup

Bash Completion

cd ~/
bash
arduino-cli completion bash > arduino-cli.sh
sudo mv arduino-cli.sh /etc/bash_completion.d/
exit

Fish Shell Completion

fish
cd ~/
arduino-cli completion fish > arduino-cli.fish
mkdir -p ~/.config/fish/completions/
mv arduino-cli.fish ~/.config/fish/completions/
exit

Arduino Legacy IDE Installation

SmulIDE supports Arduino Legacy versions (1.8.X). Download version 1.8.19 from: https://downloads.arduino.cc/arduino-1.8.19-linux64.tar.xz

Extract the archive to your preferred directory (e.g., /mnt/hdd2/PortablePrograms/arduino-1.8.19/).

Dependencies Installation

Install required dependencies:

yes | sudo apt install libqt5core5a libqt5gui5 libqt5xml5 libqt5svg5 libqt5widgets5 libqt5concurrent5 libqt5multimedia5 libqt5multimedia5-plugins libqt5serialport5 libqt5script5 libelf1

SimulIDE Installation

  1. Download SimulIDE from: SimulIDE Downloads
  2. Extract to a preferred directory
  3. Make the binary executable:
chmod +x simulide

Project Setup

Loading a Sketch

Load Sketch

  1. Load an existing Arduino sketch (*.ino)
  2. Create/Load a corresponding circuit file (*.sim1)

Load a circuit:

Load a circuit

Compiler Configuration

Compiler Settings

  1. Click the gear icon
  2. Select 'Compiler Settings'
  3. Provide path to Arduino 1.8.xx toolchain (e.g., /mnt/hdd2/PortablePrograms/arduino-1.8.19/)

Compilation

Compile Button

Click the 'Compile' button in the Top Panel.

Compilation success

$HOME/.local/share/simulide/codeeditor/buildIno/build/ will accommodate the compiled binary (*.elf, *.hex, *.eep, *.bin).

Additional Resources

Desktop Entry Creation

Create a desktop entry for easy launching:

touch $HOME/.local/share/applications/SimulIDE.desktop
vim $HOME/.local/share/applications/SimulIDE.desktop

Sample desktop entry:

[Desktop Entry]
Type=Application
Name=SimulIDE
Comment=A simple real-time electronic circuit simulator
Icon=/home/YOURUSERNAME/.local/share/icons/simulide_385.png
Exec=/mnt/hdd2/PortablePrograms/SimulIDE_1.1.0-SR1_Lin64/simulide
Terminal=false
Categories=;

Download the icon and place it in $HOME/.local/share/icons.

Note: Replace paths and username as appropriate.