Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code not running on Intel Galileo Gen 2 #2

Open
napsternxg opened this issue Apr 7, 2015 · 1 comment
Open

Code not running on Intel Galileo Gen 2 #2

napsternxg opened this issue Apr 7, 2015 · 1 comment

Comments

@napsternxg
Copy link

Hi @andihit I have used your library for a project of mine [ https://github.com/napsternxg/coptermanager-arduino/wiki for controlling the hubsan x4 using an arduino. My main aim is to extend some functionality using an Intel Galileo Gen 2 board which has an Arduino Uno pin config along with a linux architecture.

I have edited some part of your code as the default was not running directly on my arduino. But when I try to run it on my Galileo I am not able to get it working. I have listed the problem in the wiki page mentioned above.

It would be great if you can help me out with the issue.

Also can you explain briefly how your code works using the SPI pins and the protocol so that I can directly use it from the linux side of Galileo. The linux side supports node.js with access to the same pin. I am having problems in understanding how you are setting the pins.

A link to my blog post about my project is at https://smexyyweby.wordpress.com/2015/04/06/flying-hubsan-x4-using-arduino/

@andreasgerstmayr
Copy link
Owner

hi @napsternxg,

Sorry for the very late reply.

But when I try to run it on my Galileo I am not able to get it working.

Unfortunately I don't have a good electronic background (my focus is on software, not hardware), so I can't help you with porting to the Galileo board.

Also can you explain briefly how your code works using the SPI pins and the protocol so that I can directly use it from the linux side of Galileo.

The SPI port is used for the communication with the A7105 chip. You can find the datasheet and some examples here: http://www.electrodragon.com/w/index.php?title=A7105

The timing is crucial for the hubsan protocol, so I don't think node.js is a good idea for this kind of problem. If a single signal gets a fraction of millisecond delayed, it won't work. There are lots of background processes on a linux machine which will affect the timings. On the arduino, to the contrary, only this C program (called the Arduino sketch) is running on the microprocessor and no other processes are influencing the program.

Good luck with the porting,
Andreas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants