element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum IDAC conversion to VDAC (enabling two IDACs)
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 5 replies
  • Subscribers 25 subscribers
  • Views 2894 views
  • Users 0 members are here
  • signal
  • psoc4
  • op-amp
  • opamp
  • idac
  • dac
  • vdac
Related

IDAC conversion to VDAC (enabling two IDACs)

juanes.pazj
juanes.pazj over 12 years ago

to convert a current source to a voltage source I used a voltage follower OPAMP that would not consume current so if that current was redirected through a Resistance then this Resistance would generate the requiered voltage for my signal

image

When routing the OPAMPS make sure to pick the right pins (this ones are dedicated) you can find them on the Pioneer Kit Guide (apendixes.- Pin layout)

The commands requiered on the firmware are this ones:

->Initialization

 

IDACP_Start();

IDACP_SetValue(motP);//67

OpampP_Start();

 

///IDAC YAW   

IDACY_Start();

IDACY_SetValue(motY);//118

OpampY_Start();

 

Command (Change value)

IDACY_SetValue(motY);//118

IDACP_SetValue(motP);//67

 

this project will be part of a twin rotor control system once It's finished I'll try to post some info about it. for those who havent heard of it it is some how a helicopter fixed on a hinge and the goal of the project is to create a control system that can work with multiple input sensors and finally stabilize the helicopter automatically.In order

Attachments:
image
  • Sign in to reply
  • Cancel

Top Replies

  • cy.gul
    cy.gul over 12 years ago +1
    Hi Juan, Very interesting project you have in the making. Would love to see how you progress with this! For the IDACs - There are 2 CapSense IDACs on the PSoC 4, but only one of them is 8-bit. The 2nd…
  • cy.gul
    cy.gul over 12 years ago in reply to juanes.pazj +1
    You can either 'program' the PSoC 5LP using an external programmer, the MiniProg3 Or you could simply 'bootload' firmware into it over USB, no extra hardware required! See our example posted here Project#36…
  • juanes.pazj
    juanes.pazj over 11 years ago in reply to cy.gul +1
    finally got it to work! thanks for your feedbak Gagan! I updated the post
  • cy.gul
    cy.gul over 12 years ago

    Hi Juan,

     

    Very interesting project you have in the making. Would love to see how you progress with this!

     

    For the IDACs -

    There are 2 CapSense IDACs on the PSoC 4, but only one of them is 8-bit. The 2nd IDAC is a 7-bit resolution. Using the Component Configuration Tool you can select the resolution setting, and then use both IDACs in a single design. See my screenshot below.

    image

     

    P.S: An alternate solution could be using PSoC 5LP - it  has the two IDACs, but also 8-bit VDACs that you can use to generate voltages (remember you have a PSoC 5LP on this Pioneer kit as well!)

     

     

    For the Quad_Decoder -

    We have two of these included with PSoC Creator. "Quadrature Decoder [v2.30]" which is UDB hardware-based, and the "Quadrature Decoder (TCPWM mode)" which is using the 4xTCPWM hardware blocks (no UDBs used, but you'll lose one of your Timers). Refer to the datasheets of these to see how they're slightly different from each other.

     

    Good luck with your design and hope to see more from you!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • juanes.pazj
    juanes.pazj over 12 years ago in reply to cy.gul

    Thanks for your reply Gagan!

    I'll try to update it as often as I can...

     

    as for the PSoC 5LP I would need a programmer right?

    JE

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

    I can't seem to find the right pin for the IDAC I know one of them is the P3[0] how can i tell which one will work there??

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

    You can either 'program' the PSoC 5LP using an external programmer, the MiniProg3

     

    Or you could simply 'bootload' firmware into it over USB, no extra hardware required! See our example posted here Project#36

     

    For the IDACs, you can use any pins! P3[0] and any other pin on Port 3 should work just fine to the two IDACs. Let me know if that works out ok.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • juanes.pazj
    juanes.pazj over 11 years ago in reply to cy.gul

    finally got it to work! thanks for your feedbak Gagan! I updated the post

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • 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