I am new to this forum but not to arduino and I am encountering a strange problem. Here is my code:
#define RECEIVER 3 //receiver to pin #
#define LEDPin 13
void setup() {
pinMode(RELAIS, OUTPUT);
digitalWrite(RELAIS, LOW);
pinMode(LEDPin, OUTPUT);
digitalWrite(LEDPin, LOW);
}
void loop() {
digitalWrite(RELAIS, HIGH); digitalWrite(LEDPin, LOW);
delay(1000);
digitalWrite(RELAIS, LOW); digitalWrite(LEDPin, HIGH);
delay(1000);
}
and I am uploading this code to an arduino pro mini 5V, 16MHz (using an arduino nano as ISP). Uploading is smooth:
Der Sketch verwendet 1372 Bytes (4%) des Programmspeicherplatzes. Das Maximum sind 30720 Bytes.
Globale Variablen verwenden 40 Bytes (1%) des dynamischen Speichers, 2008 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
When I run the code I do see the internal LED blinking and I am measuring 2.2V at pin 13. But at pin 2 (down to 12) I am measuring 0V the entire time. I do not understand this behavoir. Is there anybody who can point me to a solution? Thanks in advance, andies