We have already seen in the article “ARDUINO Simulation PCB and 3D Models Libraries for Proteus”, how to add the ARDUINO simulation, footprints and 3D models libraries to Proteus. Now we are going to see how is simple to use this components models for simulating ARDUINO projects. We can download for example the controlling LED project implemented with a microcontroler:
Fig. 1 Simple project implemented with a microcontroller model
We can replace the microcontroller, capacitors and crystal oscillator with the ARDUINO UNO simulation model:
Download the Library Files zip Folder from our website, open it and paste these two files ARDUINO.LIB and ARDUINO.IDX files in to Library folder. If you are using Proteus 8 then Library folder will be within the data Folder (Proteus 8 Professional Data LIBRARY ) OR ProgramData (C: ProgramData Labcenter Electronics Proteus 8 Professional LIBRARY). In today’s post I am gonna share an Ultrasonic Sensor Library for Proteus. Few days ago I have posted a tutorial on Arduino Library for Proteus which also has the Ultrasonic sensor in it but that’s a quite basic library for Ultrasonic sensor, so here comes the new Ultrasonic Sensor Library for Proteus.
Fig. 2 The same project above implemented with ARDUINO UNO simulation model
Let ‘s note that the PB5 output has a different numeration in the two models, but the .hex file should work for both, and also for the project implemented with ARDUINO Pro Mini model.
Click the right mouse button, over the model, and choose “Edit Properties”:
Fig. 3 Edit Properties
Load the hex file of the blink project in the “Program File” edit field:
Fig. 4 Load the Hex file
finally, let ‘s run the simulation:
Fig. 5 Run th simulation
Regarding the PCB assignment, let ‘s note that the only component that hasn ‘t an assigned footprint is the animated red LED:
Fig. 6 PCB package not specified for the LED component
We have to assign one to it: select the component, right mouse button, and let ‘s choose “Make Device”:
Gokusen 3 subtitle indonesia. Dia sekali lagi menjadi wali kelas dari murid-murid nakal kelas 3-D.
Fig. 7 Make Device window
Click onNext, and the “Add/Edit”:
Fig. 8 Click on “Add/Edit” button
It ‘s shown the “Package Device” window:
Fig. 9 Package Device window
Click on “Add” button and type the keyword “led” on the “Pick Packages” window, and select LED PACKAGE
Fig. 10 Type “led” on Pick Packages window
Double click over the first line, under the letter “A”
Fig. 11 Double click
and click on the anode pin of the PCB:
Fig. 12 Click on Anode pin
Same procedure for the other pin:
Fig. 13 Click on Cathode pin
Now, let ‘s click on the “Assign Packages” button,
Fig. 14 Packagings window shows the PCB assigned
Next button, select PACKAGE from the Component Properties and Definitions options:
Fig. 15 Select PACKAGE
Leave blank the Datasheet Filename edit field:
Fig. 16 leave blank the datasheet field
Choose USERDVC library, for example:
Fig. 17 choose USERDVC library
Confirm the update request in the next message box
Fig. 18 Update message box