help with a 232 circuit.


i've got radio rc multicopter can output rs232 information muticopter.  connected arduino through ttl converter , this:  http://stefan.gofferje.net/arduino/arduino-frsky library, low , behold getting information copter.   i'm using xbee info too.  decided create shield. 

attached pictures of schematic, layout, , actual shield.  shield isn't getting information arduino correctly.  i've missed important details in previous projects.  first question have did orient caps right way on actual shield?  if isn't issue next question when run code inside sketch:

code: [select]
  if (serial2.available()) {
    char c = serial2.read();
    //serial.println("stuff tx");
    //if (frsky.update(c)) { // frsky_update() returns 1 if complete packet decoded, otherwise 0
    serial.print("tx rssi: ");
    serial.println(frsky.getlink_up());
    serial.print("telemetry rssi: ");
    serial.println(frsky.getlink_dn());
    serial.print("rx voltage: ");
    serial.println(frsky.getrx_a1()*0.0517647058824); // internal sensor has 4:1 divider, value 0-13,2v in 255 steps or 0,052v per step
    serial.print("a2 voltage: ");
    serial.println(frsky.getrx_a2()*0.0129411764706); // a2 without divider 0-3,3v in 255 steps or 0,013v per step
    //}
  }


as fire rx repeats above code. 

code: [select]
tx rssi: 0
telemetry rssi: 0
rx voltage: 0.00
a2 voltage: 0.00


when include if statement dont serial monitor.

any input why information being sent transmitter isn't being communicated correctly appreciated!

loren


sorry loren not wired correctly (assuming using max3232e) capacitor should connected pin 6(v-) , gnd (note polarity needed)
i have not checked layout



Arduino Forum > Using Arduino > Project Guidance > help with a 232 circuit.


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support