How to take serial in on 0 & 1 and output on 2 other pins
ok found software serial functions can read/write other pins. trying figure out best way take data 0 & 1 , output (just pass through) software serial pins (10&11).
i saw wire library wasn't sure if passing data between arduinos.
i trying test connection between remote , camera. make wireless @ point want see if remote work if pass data between arduino.
btw tried wireless rs422 (snap link) , did not work trying figure out why. have feeling remote needs see voltage before starts transmitting.
i saw wire library wasn't sure if passing data between arduinos.
i trying test connection between remote , camera. make wireless @ point want see if remote work if pass data between arduino.
btw tried wireless rs422 (snap link) , did not work trying figure out why. have feeling remote needs see voltage before starts transmitting.
have looked @ softwareserial examples ? 1 of them describe. reduced bare minimum is.
code: [select]
#include <softwareserial.h>
softwareserial myserial(10, 11);
void setup()
{
serial.begin(57600);
myserial.begin(4800);
}
void loop()
{
if (serial.available())
myserial.write(serial.read());
}
Arduino Forum > Using Arduino > Programming Questions > How to take serial in on 0 & 1 and output on 2 other pins
arduino
Comments
Post a Comment