Hello, just started with arduino and i got problem with my project.
Its simple i want to send data from one to second board. (for example here - when i send anything on Serial on my first device want to set high on pin 5 on second board)
On my first board i got code (just read Serial and write it to second board)
#include <SoftwareSerial.h>
SoftwareSerial ss(2, 3);
void setup()
{
ss.begin(9600);
Serial.begin(9600);
}
void loop()
{
while (Serial.available() > 0) {
ss.write(Serial.read());
}
}
on second board i got
void setup() {
pinMode(5, OUTPUT);
Serial.begin(9600);
}
void loop() {
while (Serial.available() > 0) {
digitalWrite(5, HIGH);
delay(1000);
digitalWrite(5, LOW);
delay(1000);
}
}
but... its not working.
No idea why (btw. when i send anything on serial monitor from 1st board i see that rx led on first and tx on second board are lightning)
ofc i connected rx -> tx, tx -> rx
Please help ;(
Sorry for bad eng.