- Sun Jul 01, 2012 1:10 pm
#146854
Hi All,
I have been having this issue for the past few days. I talking my first dive in to electronic's since a few kits as a teenager. Hopefully I am missing some small here.
I have a TP-Link mr3040 (3.3v) with a serial connection to the arduino uno. Common ground, the 3.3v on the LV side RX to TX to the HV on the arduino side.
My problem is I can only recieve data (on pin's 1 & 2) , I simply can not send any data on the pin's no matter what baud rate I use! The sketch works 100% only if I attached the /dev/ttyUSBx device directly as aposed to using the 3.3v serial pins with the level converter.
I have been having this issue for the past few days. I talking my first dive in to electronic's since a few kits as a teenager. Hopefully I am missing some small here.
I have a TP-Link mr3040 (3.3v) with a serial connection to the arduino uno. Common ground, the 3.3v on the LV side RX to TX to the HV on the arduino side.
My problem is I can only recieve data (on pin's 1 & 2) , I simply can not send any data on the pin's no matter what baud rate I use! The sketch works 100% only if I attached the /dev/ttyUSBx device directly as aposed to using the 3.3v serial pins with the level converter.
Code: Select all
What could I be missing here?void setup()
{
// start serial port at 9600 bps:
Serial.begin(9600);
Serial.print(1);
pinMode(ledPin, OUTPUT);
}
void loop()
{
// if we get a valid byte, read analog ins:
if (Serial.available() > 0) {
// get incoming byte:
inByte = Serial.read();
digitalWrite(ledPin, HIGH);
delay(10);
Serial.print("Got: ");
Serial.println(inByte);
digitalWrite(ledPin, LOW);
}
}