Pages: [1]   Go Down
Author Topic: help with a 232 circuit.  (Read 198 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 155
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've got a Radio for a RC multicopter that can output rs232 information from the muticopter.  I connected it to my arduino through a TTL converter and this:  http://stefan.gofferje.net/arduino/arduino-frsky library, low and behold I was getting information from my copter.   I'm also using a Xbee to get some info too.  So I decided to create a shield. 

Attached are pictures of the schematic, layout, and the actual shield.  Currently the shield isn't getting the information to the arduino correctly.  I've missed important details in some previous projects.  The first question that I have is did I orient the caps the right way on the actual shield?  If that isn't the issue then the next question is when I run this code inside my sketch:

Code:
  if (Serial2.available()) {
    char c = Serial2.read();
    //Serial.println("Stuff from TX");
    //if (frsky.update(c)) { // frsky_update() returns 1 if a complete packet was successfully 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); // The internal sensor has a 4:1 divider, so the value is 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 is 0-3,3V in 255 steps or 0,013V per step
    //}
  }

As soon as I fire up the Rx this is what repeats with the above code. 

Code:
TX RSSI: 0
Telemetry RSSI: 0
RX Voltage: 0.00
A2 Voltage: 0.00

When I include the if statement I dont get anything to the serial monitor.

Any input as to why the information being sent to my transmitter isn't being communicated correctly would be greatly appreciated!

Loren




* Screen Shot 2014-02-20 at 9.08.14 PM.png (63.47 KB, 1197x697 - viewed 16 times.)

* Screen Shot 2014-02-20 at 8.49.34 PM.png (45.5 KB, 1261x702 - viewed 15 times.)

* IMG_20140220_210954.jpg (780.21 KB, 2592x1944 - viewed 15 times.)
Logged

Norfolk UK
Offline Offline
Faraday Member
**
Karma: 70
Posts: 2567
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry to say Loren it does not look to be wired up correctly (assuming your using a MAX3232E) another capacitor should be connected pin 6(V-) and GND (note the polarity needed)
I have not checked the layout

Logged


0
Offline Offline
Full Member
***
Karma: 0
Posts: 155
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think I used the sparkfun site as a guide.  This is what I based my circuit off of:



Are you saying that I need to add another cap between pin 6 (+) and gnd (-)?

Thanks,

Loren
Logged

Norfolk UK
Offline Offline
Faraday Member
**
Karma: 70
Posts: 2567
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

All the reference designs in the datasheet show 4x capacitors (see below). Not sure about the sparkfun design for V+ & V-. After checking the layout I also don't see VCC connected to pin 16.


* Clipboard-1.jpg (37.59 KB, 688x360 - viewed 12 times.)
Logged


Pages: [1]   Go Up
Jump to: