2个arduinos之间的红外通信
我有2个arduinos,我想用红外LED从第一个arduino(串行监视器的输入)发送到第二个arduino 我用的是这样的东西:2个arduinos之间的红外通信,arduino,infrared,Arduino,Infrared,我有2个arduinos,我想用红外LED从第一个arduino(串行监视器的输入)发送到第二个arduino 我用的是这样的东西: void setup() { Serial.begin(9600); Serial.println("Enter a word or a phrase:"); } void loop() { if (Serial.available() > 0) { serialinput = Serial.read(); }
void setup()
{
Serial.begin(9600);
Serial.println("Enter a word or a phrase:");
}
void loop()
{
if (Serial.available() > 0)
{
serialinput = Serial.read();
}
/*then i want here to use an irsend to put the serialinput and send it,
via ir to the other arduino
and see it in the serial monitor of the receiver. */
// something like this: irsend.sendSony(serialinput, 20)
}
那么,你能告诉我这是否可行,我应该使用哪个irsend,因为我不知道它们之间的区别吗?(例如,有sendSony、sendNEC、send RC5和许多其他产品)。
或者如果我能从某处了解到他们的不同,因为我找不到他们