Note: All the videos are recorded on a Mac but the software works the same way as on a Windows device.
Note: Some videos are recorded in the older version because we updated the software through this course. the only thing that has changed in the simulation process is that we no longer have to change instructions and included everything in the Arduino libraries list.
For your first project we will simulate a blinking LED. The very first time you open the simulator you will have to install the libraries in the Arduino Simulator. The codes in the sketches remaining the same as the normal sketches but there are just a few things that will be added to the setup in order to communicate though the serial port.
The RealIO_Connect(); method is a method in the SimulatorProgram library that gives the possibility to use the real IO of the board when you select a real IO pin in the simulator software. For example: You use a button on the simulator but you also want to control the simulation with a real button. The only thing you have to do is click on the Arduino pin in the simulator and connect a real button to that pin.
Install all the libraries so you don’t have to worry about other libraries when you are further down in this course.
Select the Serial option in the dropdown Arduino box to open a clear sketch with all the necessary codes init. This is an already prepared Arduino (ino) sketch that you can immediately start with.
Select the used inputs and outputs on the simulator. In this case we use LED D13. Connect the Arduino with the COM port in the simulator and watch the simulation. The serial port on a Mac is different than on a Windows device. A Windows device will name it COM and a Mac will have something like dev/tty.usb…