Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Voltage Measurement Program by using the PSoC 5

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Voltage Measurement Program by using the PSoC 5
Moderator:
ANCY

Post Reply
Follow this topic



Voltage Measurement Program by using the PSoC 5

DM7 posted on 08 Apr 2013 6:20 PM PST
Member
5 Forum Posts

Hi,

I want to program Voltage Measurement Program using the PSoC 5.

The design is,

generate Voltage -> read the value each 10ms(using Timer or Sleep Timer and Interrupt) -> convert the value(using ADC) and sum it -> send the sum value to other device(using SPI)

Do you have any example to help this concept?
(and How to program  Timer, Sleep Timer, Interrupt, ADC, SPI using PSoC 5)

Please comment with any example/ideas/solutions.

Thanks.

  




Re: Voltage Measurement Program by using the PSoC 5

H L posted on 08 Apr 2013 07:08 PM PST
Top Contributor
679 Forum Posts

Have you use other micro before?

Are you familiar with program in C or other high/low level language?



Re: Voltage Measurement Program by using the PSoC 5

DM7 posted on 08 Apr 2013 07:35 PM PST
Member
5 Forum Posts

Yes. I have been use other micro. and I familiar with program in C.

Do you have some examples/ideas/solutions? please comment about it.

Thanks.



Re: Voltage Measurement Program by using the PSoC 5

H L posted on 08 Apr 2013 09:23 PM PST
Top Contributor
679 Forum Posts

If you have the evkit from Cypress, there are examples then you can open, read and modifiy to test.

And you can also search for application notes here as well.

You'll love PSoC. :-)



Re: Voltage Measurement Program by using the PSoC 5

H L posted on 08 Apr 2013 09:29 PM PST
Top Contributor
679 Forum Posts

After you start psoc creator, go to open and select example projects and pick what you want to use to learn,



Re: Voltage Measurement Program by using the PSoC 5

DM7 posted on 08 Apr 2013 09:58 PM PST
Member
5 Forum Posts

H L,

Thanks for your kind reply.

I saw the example projects. and it would be helpful for me.

BTW, I need to have more detail examples for my concept.

Could you advise about it?

Thanks.



Re: Voltage Measurement Program by using the PSoC 5

H L posted on 09 Apr 2013 10:45 PM PST
Top Contributor
679 Forum Posts

I think all the compoents - Timer, Interrupt, ADC, SPI are list in the example projects already. May be you can study it then build the project one piece at a time and post your problem here while building your project.



Re: Voltage Measurement Program by using the PSoC 5

PSoC73 posted on 09 Apr 2013 10:55 PM PST
Top Contributor
176 Forum Posts
I have two questions, you want to get generated voltage, do you want the actual analog voltage output of it? If not, you doesn't need DAC and ADC, you should be generate number for that voltage and send it via SPI. "sum" what? You want to integrate that generate voltage or some else? you can just calcurate it. Anyway you can find many type of examples, DAC, ADC, Timer and SPI..Usually, combine them and make a design, by whom ordinary PSoCers.

Re: Voltage Measurement Program by using the PSoC 5

DM7 posted on 09 Apr 2013 03:27 AM PST
Member
5 Forum Posts

L H,

Thanks for your reply.

And PSoC73,

Thanks for your reply.

And I want to send digital voltage output to other device(using SPI). so, I need to use ADC.

"sum" means sum the ADC result at every 10ms. and then, send it  other device(using SPI) when other device occur a interrupt.

I could find many type of examples and combine them. but, I need to have more detail and complex examples.

If you have any information, please let me know.

Thanks.



Re: Voltage Measurement Program by using the PSoC 5

hli posted on 09 Apr 2013 04:01 AM PST
Top Contributor
675 Forum Posts

@DM7: so you want to have a complete and finished solution from the forum members?

There is everything there you need. There is an example periodically reading the ADC (and showing the value on the LCD), which makes a good starting point. Adding the sum function to that should not be so problematic. There is also a great documentation for the SPI component available, and it will be really easy to add it to your project. You just need to format the summed up value according to how you want/need it to send to the other device.



Re: Voltage Measurement Program by using the PSoC 5

PSoC73 posted on 09 Apr 2013 04:07 AM PST
Top Contributor
176 Forum Posts
Hi DM7, More detailed and complex examples. It does not called as "example", It is a particular design. I wouldn't like to help you to make that new design. However, If you can start something work and show your details here, [ like images or bundle project etc.] Someone might be help you. Thank you.

Re: Voltage Measurement Program by using the PSoC 5

H L posted on 09 Apr 2013 07:16 AM PST
Top Contributor
679 Forum Posts

As other suggested, start a project and post your issue here, 

People here are willing to help.



Re: Voltage Measurement Program by using the PSoC 5

zeta posted on 09 Apr 2013 11:19 AM PST
Top Contributor
174 Forum Posts

 People here is willing to help but they won't do your homework for you.

You should at least show that you are actually working on your design.



Re: Voltage Measurement Program by using the PSoC 5

DM7 posted on 09 Apr 2013 07:38 PM PST
Member
5 Forum Posts

Hi All,

Thanks for your comments and helps.

And I didn't want to have a  complete and finished solution and do my homework(and this is not my homework) from the forum members.

I already programed most of them.

I programed on PSoC for the first time. so, I need to refer and check through the detail and complex examples.

And I know you might be help me when I show a project. but, I can't show the project because it's not mine.

When I have a problem in the project, I'll post a issue and request a help to you on this forum again.

Thanks. 



Re: Voltage Measurement Program by using the PSoC 5

H L posted on 10 Apr 2013 12:45 AM PST
Top Contributor
679 Forum Posts

You are always welcome. :-)






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20