Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC18F452 intead of VCO, is it possible?

Status
Not open for further replies.

ppperez

Newbie level 5
Joined
Jul 31, 2014
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
84
Hello Masters.

I am back to school after 16 years, I want to finish the school and I have a project to do that.

After 16 years, I am returning to study again all the concepts, I would like to know if it's possible to do the following with the PIC18F452:

-The front end is any sensor, with some electronics components I have voltage from 0-5V.

-PIC18F452 receives 0-5V with the ADC input.
-with PIC18F452 I will have a sinusoidal signal and the amplitude depends of the input (0-5V), the sinusoidal signal should be an audible frequency.
************************
Another project will receive the digital signal and with another electronic components will convert to analog signal and will be manage with a PC
************************

I'm posting this... because I need your professional comments. If it's possible I would like to know, how can I generate a sinusoidal signal, of course the amplitude should be from -1 to 1.

Thanks in advance.
 

Hello Masters.


I'm posting this... because I need your professional comments. If it's possible I would like to know, how can I generate a sinusoidal signal, of course the amplitude should be from -1 to 1.

Thanks in advance.
if you are dealing with a low frequency, e.g. less than 5KHz, a digital potentiometer such as Microchip;s MCP4011 is suitable
https://www.microchip.com/wwwproducts/Devices.aspx?product=MCP4011

you have a table of potentiometer values which at regular intervals (usinga timer interrupt) to send to the digital pot

a similar techniqure sending values to a DAC (DtoA converter)

for high accuracy and high (and very low) frequencies a DDS (Direct digital synthesizer) device may be used , e.g.
https://www.analog.com/en/rfif-components/direct-digital-synthesis-dds/ad9835/products/product.html

the advantage being you just send the DDS device the details of the frequency and phase you require and it does all the hard work!

you may need external analogue circuits to get the voltage range and offset you require
 

Hello horace1.

First of all... thanks for your comments.

I would like to know if with that I can play audio. I already talked to my instructor and he told me that the goal is that PIC can play audio with the input of 0-5V with 0V not audio.

As I told you, I'm returning to the school after a lot of time, I know that I have to study a lot of topics.

Any comments, they are appreciate.

Thanks in advance.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top