Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 2 1 2 LastLast
Results 1 to 25 of 36

Thread: Teensy 3.0 as flight controller

  1. #1

    Cool Teensy 3.0 as flight controller

    Hi guys, i just wanted to share and show what i am doing with my teensy.
    I wrote a flight controller from scratch, which is now fully "hooked" into teensy internal hw timers, i also wrote a rather simple complementary based kinematics that i am using for stabilization.

    Video demonstration showing my kinematics in action (real time)


    I also have an rather older video of my quad flying using teensy 3.0 as brain (i improved the stabilization since then quite significantly)
    http://www.youtube.com/watch?v=wKqWw4nmVKk

    My full source code can be found on github https://github.com/cTn-dev/Phoenix-FlightController
    And also if there is anyone working on similar project and could use some help, just leave a message in this thread. I will be more then happy to help you.
    Last edited by cTn; 01-13-2013 at 10:12 AM.

  2. #2
    Member
    Join Date
    Jan 2013
    Location
    Salem, MA
    Posts
    46
    Very impressive!

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    7
    I get a 404 from github??

  4. #4
    Quote Originally Posted by doctek View Post
    I get a 404 from github??
    sorry, i fixed the url

  5. #5
    Junior Member
    Join Date
    Jan 2013
    Posts
    3
    Well this seems exciting. I was just thinking of figuring out how to implement a flight controller with the teensy 3, having just received one. Have you any plans/interest in adding support for a tricopter platform? I'm building one, and have just purchased a sensor board with: 3-axis gyroscope, 3-axis accelerometer, 3-axis magnetometer and atmospheric pressure.

  6. #6
    Quote Originally Posted by roens View Post
    Well this seems exciting. I was just thinking of figuring out how to implement a flight controller with the teensy 3, having just received one. Have you any plans/interest in adding support for a tricopter platform? I'm building one, and have just purchased a sensor board with: 3-axis gyroscope, 3-axis accelerometer, 3-axis magnetometer and atmospheric pressure.
    Sure, this shouldn't be a problem, would this be a tricopter with or without the yaw servo on the back ?

  7. #7
    Junior Member
    Join Date
    Jan 2013
    Posts
    3
    Quote Originally Posted by cTn View Post
    Sure, this shouldn't be a problem, would this be a tricopter with or without the yaw servo on the back ?
    Yes, it'll have a servo in the rear, controlling louvers to adjust the vector of airflow exiting that rotor. The design is much like this (have continued to make tweaks since this version):
    http://www.flickr.com/photos/roens/8367667795/

    I began, last week, on fabricating parts. Hopefully this weekend I'll get at least the fiberglass ducts & electronics box (at the center of the body) made.. and perhaps the aluminum motor mounts.

  8. #8
    pretty cool, there is no support for tricopter (at the moment) but it can be added pretty easily

  9. #9
    Junior Member
    Join Date
    Jan 2013
    Posts
    3
    Yeah, I've already got an atmega 2560-based controller. (the "MultiWii Pro" board from HobbyKing) And will use that for now. But like the idea of separating the sensors from the MCU, for flexibility of firmware & both software and physical setup. Plus, it's cheaper to change the MCU if its not part of the sensor array.

  10. #10
    Junior Member
    Join Date
    Feb 2013
    Posts
    12
    Any progress lately ?

  11. #11
    Quote Originally Posted by Ectar View Post
    Any progress lately ?
    Well of course, one of the many highlights since my last post:

    I got a crossplatform configurator utility
    Flight software now supports accelerometer "Trimming" via transmitter
    Fully dynamic channel assigning and fully dynamic aux functions assigning
    Support for 16 channel receivers
    Support for both PWM and PPM receivers
    And many more...

  12. #12
    Junior Member
    Join Date
    Feb 2013
    Posts
    12
    That sounds good and promising, thank you for update.

  13. #13
    Junior Member
    Join Date
    Feb 2013
    Posts
    12
    You have only one PPM input, what transmitter/receiver are you using for controlling craft ?
    I have Turnigy 9x and FrSky V8FR transmitter module don't think I can set it up that way......

  14. #14
    Junior Member
    Join Date
    Feb 2013
    Posts
    12
    Quote Originally Posted by cTn View Post
    Well of course, one of the many highlights since my last post:
    Support for both PWM and PPM receivers
    And many more...
    What pins can I use for PWM setup?

    And the main question about ESC, how they handle 3V logic levels, and how did you power your Receiver? 3.3V or 5V ?
    If 5V, is Teensy Pin3 5V tolerable ?

    Thank you

  15. #15
    Junior Member
    Join Date
    Sep 2013
    Posts
    1
    This is great! I have been looking at building a quad or a 6 blade R/C copter for aerial video. But, instead of using blades I was thinking of using electric ducted fan engines instead with a 100% carbon fiber body. I am a total novice in the design and electronics, but very experienced in PC/server and network systems design.
    Could I use this to stabilize and control my project?

  16. #16
    Junior Member
    Join Date
    Oct 2013
    Location
    India
    Posts
    1
    Its a remarkable software for flights. The aviation industry make high use of such software. I have read articles where many countries make use of this kind of software.

  17. #17
    Junior Member
    Join Date
    Feb 2013
    Posts
    12
    Hey cTn, any news on project? I got some of your shields printed, but I have trouble figuring out bills of materials, can you send me one ?

  18. #18
    Junior Member
    Join Date
    Jan 2014
    Posts
    7
    Hi cTn,
    this project is great.
    I've downloaded the software, ordered an got a teensy3.1. The code is compiled and downloaded.
    But I did not manage to connect the configurator. The port-field is empty and no device can be selected.
    I've tried this with chrom, chromium and firefox - no difference.
    I use Ubuntu and linux mint.
    lsusb shows "Bus 004 Device 005: ID 16c0:0483 VOTI Teensyduino Serial"
    /dev/ttyACM0 exists.
    I'm member of the dialout group.
    Do you have any idea whats going wrong?

    Edit: Chrome Version is 32. Using Windows vista brings the same results.
    Edit2: The error in the js console is: "Uncaught TypeError: Cannot call method 'getBackgroundPage' of undefined "


    Thank you
    Last edited by markus1234; 01-31-2014 at 02:04 PM.

  19. #19
    Junior Member
    Join Date
    Jan 2014
    Posts
    7
    Well I've had to learn something about chrome Apps - now it is working well
    Last edited by markus1234; 02-01-2014 at 01:25 PM.

  20. #20
    Junior Member
    Join Date
    Jan 2014
    Posts
    7
    The mini flies. PID's not changed. Graupner SUMD protocoll added
    Click image for larger version. 

Name:	kopter.jpg 
Views:	1093 
Size:	107.5 KB 
ID:	1394
    Last edited by markus1234; 02-07-2014 at 04:42 PM.

  21. #21
    Junior Member
    Join Date
    Dec 2012
    Posts
    17
    Quote Originally Posted by markus1234 View Post
    The mini flies. PID's not changed. Graupner SUMD protocoll added
    Click image for larger version. 

Name:	kopter.jpg 
Views:	1093 
Size:	107.5 KB 
ID:	1394
    Good looking quad, is it possible to get a parts list? basic cost?

  22. #22
    Junior Member
    Join Date
    Jan 2014
    Posts
    7
    The parts are:
    - Teensy3.1 flight controller
    - Graupner Mx-12 with GR12SH+ (I've forked cTn's software for my experiments)
    - ESC XP 3A 1S 0.7g
    - HobbyKing AP-03 7000kv Brushless Micro Motor
    - Frame: 1,5mm CFK (wood may also work)
    - Sensor: GY-86
    - LiPo: 1S, 750mAh
    Please ask google for the price of the parts.
    Wheigt is <70g (I've test 20g additional load). Size, motor to motor, is 10cm. Nice to fly inside the house, especialy when it is cold outside

  23. #23
    Junior Member
    Join Date
    Sep 2014
    Location
    New Mexico USA
    Posts
    17
    I'm working on a similar project using Teensy 3.1, MPU9150, and MPL115A2, but cannot connect to the Baseflight configurator. Can you give some info on how to do this?

  24. #24
    Junior Member
    Join Date
    Dec 2012
    Posts
    17
    Quote Originally Posted by JohnDH View Post
    I'm working on a similar project using Teensy 3.1, MPU9150, and MPL115A2, but cannot connect to the Baseflight configurator. Can you give some info on how to do this?
    I ported baseflight firmware and had to a mod to baseflight-conifguration tool due to GPS not being installed. Which code base are you using
    Last edited by tcmichals; 10-22-2014 at 11:15 PM.

  25. #25
    Junior Member
    Join Date
    Sep 2014
    Location
    New Mexico USA
    Posts
    17
    I am currently working with MPU9250BasicAHRS.ino, but have not achieved a good compile for Teensy 3.1, and teensyduino

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •