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.
Asked
— Edited
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
Code:
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.
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.
And one thing I thought of is, what if we need to use rc receiver outputs rather than multiwii commands?
Wires to the left go to the receiver. If this is correct it means all we need to do is figure out the pwm signal.
If this board is what I think it is, which is something that is constantly stabilising flight and has the ability for an external controller to tell it where to move (up, down, left, right, forward, reverse, etc) then what you need to do is get all of the datasheets available for it together and study the connections. The datasheet should have all of the correct wiring instructions etc. which will indicate how to connect it to the EZ-B and what controls to use.
That image doesn't really tell us much.
http://www.multiwii.com/wiki/index.php?title=Flightmodes
If there's something suspicious ill post.
"Why not just have the ez-b output a cppm to the MultiWii controller or 4-5 servo pulse (1000-2000us) outputs.
If you are looking for modified MultiWii code to accept serial ASCII than go the the MultiWii forum and ask there. The people who write and modify the MultiWii code do hang on that forum."
Should I go to the multiwii forums and look for modified code?
www.rcgroups.com/forums/showthread.php?t=2114942&highlight=multiwii#post27657277
"...4-5 servo pulse (1000-2000us) outputs."
Quote from another modules description:
"By varying this pulse time in the range of 1000-2000us the position of the servo can be changed"
Do a little bit of reading up on the PWM of the EZ-B, PWM in general and the board you are trying to control by PWM. To be honest I haven't really looked at the board you are trying to use, I looked at the serial commands but that's about it (to be honest I haven't had time to read up on it or even what it does). So I have no idea what varying the PWM would do.
If you understand PWM and you understand the controller you are trying to control via PWM it should all click in to place and you'll get that Eureka moment we all get from time to time.
If you are still struggling with it after reading up on it all I'll have a proper look at the board you are talking about but try to work it out for yourself, you can do it
The board connects to 8 digital pins on the ez-b. Each wire runs a channel. Sending pulses of varying times acts as a command or level of the multiwii. The average rc receiver sends commands between 1000-2000us (which I think is actually 1-2ms) in length.