I tried using arduino simulation on Proteus but not working.

Thread Starter

deepakdpadhi

Joined Sep 29, 2018
19
Please view the attached files to see if problem is in the code or the circuit. It's supposed to be a normal switch type circuit, just passing through arduino.
The arduino files and circuit diagram on proteus are attached.

C:
int switchPin = 8;
int ledPin = 9;
int ctr = 0;

void setup() {
  // put your setup code here, to run once:
  pinMode(switchPin,INPUT);
  pinMode(ledPin,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:

  if(digitalRead(switchPin)==LOW)
    digitalWrite(ledPin,LOW);
   else
    digitalWrite(ledPin,HIGH);
}
Moderators note : used code tags

Picture1.png
 
Last edited by a moderator:

Wuerstchenhund

Joined Aug 31, 2017
189
I don't know which topic to post this thread under. Please guide me for the same.
How about 'Digital Circuit Design'? Or 'Embedded Systems and Microcontrollers'? Or how about 'Programmer's Corner'?

Of if that's too obvious, how about 'General Electronics' (the space for everything that doesn't seem to fit somewhere else)?

All of them are literally a lot more relevant to your question than just dumping it in 'Test instruments', which has absolutely *nothing* to do with the question at hand.

Anyways, it appears the thread has already been moved. It just would be nice if people would use their brain a bit before posting. Seriously, reading and understanding the categories is not rocket science.
 
Last edited:
Top