Introduction to the openx vario/altimeter

Development & General Chat for the superb openxvario project.

Moderator: rainer

milanmacinga
Posts: 2
Joined: Mon Oct 14, 2013 7:19 pm
Country: -

Re: Introduction to the openx vario/altimeter

Post by milanmacinga » Mon Oct 14, 2013 7:27 pm

Hi everyone,
first sorry for possible OffTopic...but..
I am not very familiar to programming therefore I would ask you if there is a possibility to use openXvario also with non EX Jeti Duplex protocol. I have build the vario according the steps and load the OpenXvariojeti.ino and Jetibox.ino files into the vario modul. I can read the ascend and descend via LED blinking, but after I connect the oXv to Jetibox mini or via RX I am not able to read the data via JETIBox mini. Am I doing anything wrong or is there something that I missed?

Thank you for any advice.


milanmacinga
Posts: 2
Joined: Mon Oct 14, 2013 7:19 pm
Country: -

Re: Introduction to the openx vario/altimeter

Post by milanmacinga » Thu Oct 17, 2013 7:32 pm

Hi,
everything runs fine but there has to be added one 150R resitor on APM between RX and TX.

Anyway, great work. Thank you..

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Introduction to the openx vario/altimeter

Post by ShowMaster » Wed Oct 23, 2013 1:15 am

Getting closer got the FTDI USB adapter and the recommended Arduino boards. I'm waiting for the vario sensor now. Maybe this week?

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Introduction to the openx vario/altimeter

Post by ShowMaster » Wed Oct 30, 2013 9:11 pm

Well I'm almost ready to power and program mine. I messed up and bought the deek robot Arduino mini pro so the pinouts are a little different and I think the boards miss labeled RXD or 0 ? instead RXI. I bought the sparkfun FTDI programmer and it's pinouts don't match the deek robot board either. A lot of head scratching and googling has got me going I hope. At Least I bought the suggested vaio module!
Here's a pix of my deek robot Arduino board pinout. A4 and A5 are in a different location for starters and no RXI label, it's RXD but goes to the correct IC pin.
ImageUploadedByTapatalk1383167436.203167.jpg

davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: Introduction to the openx vario/altimeter

Post by davx » Wed Oct 30, 2013 10:50 pm

Hi,

I don't know your particular board but there is no problem with the labels.
RXD is correctly named and stands for Receive Data, TXD means Transmit Data.

Tchao


User avatar
jhsa
Posts: 19403
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Introduction to the openx vario/altimeter

Post by jhsa » Thu Oct 31, 2013 2:02 am

Does that board have pads to solder a ISP Programmer? It looks like it :)
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Introduction to the openx vario/altimeter

Post by ShowMaster » Thu Oct 31, 2013 2:49 am

My confusion is that the openxvario and real Arduino shows the RXI connection. On my board it's RXD and seems to go to the same pin?
Per the wiki,
I'm pretty sure I've got the correct wires going to the right places. I couldn't find an actual deer_ robot board schematic on line.
Same for the GY board so I used the pictures for my connections. Not for actual holes but to cross reference what they're called.

My Sparkfun FTDI programer is my next issue. It's pinouts doesn't match the pictures so I made up a cable to interface the required FTDI pins to the deer robot Arduino board.

Finally I loaded the Arduino program and selected the mini Arduino 328 board.
I downloaded the FTDI driver on the sparkfun site for XP and ran it. I had no indication it actually loaded?
XP does detect the FTDI at port 13 and I've selected that in the srfuino pgm.
I can't select or see a FTDI programmer option in the Arduino program, other choices but none of them work?
So where I'm at now is the mini board when plugged into the FTDI board that has the led flashing and the 5v (4.87) is there and the correct polarity. XP shows the FTDI as com 13.
Help me fill in the blanks please.

cae
Posts: 45
Joined: Thu May 17, 2012 10:20 am
Country: Australia
Location: Sydney,NSW

Re: Introduction to the openx vario/altimeter

Post by cae » Thu Oct 31, 2013 2:58 am

ShowMaster wrote:My confusion is that the openxvario and real Arduino shows the RXI connection. On my board it's RXD and seems to go to the same pin?
Per the wiki,
.
ShowMaster,

I think that is RX1, not RXI, on a board with multiple UARTS there would be RX1, RX2 etc. With one UART it is shown as RXD (Receive Data).

Colin.

User avatar
Kilrah
Posts: 10800
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Introduction to the openx vario/altimeter

Post by Kilrah » Thu Oct 31, 2013 2:59 am

ShowMaster wrote: I can't select or see a FTDI programmer option in the Arduino program
You don't need to. Just select the COM port, and click Upload.

The programmer choice is only used for burning the bootloader.

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Introduction to the openx vario/altimeter

Post by ShowMaster » Thu Oct 31, 2013 3:33 am

Thanks for the rx1 info. I guess I treat it as RXD since I dine see a RXD pad. I'll check it out again however.
Thanks Kikrah for the programming info. So I don't select any programmer.
I tried uploading the .ino file after selecting several programmers and it gave me an error.

How do I know the FTDI driver installed?
I'll give it all a good going over and try it again but not tonight.
I have 2 more Arduino mini boards as spares. Too bad I didn't get the exact parts, thought I did.
Thanks everyone for the help.

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Introduction to the openx vario/altimeter

Post by ShowMaster » Thu Oct 31, 2013 3:40 am

Ok, I see RXD and RXI (it is a I not a 1) are the same so that's ok on my wiring.
ImageUploadedByTapatalk1383190840.875540.jpg

User avatar
Kilrah
Posts: 10800
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Introduction to the openx vario/altimeter

Post by Kilrah » Thu Oct 31, 2013 4:12 am

ShowMaster wrote: How do I know the FTDI driver installed?
You wouldn't have a com port number if it wasn't.
If power and connections are OK, maybe that board doesn't have a bootloader on?

Sent from my SC-03E using Tapatalk

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Introduction to the openx vario/altimeter

Post by ShowMaster » Thu Oct 31, 2013 5:28 am

The next question is how do I load a boot loader? I'm open to trying it but I'm learning this as I go. Not many locally to ask. Google is going to get a workout!
I do get the flashing led with power applied so I would think it has the Blink pgm loaded?

davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: Introduction to the openx vario/altimeter

Post by davx » Thu Oct 31, 2013 8:16 am

Hi,

The boot loader should be already installed in your board, you just need to use the upload button in the arduino IDE to flash your program.
I suggest you to read a little more about arduino, there's a bunch of informations around the web, begin with http://arduino.cc/.

Tchao

User avatar
jhsa
Posts: 19403
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Introduction to the openx vario/altimeter

Post by jhsa » Thu Oct 31, 2013 8:19 am

Showmaster, exactly what error are you having?
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Introduction to the openx vario/altimeter

Post by ShowMaster » Thu Oct 31, 2013 5:06 pm

Thanks guys.
I'm reading and have uploaded to my UNO in the past.
I agree that my boards probably have the boot loader installed as part of the 328 setup. It does blink the led when power is on.
So my error is that I'm missing a step by step on what I should setup in the Arduino pgm for flashing with a Sparkfun FTDI board to a deer robot board.
I'll try it all again later when I get home.
I'm sure it's my lack of experience that's to blame. I asked at a recent RC club meeting of 60+ members if anyone was programming Arduino and you could hear a pin drop!
Guess I can't count on them for help ha ha.
ImageUploadedByTapatalk1383238941.864979.jpg

User avatar
jhsa
Posts: 19403
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Introduction to the openx vario/altimeter

Post by jhsa » Thu Oct 31, 2013 5:13 pm

jhsa wrote:Showmaster, exactly what error are you having?
AAhheemm??? :mrgreen:
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: Introduction to the openx vario/altimeter

Post by davx » Thu Oct 31, 2013 5:32 pm

Ok,
Below, the connection diagram:
FTDI Basic | Arduino
DTR ---------- DTR
TXO ---------- RXD
RXI ---------- TXD
5V ---------- VCC
CTS ---------- GND (pull low)
GND ---------- GND

Then you select the good board in the Arduino IDE : Tools/Boards/Arduino ProMini and you choose the COM port corresponding to your FTDI.
That's all !!

Good luck ;)

User avatar
jhsa
Posts: 19403
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Introduction to the openx vario/altimeter

Post by jhsa » Thu Oct 31, 2013 5:38 pm

which arduino is that board? Mini? Pro-mini?.....?
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: Introduction to the openx vario/altimeter

Post by davx » Thu Oct 31, 2013 5:49 pm

I think I've found ShowMaster's board :

Image

It's a Pro Mini with an Atmega328 running at 5v,16MHz.
So the diagram I've posted is right.

Tchao
Last edited by davx on Thu Oct 31, 2013 5:52 pm, edited 1 time in total.

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Introduction to the openx vario/altimeter

Post by ShowMaster » Thu Oct 31, 2013 5:52 pm

I can't post the error until tonight.
That's what's holding this up. It's 10am here now.
What will help is the ok that if I see a port in XP device manager it verifies the FTDI driver loaded?
Next I set this port in the Arduino 1.05 pgm config.
I then set the board as a Arduino mini 328 board?
I don't however select a programmer board?
I then load the .ino file posted on the wiki site into the Arduino pgm and basically select upload or what ever it's called?
I have read where I may need to hit the reset button on the mini after the file is processed and just before it uploads?
I haven't done this but the file does go through some processing and then the error message "may say from my memory" that the device can't be found.
If we agree on the config I've posted I'll trace and double check all my wiring tonight after I get a screen shot of the current config.

Sorry for the delay on answers, work got in the way and it's Halloween tonight so it'll be busy until later tonight. I just want to be clear on the config and upload process.

davx
Posts: 210
Joined: Sun Sep 15, 2013 7:01 am
Country: -

Re: Introduction to the openx vario/altimeter

Post by davx » Thu Oct 31, 2013 5:59 pm

-When you plug in your FTDI, look in the device manager what com port has been assigned.
-The board is an Arduino Pro Mini 5v/16MHz with Atmega328.
-You don't need to set a programmer.
- Load the .ino file and hit upload
- You don't need to press the reset button if you connect the FTDI as in the previous diagram.

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Introduction to the openx vario/altimeter

Post by ShowMaster » Thu Oct 31, 2013 6:03 pm

Wow, thanks everyone. While I was typing you answered my questions!
I've probably got the TXD and RXD lines reversed.
Just couldn't find a deer robot board schematic so I did a little ohm meter search using the sparkfun schematic.
Late night ahead!

User avatar
jhsa
Posts: 19403
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Introduction to the openx vario/altimeter

Post by jhsa » Thu Oct 31, 2013 6:10 pm

Don't worry, you will have that victory glass of wine ;) :mrgreen:
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
MikeB
9x Developer
Posts: 17336
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Introduction to the openx vario/altimeter

Post by MikeB » Thu Oct 31, 2013 6:21 pm

TX and RX on serial is a classic! TX on one goes to RX on the other, unless one is a modem (DCE = Data Communication Equipment) when TX is already really RX and RX is already really TX (confusing what!).

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Introduction to the openx vario/altimeter

Post by ShowMaster » Thu Oct 31, 2013 11:15 pm

I swapped TXD and RXD and tried it again.
No good, got this message.
I tried every programmer choice as well just for grins and also just the upload options. Tried a reset on the Arduino clone several times as well.
I have a solid red led and a inking green one.
Got to run again but I'm not giving up.
To many interruptions today to fully focus.
I an also try another mini clone I have and with help I understand I can use my UNO board of I remove the IC?
ImageUploadedByTapatalk1383261349.364105.jpg

User avatar
jhsa
Posts: 19403
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Introduction to the openx vario/altimeter

Post by jhsa » Fri Nov 01, 2013 12:26 am

That error tells that there might be no connection with the chip. check the right com port for the FTDI..
I also wonder if that board has a bootloader, or which bootloader.. :o

Recently my stripduino (cos I built it on a stripboard ;) ) had the same error..
Burnt the bootloader again and all was fine. Not saying that is the case..
Also you can try to use a normal programmer like the UsbAsp to program the arduino..

in tools select the usbasp programmer and com port. find the right pads on the board and connect the programmer to them. MISO. MOSI, SCK; etc
then to upload the code using the programmer hit the shift key on your keyboard and click "upload"

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
ShowMaster
Posts: 4327
Joined: Thu Dec 29, 2011 3:44 am
Country: -
Location: Los Angeles, CA USA

Re: Introduction to the openx vario/altimeter

Post by ShowMaster » Fri Nov 01, 2013 1:21 am

Thanks Jsha, I can try the USBasp programmer. I have many.

NeilRogers
Posts: 87
Joined: Sat Jun 22, 2013 2:12 pm
Country: United Kingdom
Location: Wiltshire

Re: Introduction to the openx vario/altimeter

Post by NeilRogers » Fri Nov 01, 2013 8:34 am

Are you trying to run Ardiuno program under Windows 7 or 8 ?

I found my board loaded once then failed to handshake on the serial ever again.

I replaced the usb drivers with different versions but still failed.

I found running the ardiuno program in XP sp3 mode sorted the problem and I can download at will using arduino v1.5.4

I've just got in a couple of deer_robot boards in from China yesterday I planning to setup to investigate SPORT interface,
I'll let know when they working

NeilRogers
Posts: 87
Joined: Sat Jun 22, 2013 2:12 pm
Country: United Kingdom
Location: Wiltshire

Re: Introduction to the openx vario/altimeter

Post by NeilRogers » Fri Nov 01, 2013 9:37 am

Showmaster

I've just checked out both new deer_robot boards both download programs ok using the above configuration


Post Reply

Return to “OpenXVario - an open source vario supported by the open source firmwares!!”