Asked
— Edited
As I mentioned on another thread, I have been on the hunt for a quadcopter flight controller. I narrowed it down to the MultiWii PRO Ez 3.0. witespyquad.gostorego.com/flight-controllers/multiwii-pro-ez3-0-flight-controller-w-gps-option.html
Here's my problem. It uses i2c. I don't know how to use i2c, and I don't know the different commands for the multiwii.
I found this page with serial protocol, but I don't know if this is what I need or not. www.multiwii.com/wiki/index.php?title=Multiwii_Serial_Protocol
Any help is appreciated. No I do not have the board yet but I am trying to see if this board will work.
All I want to do is get basic commands like forward, backward, left, right, up and down.
@Technopro ...Rich has a lot more experience using I2C then most here on the forum and hopefully he can redirect you to some of the Forum topics regarding I2C and its proto calls. I believe there are only the two commands , I2CRead which is used more as a variable then a command which I found out recently
and the I2CWrite which ....seems to have issues with certain Versions and browning out the board and as yet unresolved ...Please check out this thread until the "Add link" is repaired you will have to cut n paste
https://synthiam.com/Community/Questions/5207 I would also be interested in you experience with the I2CWrite command as well. There are a few examples to try!
Thanks .
I have no intentions on testing as I don't have the board. I would be happy to test as long as my board isn't damaged in any way by it.
Of Course! All the other commands and functions still work its just I2CWrite which has issues with some new versions(with three boards now that I know of) . The board loses connection and the blue light goes out but will be able to reconnect again! Have a read at the thread5207....
Yep. Well I guess its a matter of getting rich to respond seeing as he knows EZ-Script like the back of his hand.
You need to find out the correct syntax of the data that is sent to the board first. However, there are no examples of the syntax on the pages you linked to.
The I2CWrite command basically sends whatever you tell it to send to the desired address. So, if the board is addressed as 0x30 you need to provide that information.
So the command is I2CWrite(Board Number, Address, Data)
for instance
Note: The syntax of the data may not be correct, as mentioned there are no examples.
Find examples of the data syntax, find the list of commands, send commands one by one to the board with the I2CWrite command.
So what you wrote is wrong? And I need to find another sheet that shows a list of number commands? What should I look for?
anything here that could help? http://www.multiwii.com/forum/viewtopic.php?f=8&t=1516
I don't know if it's wrong or not, I used commands from the list you posted however there are no examples of the correct syntax and I don't have the board to try with so I can't be 100% sure it's correct. As I said late last year I'm trying not to spoon feed as much and trying to get people to figure out as much as they can through guidance in the general area/direction. The above posted explanation along with the correct syntax for the data should be enough to guide you in the right direction and program something.
It's also for the Serial Protocol too, generally I2C and Serial data is the same or very similar but it's always worth finding out.