You are here

Sine wave- ADC - Bluetooth | Cypress Semiconductor

Sine wave- ADC - Bluetooth

Summary: 10 Replies, Latest post by danaaknight on 25 Mar 2015 08:14 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
rom17's picture
User
91 posts

I need to send a signal by sin function generator for the pin0 and send the signal by bluetooth to the PC.

I'm having trouble understanding the logic on this board.

Help me please

user_14586677's picture
User
7648 posts

Some questions -

 

1) What board are you using ?

2) Do you what to digitize the sine then send it to PC ? If so use

a bluetooth USB UART would be straightforward.

3) Max frequency of sine ?

 

Regards, Dana.

hli
user_78878863's picture
User
2759 posts

Do this in steps. First, get comfortable with the ADC, maybe by writing the data you read over UART to the PC.

Since you are on a PSoC3 device, you need an external Bluetooth device. So maybe choose one which can act as a transparent UART-over-BT bridge (using the SPP profile), something like the HC05 modules. Doing so makes this straightforward, the BT module will just appear as a wireless UART cable :)

rom17's picture
User
91 posts

Hi dana,  

1) What board are you using ?

PSOC 3

2) Do you what to digitize the sine then send it to PC ? If so use

a bluetooth USB UART would be straightforward.

Yes. I need to send signal to PSOC3 to  PC and use HC-05 but unfortunately I didn't 

3) Max frequency of sine ?

 the frequency varies from 10 to 400 Hz 

 

 

 

hli
user_78878863's picture
User
2759 posts

'PSoC3' is not a board - are you using the CY8CKIT-030?

What is your actual question? There are several application notes available that explain how to use the ADC to capture analog data, did you have a look at them?

user_14586677's picture
User
7648 posts

Here is a bridge using the BLE Pioneer board -

 

Normal
0

false
false
false

EN-US
X-NONE
X-NONE

MicrosoftInternetExplorer4

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}

http://www.cypress.com/?rID=109234

 

Note this is a PSOC 4 solution. There is not a BLE stack solution running

on PSOC 3 (that I am aware of), you would have to port to PSOC 3 a solution.

Maybe best solution here would be PSOC 3 talking to PSOC 4 BLE. Or consider

using PSOC 4 BLE  for the whole solution

 

Regards, Dana.

rom17's picture
User
91 posts

 i use the board CY8CKIT-001 Development Board and the module is CY8C38 Family Processor.

 

I need to send the sinwave to psoc and the psoc send the signal to pc over HC-05.

I didn't understand how can i do it?

 

Regard,

hli
user_78878863's picture
User
2759 posts

You connect whatever is generating the sine wave to your PSoC. In the PSoC you route that pin to your ADC, configure that one according to your needs (for a 400Hz since wave 4000 samples per second seem fine), and start reading its data.

If you are unsure where to start, select the ADC in the component list (on the right hand side), right-click, 'example projects'.

The -001 kit comes with at least 3 different ADC sample projects. One of them actually takes ADC reading and send them to the UART. This might be a good starting point for your project.

user_14586677's picture
User
7648 posts

First of all when using A/D the input must be offset, it cannot handle

voltages < Vssa. There is an example project you can look at on start

page of Creator, "Find Example Projects".

 

Attached is some info on handling negative voltages.

 

 

Regards, Dana.

rom17's picture
User
91 posts

 Thanks for helping me.
 

Regards

user_14586677's picture
User
7648 posts

You are always welcome !

 

Regards, Dana.

Log in to post new comments.