samedi 28 novembre 2015

Basic knowledge

Our first lesson is very simple and you can find it any where even in the example of Arduino so we start by turning on and off a LED using Arduino software and Proteus.

PS: If you don't have Arduino package for Proteus(ISIS) you can download it from the link at the end of from download section.


Let start
Just open Arduino ==> fichier ==> example ==> basics ==> blink
and read carefully the comment of each function .




Now after uploading this sketch or this code the Led will turn on for 1 second than turn off for one second n times.

We move now to proteus simulation..this software is very important because it contain every single electronic component and even if it doesn't exist you can easily download the missing package and add it to porteus, the method to add is very easy also you just download the package then copy the files exist there and paste it here : C:\Program Files (x86)\Labcenter Electronics\Proteus 7 Professional\MODELS
You can also use eagle for the simulation this software is very good.

After adding Arduino package you can open porteus 
Select component mode then choose pick up from library and then choose the devices you need.For us we need arduino uno, resistor and Led. This figure resume all just follow the red rectangle :

Then try to assemble this components like this:


Then get back to the example that we make and copy the link that end with extension .hex  (the orange rectangle  in figure 1 ). then double click on arduino board in porteus and then paste this link in program file.


Finally you just run the simulation and you'll get this result :



PS: if the Led doesn't turn on just try to change resistor property and make it for example 10 Ohm.
you can also add a button to control the Led :


and this is how it look like after the simulation :


Thank for reading this article.


Aucun commentaire:

Enregistrer un commentaire