View Full Version : Arduino Card Newbie + 737 Home Cockpit

04-21-2013, 11:28 AM
I'm building a 737NG home cockpit and the only cards I could buy are the Arduinos. (I'm from Argentina and we're having some imports problems)
I didn't know about Arduino Card until i've found Jim's Site (BTW, a great site!). So I proceeded to buy an Arduino Mega 2560 (Because of the amount of switches). When I received it, all worked OK, but the problem is here: If I want to control LEDs, Switches and Rotary Encoder do I have to do my own PDEs? Because I don't know ANYTHING about programming and I thought that FSX will tell Jim's Program which LED will be turned on/off.
If I have to do that, it is very difficult?

Thanks in Advance,

04-21-2013, 01:07 PM
Hello GaboBaa.

I've been using arduino only for a few months so I'm certainly no pro.
I have found what I need at Jim's pages.
There are various examples to code for the arduino card, available to be downloaded from his web pages.
I have combined different sketch, or. Ino files, pde's to get the result I want.
Download and study.
It was a little confusing at first, but what you need is there!
As an example: Rotary encoders and sketch are her (http://www.jimspage.co.nz/encoders2.htm) on A MOTION FLIGHT SIMULATOR, ON THE CHEAP.. JIMSPAGE.CO.NZ Arduino Keys link2fs multi program (http://www.jimspage.co.nz/intro.htm).
And you can download encoder sketch from that page. In the Rotary encoder help.zip there ar examples for encoders.
Its easy to copy and add more encoders.
What I found out in the beginning, was that I was so busy with achieving the goal, that I did not take time to read and study all he has written on hes pages :D

Often we wish for others to do all the job, and the truth is, that they've almost done that!
The little that's left for us to do, is what it takes to be left with the illusion that we have done it ourself! :D

There are also plenty of examples of coding if you are Googling!

If you get stuck, the guys are good at helping when they have time! Just ask.
Best of luck :D

04-22-2013, 03:05 AM
Welcome Gabriel!

Much like yourself, In 2010 I researched FSX input alternatives and accidentally found Jim's Web page. Again, much like yourself, I knew nothing of C programming - yet, I took the dive anyway. As BuzziBi stated, Jim's page is a great resource. In addition, during my learning process, I leaned on LadyAda (also known as Limor - an MIT engineering grad - who created Adafruit! - google it.) for basic "noobie" arduino code and arduino possibilities.

Here is a starter link to her site: Arduino Tutorial - Lesson 5 (http://www.ladyada.net/learn/arduino/lesson5.html)

Between Jim's site and Limor's, you should be up to arduino speed in no time!

Happy Coding!
As always, this forum has many who point you in the direction you want go.

04-22-2013, 05:45 PM
Thanks a lot for the advices!! I've read Jim's page the whole afternoon and finally I could connect some switches to the Arduino. It felt so good!
I'll start reading and viewing those videos that you sent.
Thanks a lot and I will start uploading photos of my sim!


04-23-2013, 02:09 AM
I've found a grate site yesterday: Arduino Tutorials | JeremyBlum.com | Page 2 (http://www.jeremyblum.com/category/arduino-tutorials/page/2/)
So I have started all over again :D
I have studied this earlier: Course Syllabus | Open Source Hardware Junkies (http://opensourcehardwarejunkies.com/course-syllabus/)
You may have to register, I do not remember, but it's free!
You can find some great learning videos on both sites.