Lab1 in Proteus
Lab1 in Proteus
• https://www.youtube.com/watch?v=5IQXegAfNJE
• Download the arduino library:
• https://www.youtube.com/watch?v=euNNKJnfjuo
• Simple project:
• https://www.youtube.com/watch?v=4421WKxxhGk
• An “unfound library error” might occur:
• https://www.youtube.com/watch?v=07KNv8Zn6x0
• The arduino-proteus tutorial:
• https://www.youtube.com/watch?v=-8bJT973yv0
void setup() {
pinMode (4,INPUT_PULLUP);
pinMode (7, OUTPUT);
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead(4) == LOW)
{
digitalWrite (7, HIGH);
}
else{
digitalWrite(7,LOW);
}
}
Your Task for this week
• Interface a DC motor with arduino, turn it on
and off and control its speed.
• Read an IR sensor and react.