- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to calculate the power consumption of a system , to do so I am reading the voltage value from a shunt resistor and amplifying it . After amplification , the signal goes to the Delta-Sigma ADC and finally I have digital form of my voltage value. Now , I need to do calculation with coding. How can I code the digital output of an ADC ?
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The DelSigADC API has several functions that convert the digital reading into voltage values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As usual there are some example projects availlable. Just right-click on the ADC component and select "Find Example Project". Choose one without DMA first, will be easier for you.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your reading off the shunt R produces an equivalent instantaneous I.
Ohms law. The V read is instantaneous V. So now you have to correct
for reactive loads. Google "embedded power meter ac line", lots of ap
notes on basic calculations and period measurement to do the calculations.
Regards, Dana.