element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Smarter Life
  • Challenges & Projects
  • Design Challenges
  • Smarter Life
  • More
  • Cancel
Smarter Life
Blog PSoC 4 Tricopter (Smarter Life Challenge) part #3
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: yuritikhonov
  • Date Created: 10 Nov 2013 8:11 PM Date Created
  • Views 946 views
  • Likes 1 like
  • Comments 4 comments
  • RoadTest
  • tricopter
  • psoc4
  • Multiwii
  • smarter_life_challenge
  • smarter_life
  • smart_tricopter
  • smart_control_and_diagnostics
  • arduino
  • quadcopter
Related
Recommended

PSoC 4 Tricopter (Smarter Life Challenge) part #3

yuritikhonov
yuritikhonov
10 Nov 2013

If you like my project vote for "A Smarter Tricopter - Yuri Tikhonov" image

 

Good day comrades!

Today I want to talk about my first and second applications for the PSoC 4. But we'll start with my new testing station.

image

 

On my small, but cosy workplace you can find:

 

  1. 23" PC monitor
  2. Multimeter (UNI-T UT61C)
  3. Drilling tool (Makita 8391)
  4. Soldering iron (NoName)
  5. Multitool (Gerber Suspension)
  6. Universal testing station
  7. Piece of russian nature outside the window image

 

Let's learn more about by testing station:

image

 

I used this station for demonstration of my graduation project a few years ago, now I just modified it to work with PSoC and Arduino.

 

It consists of:

  • A. Current shunt
  • B. Power switch
  • C. 2S LiPo (aka autonomous power supply)
  • D. Breaboard
  • E. Arduino Duemilanove (with ATmega328p)
  • F. Part of my old MSP430 RF project
  • G. MSP430 LaunchPad (with MSP430G2553)
  • H. CY8CKIT-042 PSoC 4 Pioneer Kit
  • I. LCD with I2C interface

 

My first application was traditionally HelloWorld. You can see it on the previous photo. I just connected PSoC 4 to LCD via I2C and sent a phrase "PSoC 4 is ready!".

image

 

However after some time of work this LCD went to another world... I found out the problem but this week I have not enough time to repair it image

 

Meanwhile at the moment I start developping a new application.

Tricopter's firmware consists of some parts:

  1. UpTime system
  2. System of communication with the receiver
  3. UART module for configuration and telemetry
  4. Virtual EEPROM for work with configuration parameters
  5. IMU module (gyro, acc and mag).
  6. Communication module for BLDC ESC's and servo
  7. PID controller and so on

 

This week I start from p.1 and p.2 but I try to communicate the PSoC with PC via UART:

 

image

 

In this screenshot you can see the 'PSoC schematicos' of this application:

image

  • Yellow: In my application I need two arduino funcitons: delay(ms) and micros(). So I create this 'yelow block' to calculate uptime (operation time). It looks simple but in PSoC 4 I found an interesting situation: we can only communicate clock-block output to clock input of any other blocks! For example I can't connect clock-block derectly to pin. But I found a solution! I read this article and add a TFF block to my application.
  • Blue: As you know I like MultiWii 2.0 so I just rewrote RX.ino file for a PSoC.

 

As a result I managed to read all the necessary signals with Rx/Tx system and transfer them via the UART on the computer:

image

 

On forthcoming week I plan to realize all necessary UART functions and probably to communicate PSoC with standard MultiWii PC application. See you next week!

                                                                                                                                              

#linkdescription
1PSoC 4 Tricopter Part #1Introduction
2PSoC 4 Tricopter Part #2Purchase of components from Farnell and HobbyKing
3PSoC 4 Tricopter Part #3PSoC firmware: upTime & Rx
4PSoC 4 Tricopter Part #4PSoC firmware: UART & MultiWii GUI
5PSoC 4 Tricopter Part #5PSoC firmware: EEPROM emulation
6PSoC 4 Tricopter Part #6PSoC firmware: Servo & ESC control
7PSoC 4 Tricopter Part #7PSoC firmware: IMU, LED's & PID
8PSoC 4 Tricopter Part #8Hardware: PCB
9PSoC 4 Tricopter Part #9Hardware: tricopter's frame
10PSoC 4 Tricopter Part #10Hardware: YAW mechanics & motors
11PSoC 4 Tricopter Part #11Hardware: ESC's, wires & misc
12PSoC 4 Tricopter Part #12Final: The first fly

 

If you like my project vote for "A Smarter Tricopter - Yuri Tikhonov" image

  • Sign in to reply

Top Comments

  • DAB
    DAB over 12 years ago +1
    Hi Yuri, Good update. I know what you mean about the PSOC app notes, they are full of useful tips and techniques. DAB
  • yuritikhonov
    yuritikhonov over 12 years ago in reply to cy.gul

    Thanks! Of course I know different ways of connection, LCD and PSoC. But I2C is a most beautiful solution in my opinion!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • cy.gul
    cy.gul over 12 years ago

    another great update.

     

    Have you considered replacing I2C LCD with directly driving a Segment LCD off the PSoC 4? There is a Component included for that, but you might need some simple blue-wiring to get all the pins assigned to LCDs.

    The tradeoff is that you will lost some GPIO in doing so, but might save some cost.

     

    looking forward to more updates! good luck.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • yuritikhonov
    yuritikhonov over 12 years ago in reply to DAB

    Thanks DAB! Yes, appnotes - is our all!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 12 years ago

    Hi Yuri,

     

    Good update.

    I know what you mean about the PSOC app notes, they are full of useful tips and techniques.

     

    DAB


    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube