Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

I tried using arduino simulation on Proteus but not working.

$
0
0
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.

Code (C):
  1. int switchPin = 8;
  2. int ledPin = 9;
  3. int ctr = 0;
  4.  
  5. void setup() {
  6.   // put your setup code here, to run once:
  7.   pinMode(switchPin,INPUT);
  8.   pinMode(ledPin,OUTPUT);
  9. }
  10.  
  11. void loop() {
  12.   // put your main code here, to run repeatedly:
  13.  
  14.   if(digitalRead(switchPin)==LOW)...
I tried using arduino simulation on Proteus but not working.

Viewing all articles
Browse latest Browse all 4922

Trending Articles