For this project we made a binary counter with 6 leds and 2 buttons, one for counting up and one for counting down. The steps are shown in the video above.
Select the used inputs and outputs on the simulator. In this case we use LEDs on digital pins 2, 3, 4, 6 and 7. There are 2 buttons connected on digital pin 13 and 12. Connect the Arduino with the COM port in the simulator and start simulating.
Adjust the codes with a capital letter so that they can be used by the library. digitalWrite becomes DigitalWrite. Then upload your code and start the simulation.
The sketch is available in a zip file on this page.
The instructions that communicate with the simulator are based on similar Arduino codes. Only the first letter needs to be replaced by a capital letter, remove the dot in the instruction with a dot ‘.’ and your ready to simulate.
The simulator library codes are as follows:
digitalWrite becomes DigitalWrite
lcd.print becomes lcdprint
Instructions Arduino IDE Instructions Arduino IO Simulator
tone(x,y ,z); Tone(x,y ,z);