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

Compatibility with Arduino Pro Micro #1

Open
midlandsdesign opened this issue Jul 18, 2016 · 4 comments
Open

Compatibility with Arduino Pro Micro #1

midlandsdesign opened this issue Jul 18, 2016 · 4 comments

Comments

@midlandsdesign
Copy link

midlandsdesign commented Jul 18, 2016

Hi.

Firstly I would like to thanks you for making your great work available to everyone.

In using this code on an Arduino Pro Micro (Leonardo) and I am not getting any response from the iBus output on the iA6B receiver to show in MissionPlanner, having checked, and double checked, and triple checked the connections.

Upon further investigation, I spotted this in the documentation for this board:

Separation of USB and serial communication.
https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc6

Would be correct in saying that in the sketch one should be setting up Serial1 and not Serial?

In addition to the above, the only LED that is assigned to a pin on the Leonardo is the RX LED, and it is assigned to pin 17, so in the sketch the outputs assigned to pin 13 should be assigned to pin 17?

Does this sound correct?

Many thanks

Julian

@povlhp
Copy link
Owner

povlhp commented Jul 18, 2016

Sounds right. Give it a try

Sendt fra min iPhone

Den 18. jul. 2016 kl. 13.57 skrev midlandsdesign notifications@github.com:

https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc6

This

@midlandsdesign
Copy link
Author

Thanks. I've given it a bash with no joy. Back to the drawing board. Maybe the receiver is faulty but I'll need to find a way of testing it.

@povlhp
Copy link
Owner

povlhp commented Jul 19, 2016

If you have a ftdi cable try to connect gnd and connect iBus data to Rx. Open putty or another terminal emulator to see if you get binary data in at 115200 bps.

Do you have leds? What is their status?

Sendt fra min iPhone

Den 18. jul. 2016 kl. 19.49 skrev midlandsdesign notifications@github.com:

Thanks. I've given it a bash with no joy. Back to the drawing board. Maybe the receiver is faulty but I'll need to find a way of testing it.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@midlandsdesign
Copy link
Author

midlandsdesign commented Jul 20, 2016

I have got it working now, thanks a mil.

On the Arduino Pro Micro (Leonardo), the Serial.xx is used for the built in USB serial connection, and Serial1.xx is used for pin 0 and pin 1 serial connection. In addition to this, on this board, the LED is on pin 17 and not 13 as on the other boards.

You therefore need to change all the Serial.xx lines of code in the sketch to Serial1.xx and the LED pin to 17 from 13 if you are using the Arduino Pro Micro or any other Leonardo based board.

Attached is the modified sketch that I am using with the hacked FS i6 Tx, the FS i6B Rx, and APM 2.6, and a cheap clone Arduino Pro Micro board from eBay.

iBus2PPM_leonardo.zip

Thanks again for all your help.

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