How Can You Transmit an AC Signal to a Microcontroller for ADC Conversion?

  • Thread starter Thread starter phyky
  • Start date Start date
  • Tags Tags
    Ac Signal
Click For Summary

Discussion Overview

The discussion centers around methods for transmitting an AC signal to a microcontroller (μC) for analog-to-digital conversion (ADC). Participants explore various approaches, including the use of DC offsets and the potential need for external ADC components, while considering the limitations of built-in ADCs in microcontrollers.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants suggest using a DC offset to convert the AC signal into a mono-polar signal suitable for ADC.
  • Concerns are raised about the slow conversion times of μC ADCs, prompting suggestions to consider standalone ADC ICs for better performance.
  • One participant notes that the choice between using a built-in ADC or a separate ADC chip depends on the specific application and performance requirements.
  • Another participant emphasizes the importance of sampling rates, indicating that measuring high-frequency AC signals may require more samples per cycle than typical μC ADCs can provide.
  • There is a discussion about the resolution of the ADC and how it may affect the measurements depending on the application.
  • A participant inquires whether an AC to DC conversion is necessary given the specifications of their built-in μC ADC module.
  • Responses indicate that consulting the microcontroller's datasheet is essential to understand the ADC's operational ranges and requirements.

Areas of Agreement / Disagreement

Participants express varying opinions on the necessity of converting AC to DC and the adequacy of built-in ADCs versus standalone ADCs. The discussion remains unresolved regarding the best approach, as it depends on specific application details that have not been fully clarified.

Contextual Notes

Participants highlight limitations related to sampling rates and resolution, which may impact the ability to accurately measure and analyze AC signals. The discussion also reflects a dependence on the specifications of the microcontroller and ADC components.

Who May Find This Useful

This discussion may be useful for individuals working on projects involving microcontroller interfacing, particularly those dealing with signal processing and ADC conversion of AC signals.

phyky
Messages
57
Reaction score
0

Homework Statement


how can i transmit ac signal to μC to further ADC?


Homework Equations





The Attempt at a Solution


can i use dc offset?
 
Physics news on Phys.org
phyky said:

Homework Statement


how can i transmit ac signal to μC to further ADC?


Homework Equations





The Attempt at a Solution


can i use dc offset?

If I understand your question, yes. You can add a DC offset equal to half the expected peak-to-peak AC voltage (Vpp) to effectively convert it to a mono-polar time varying signal that a standard ADC could deal with.
 
be aware that uC ADC conversion times can be slow, you may want to consider a stand alone IC
 
what is stand alone IC?
 
earlofwessex said:
be aware that uC ADC conversion times can be slow, you may want to consider a stand alone IC

phyky said:
what is stand alone IC?

He is referring to the A/D converter functionality. That can either be an integrated part of the microcontroller (uC) chip, or it could be a separate ADC chip. I think he is saying that ADCs on typical uCs have limited performance, so you might consider using an external/separate ADC chip, which you would interface to your uC via the IO lines of the uC (either using I2C or SPI serial protocols, or some parallel interface protocol).
 
i see. if i use dc offset, is the output voltage ll become varies in ADC?or i need ac to dc converter is better?
 
thankyou berkeman that is what i meant.

phyky, your application here is quite vague, and the best solution depends on things you haven't told us. any adc, a built in peripheral of a uController or a separate IC will be limited by the maximum samples per second. for example, dsPic33F4013 has a maximum of 200 ksps.

if you want to measure an ac signal of frequency 20kHz, you will only get 10 samples per cycle, which is enough to estimate the frequency and peak amplitude, but not enough to analyse distortion or check for harmonic content.

if on the other hand you want to measure 100kHz, its not enough to do anything but check that the signal is there, and possibly measure frequency within a failry large error margin. you will find it very difficult to measure the peak amplitude, and impossible to distinguish between a square wave and a sine wave without some other knowledge of the signal.

you also have to consider resolution, which may or may not affect you depending on what you wish to measure.
 
i m doing computer interfacing. the microC connect to my computer.it is a built in microC with 10 bit ADC module.
- Auto-acquisition capability
- Conversion available during Sleep
- Internal 1.024V Fixed Voltage Reference (FVR) channel
- Independent input multiplexing
so i need convert the ac to dc?
 
its highly likely yes.
look in the microcontrollers datasheet, it will should you the ranges that the adc can convert
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 10 ·
Replies
10
Views
4K
Replies
13
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K