cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

Hello Every Body,

   

I am trying to implement LOCK-IN Amplification in PSOC 5LP. Can any body help me in doing this or if can provide me a demo program, that would be great.

   

Looking forward for your reply.

0 Likes
Reply
10 Replies
Honored Contributor II

makhan,

   

attached lock-in amplifier project for PSoC5LP. It based on older version of DDS24 generator. Rotary encoder is used to rotate phase of  the reference clock for lock-in. Also attached a Multichart program to observe lock-in output on PC.

   

odissey1

0 Likes
Reply
Anonymous
Not applicable

Hi,

   

Thankyou so much for your reply.

   

I opened this program but it shows me lots of errors. Can you guide me what is the problem?

   

I am using PSOC creater 3.0.

   

I attached a Errors pdf file .

   

Looking forward for your reply.

   

Best Regards

   

Awais

0 Likes
Reply
Anonymous
Not applicable

odissey1,

   

Can you give me any document that can explain your design in more detail?

   

Also I am unable to open this project in creator 3.2

   

makhan

0 Likes
Reply
Honored Contributor II

I will repost it in 3.2

0 Likes
Reply
Esteemed Contributor II

We are here at Creator 3.2 and on the horizon are the first lights of version 3.3

   

Consider upgrading to 3.2 which is co-existent to former versions.

   

Also there may be errors flagged that vanish when compiled.

   

 

   

Bob

0 Likes
Reply
Esteemed Contributor

Also update may be necessary of dependencies for DDS component -

   

 

   

http://www.cypress.com/training/psoc-creator-tutorial-component-creation-adding-library-dependency

   

 

   

Regards, Dana.

0 Likes
Reply
Honored Contributor II
        Makhan, Project was likely written in Creator 3.1. If on startup it asks for component update please do so. Otherwise you need to upgrade Creator odissey1   
0 Likes
Reply
Honored Contributor II

makhan,

   

here is reworked and updated lock-demo project, recompiled in Creator 3.2. Comments inside. You likely don't need most features like tunable excitation frequency, lock-in phase adjustment, rotary encoder, etc -they were made for resonant bridge. Delete them as you wish to make your life easyer. Included Multichart software helping to visualize data stream on pc side. Debugging info was sent to smart phone by bluetooth, any terminal-like App will read it.

   

odissey1  

0 Likes
Reply
Anonymous
Not applicable

odissey1 ,

   

One more thing!

   

How i will do the phase controlling of my input signals (for lock in). Does it doing automatically inside the DDS? Or do i need to do controlling explicitly before sending the signal into ADC?

0 Likes
Reply
Honored Contributor II

makhan,

   

There is API calls to set DD frequency and phase, like

   

DDS_SefFrequency(10000); //10kHz

   

DDS_SetPhase(32);// 90deg (0-255 corresponds to 0-2PI)

   

 

   

 

   

In given project, a rotary encoder with a switch button was utilized to fine-tune both frequency and phase for a resonant bridge. You likely do not need any of those features, as you bridge is non-resonant, as I recollect. So you can delete all code related to the encoder part. If phase = 0 works fine for you, then you can drop DDS altogether.

   

odissey1

0 Likes
Reply