Baby-o and RS232 Frsky

I am familiar with using the Baby-O with the LCD. From Frsky I aquired a telemetry receiver that sends back the contents of the receiver voltage and drive battery voltage in a RS232 format.

I want to capture these values and show them in the LCD.

I never used this before and do not know where to start, any suggestions are welcome.
FrSky Instruction Manual for Two Way System (4).pdf (22.8 KB)

Hello.

The PDF you attached to your post seems incomplete. One thing you should make sure you are aware of is that RS232 voltage levels are specified to vary from -25 to +25V, which is well beyond what the AVR IO pins can handle. The level shifter on page 1 of the PDF seems to be addressing this.

- Ryan

The receiver sends back two analog inputs and any other rs232 input from the model to the transmitter, On the back of the transmitter module there is a connector with the rs232 output, positive and ground. The battery pack in the transmitter is 9,6 Volts.

Thanks for the tip, I will check the voltage output from the transmitter. I found PD0 and PD1 to be the Rx and Tx.

Still no clue where to start, any links are welcome.

[quote=“erik46”]The receiver sends back two analog inputs and any other rs232 input from the model to the transmitter, On the back of the transmitter module there is a connector with the rs232 output, positive and ground. The battery pack in the transmitter is 9,6 Volts.

Thanks for the tip, I will check the voltage output from the transmitter. I found PD0 and PD1 to be the Rx and Tx.

Still no clue where to start, any links are welcome.[/quote]

I’m looking into something like this, and found some references that I’m finding helpful, maybe they’ll do you some good.

Atmel has an application note on using the UART in C at http://www.atmel.com/dyn/resources/prod_documents/doc1451.pdf

It’s pretty slim, but comes with some example code http://www.atmel.com/dyn/resources/prod_documents/avr306.zip

Also, look at the section on the Universal Serial Interface in the data sheet for the 328p

Joe

To go along with the list of links goober supplied, I’d like to mention that the Pololu AVR C/C++ Library supports serial communication with the UART on the Baby Orangutan. If you just use our library you won’t need to worry about the low-level details of how the UART works. For more information, see these pages:

https://www.pololu.com/docs/0J20/6.j
https://www.pololu.com/docs/0J18/10

–David Grayson

I found a forum post that explains me how to extract the right values at

http://www.avrfreaks.net/index.php?name … c&p=745766

I looked into the pololu library, the example is about setting up the connection and receiving the data. This part should work as long as the baudrate matches the Frsky. When the number goes into the buffer it should be possible to extract it from the buffer and show it on the display.

Anyone having done that?

Finished,

I had to figure out a lot of technical challenges, it works and can be adapted to your use.

I implemented an interrupt driven uart and 7 segment display. The whole story is in the pdf.

Have fun, first flight scheduled next sunday, it will be sunny but cold.
My Frsky dashboard.pdf (511 KB)

I’m glad you got it working. That is a cool writeup and some nice looking pictures. Would it be alright if we include your project in our Community Projects page?

-Ryan

That is ok with me.

I try to make such a wrap-up on all my projects, it helps when a project is re-opened after a long period. And it saves me a lot of time when my teammates want to copy my setup.

Telemetry is hot in the RC world, most projects I found are quite advanced. Hopefully this simple dashboard will encourage other people to take up the challenge.

Hello.

We posted a little description and link to this forum post about your project on our Community Projects page.

- Ryan