Altera_Forum
Honored Contributor
12 years agoQuadcopter using Cyclone II. How to implement gyro inputs and ESC outputs?
Hey guys, I'm planning on using de2 board as the brains of a quadcopter for my final project in digital systems design. The only experience I have with FPGAs and verilog are from this semester but I do think this should be a possible task for me. The toughest project we had so far was to make a 4 bit adder/subtractor and display the result in 7 segment displays. However, before starting, I just want to know if its possible to connect a gyro to the de2's expansion headers and also be able to get output to 4 ESCs (speed controllers that regulate the speed at which the motors spin).
I know this is possible because I have seen couple videos on youtube of fpga being used instead of a traditional microcontroller. I do have quite a bit of experience in the world of rc planes/quadcopters and I already have a quadcopter that flies already. The size and weight of the de2 board isn't an issue but I would need to know which breakout gyro board to purchase. Short version of what I need to program in verilog: 1. Depending on the gyro inputs, send different PWM signals to all ESCs. 2. Depending on the inputs from the receiver, override the output (to a certain extent) in the above statement. 3. Develop an algorithm for all this. My questions: 1. The ESCs need PWM signal output. How to make this happen? 2. Do the expansion headers accept digital or analog signals? 3. The receiver (which I control by from a radio), can send PWM our PPM out. Which signal would the headers rather accept? PWM would mean 4 different wires, PPM would mean all the data going in 1 wire. ppm and pwm are explained here. (http://www.endurance-rc.com/ppmtut.php) 4. What gyro (and maybe accelerometer) board should I get? Looking to spend less than $10. 5. Is all this possible to do without too much experience? If you got this far and can help me, that would be great.