Porting syma x5c-1 protocol to arduino

  • ahuttere@gmail.com
  • ahuttere@gmail.com's Avatar Topic Author
  • Offline
More
20 Mar 2015 07:05 - 20 Mar 2015 09:43 #29919 by ahuttere@gmail.com
Porting syma x5c-1 protocol to arduino was created by ahuttere@gmail.com
Hi, i try to porting the syma x5c-1 to arduino , i want to control the quad from my pc. Some one know how to do that ? :(
Or have code that do this may be with another protocol.
I use and arduino one and nrF24L01+.
Thanks
Ariel.

File Attachment:

File Name: syma_try1-3.txt
File Size:24 KB
Attachments:
Last edit: 20 Mar 2015 09:43 by ahuttere@gmail.com.

Please Log in or Create an account to join the conversation.

More
20 Mar 2015 15:09 #29942 by midelic
Replied by midelic on topic Porting syma x5c-1 protocol to arduino
I modified the code for arduino it but not tested fully,,only binding.

Please Log in or Create an account to join the conversation.

More
20 Mar 2015 16:08 #29949 by hexfet
Replied by hexfet on topic Porting syma x5c-1 protocol to arduino
Looks like you're on the right track.

I did it slightly differently in this project , changing the functions in NRF24L01.c to use the different hardware. It's not Arduino but may give you some ideas.

Please Log in or Create an account to join the conversation.

  • ahuttere@gmail.com
  • ahuttere@gmail.com's Avatar Topic Author
  • Offline
More
21 Mar 2015 04:43 #29983 by ahuttere@gmail.com
Replied by ahuttere@gmail.com on topic Porting syma x5c-1 protocol to arduino
thanks

Please Log in or Create an account to join the conversation.

  • ahuttere@gmail.com
  • ahuttere@gmail.com's Avatar Topic Author
  • Offline
More
21 Mar 2015 04:44 #29984 by ahuttere@gmail.com
Replied by ahuttere@gmail.com on topic Porting syma x5c-1 protocol to arduino
could you share your code with me?

Please Log in or Create an account to join the conversation.

More
21 Mar 2015 23:39 #30021 by hexfet
Replied by hexfet on topic Porting syma x5c-1 protocol to arduino
The code is under the link posted above. Direct link to source files .

Please Log in or Create an account to join the conversation.

  • ahuttere@gmail.com
  • ahuttere@gmail.com's Avatar Topic Author
  • Offline
More
24 Mar 2015 09:00 #30169 by ahuttere@gmail.com
Replied by ahuttere@gmail.com on topic Porting syma x5c-1 protocol to arduino
Hi:
Any address is a "legal address" to the rx_tx_address for X5C-1????
Thanks

Please Log in or Create an account to join the conversation.

  • ahuttere@gmail.com
  • ahuttere@gmail.com's Avatar Topic Author
  • Offline
More
24 Mar 2015 09:43 #30171 by ahuttere@gmail.com
Replied by ahuttere@gmail.com on topic Porting syma x5c-1 protocol to arduino
Hi,
When i do binding the quads leds stop blinking until the symax_init2() function is called.
In this function the Channels address are calculated.
After this the leds blink slowlly again.
What's my problem? Some Sugestions?
Thanks
:(

Please Log in or Create an account to join the conversation.

More
25 Mar 2015 00:13 #30215 by hexfet
Replied by hexfet on topic Porting syma x5c-1 protocol to arduino
I never tried any value other than a2 for the first byte since all the captures were the same there. The other bytes didn't seem to matter.

The LEDs stopping indicates the quad's receiving your transmission. Maybe the new channel sequence is not being set or the new tx address in the radio before going to data phase?

Please Log in or Create an account to join the conversation.

  • ahuttere@gmail.com
  • ahuttere@gmail.com's Avatar Topic Author
  • Offline
More
25 Mar 2015 02:12 #30218 by ahuttere@gmail.com
Replied by ahuttere@gmail.com on topic Porting syma x5c-1 protocol to arduino
How to calculate the channels from address?
Or you 'sniffs' RF?

Please Log in or Create an account to join the conversation.

More
25 Mar 2015 12:39 #30236 by hexfet
Replied by hexfet on topic Porting syma x5c-1 protocol to arduino
The set_channels function determines the channels to use based on the last byte of the tx address for the x5c-1. The x5c uses a fixed set of channels.

The global chans holds the rf channels currently in use for both bind and data phases.

Please Log in or Create an account to join the conversation.

More
25 Mar 2015 14:34 - 25 Mar 2015 14:35 #30243 by midelic
Replied by midelic on topic Porting syma x5c-1 protocol to arduino
He has X5C-1,So this code covers also X5C-1 version?
Last edit: 25 Mar 2015 14:35 by midelic.

Please Log in or Create an account to join the conversation.

More
25 Mar 2015 16:19 #30246 by hexfet
Replied by hexfet on topic Porting syma x5c-1 protocol to arduino
Yes, the base protocol supports x5c-1. A protocol option is implemented to support x5c. The x5c variant uses a fixed channel sequence that does not depend on the tx address.

Please Log in or Create an account to join the conversation.

More
25 Mar 2015 17:32 #30248 by midelic
Replied by midelic on topic Porting syma x5c-1 protocol to arduino
So if you select X5C from menu si not working with X5C-1,,..For that is the normal menu on SYMAx.,,right?

Please Log in or Create an account to join the conversation.

More
25 Mar 2015 20:36 #30259 by hexfet
Replied by hexfet on topic Porting syma x5c-1 protocol to arduino
Correct. If you turn the X5C protocol option on, it will not work with an X5C-1 quad.

Please Log in or Create an account to join the conversation.

  • ahuttere@gmail.com
  • ahuttere@gmail.com's Avatar Topic Author
  • Offline
More
26 Mar 2015 08:19 #30286 by ahuttere@gmail.com
Replied by ahuttere@gmail.com on topic Porting syma x5c-1 protocol to arduino
OK, finally works !!!!
My computer send commands to the Quad Througth the arduino.
Include video and pictures
Thanks Guys.
:)

Please Log in or Create an account to join the conversation.

More
07 Apr 2015 14:59 #30876 by smonkeys
Replied by smonkeys on topic Porting syma x5c-1 protocol to arduino
Oh, I was looking for the x12 control by arduino.
Could you share the code, if you don't mind?

Please Log in or Create an account to join the conversation.

More
09 Apr 2015 09:39 #30925 by tjkim93
Replied by tjkim93 on topic Porting syma x5c-1 protocol to arduino
I also ported the deviation protocols to Arduino and can control drones with smartphone.
I opened the codes and schematics.
Click blog.naver.com/pinggusoft/220325466118 for more details.
You can find the application (BTCon4Drone) at play.google.com/store/apps/details?id=com.pinggusoft.btcon
Hope they will help.

Please Log in or Create an account to join the conversation.

More
15 Jun 2016 00:22 #50638 by Mukherji
Replied by Mukherji on topic Porting syma x5c-1 protocol to arduino
hi I was wondering what you did step by step to make this project work

Please Log in or Create an account to join the conversation.

More
27 Aug 2016 20:03 #53155 by stevesheff
Replied by stevesheff on topic Porting syma x5c-1 protocol to arduino
Hi,
Bit of help from those that have got this working pls.

I am fairly new to Arduino's and my coding is rusty but good enough to follow the flow of the program. I am a little stumped as to checking if the Arduino is actually communicating and what values I can enter to command it. I am new to the specific RC control methods as well so bit unsure of whether it is connected (don't think so) and then what values I need to enter to get it to respond, say throttle up.

I have uploaded the code and got it compiled in the Arduino ide. I think I have an X5C-1 rather than the normal X5C, XYMA in Red on top and X5C there as well.

The code in the Serial Monitor goes through 'symax_init' and 'symax_init1' then stops at 'symax_init2' after iterating through the 'SYMAX_BIND3' (is this where it is trying to check for an open channel and connect?)a lot of times. and if I enter a value in the Serial Monitor (not sure what values to enter - help here pls) I get the ;Received; and the parsed values.

The X5C itself only goes from very fast blinking initially to slow blinking (which makes me think it hasn't connected)

Some clues please to working out the connection and then if I can get that, how or more precisely what values I could send to get it to respond.

Any help welcome.

rgs Steve

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum