Once the schematic is completed, we have to set the fuses and clock frequency as shown
Our schematic is ready for Arduinoing. Now we need to upload code for the Arduino in Proteus. To do that we will firstly need to change our folder options in a way that hidden files are no longer hidden. In Windows OS, we have to go to Control Panel and then click Folder Options icon. When the Folder Options window opens, we need to click the View tab and select “Show hidden files, folder and drives”. We must now apply the changes and exit the Folder Options window. We are now just one step behind completing our goal. At this point, we have to open the Arduino IDE and save our sketch at our desired location with our desired name. This is however not mandatory. In our example, we have used the ready-made Blink example provided with the Arduino IDE.
It’s necessary that no Arduino board is connected to the PC where we will do the simulation or if it is connected we have change port settings in the IDE so that the code is not uploaded to the board. Next we hit the verify and upload buttons of the IDE. At this point we will be getting an error. This is okay and we are looking for this error. When this error happens, we will get the folder location of the hex file that was about to be uploaded.
We have to navigate to this place and find the .hex file. We can copy it to any preferable location and load it in our previously made Proteus schematic of Arduino. If we don’t copy it and save elsewhere it may get lost
Once it is loaded and the simulation is run we can see it is working fine.
I hope it will be useful for all Arduino lovers and thereby bring a new era in Arduinoing.