CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 51 matches
CCS Forum Index
Author Message
  Topic: AC DC Voltage and Current Sensors Using PIC18F25K80
mcmsat

Replies: 10
Views: 5573

PostForum: General CCS C Discussion   Posted: Tue Jul 09, 2024 1:05 am   Subject: AC DC Voltage and Current Sensors Using PIC18F25K80
Your DMM ,if like 99.44% of the others, ONLY samples every 3 reading per second, so you should adjust your DC amps function to be similar.

Also, instead of taking 100 samples, take 64 or 128. Makes ...
  Topic: AC DC Voltage and Current Sensors Using PIC18F25K80
mcmsat

Replies: 10
Views: 5573

PostForum: General CCS C Discussion   Posted: Sun Jun 30, 2024 4:13 am   Subject: AC DC Voltage and Current Sensors Using PIC18F25K80
It's worth understanding that the ADC's used on 99% of low priced DMM's
are what are knows as "dual slope integrating ADC's". These are one of the
few ADC's giving high accuracy at low pr ...
  Topic: AC DC Voltage and Current Sensors Using PIC18F25K80
mcmsat

Replies: 10
Views: 5573

PostForum: General CCS C Discussion   Posted: Sat Jun 29, 2024 6:00 pm   Subject: AC DC Voltage and Current Sensors Using PIC18F25K80
Ok. I have applied the Olympic Averaging in simulator only for DC Current and other sensors are working. In the morning I will do it in hardware
  Topic: AC DC Voltage and Current Sensors Using PIC18F25K80
mcmsat

Replies: 10
Views: 5573

PostForum: General CCS C Discussion   Posted: Sat Jun 29, 2024 4:05 pm   Subject: AC DC Voltage and Current Sensors Using PIC18F25K80
As I am using four ADCs, can I apply the Olympic Averaging only to the dc_current measurements. Can others still work the way they are?
  Topic: AC DC Voltage and Current Sensors Using PIC18F25K80
mcmsat

Replies: 10
Views: 5573

PostForum: General CCS C Discussion   Posted: Sat Jun 29, 2024 3:57 pm   Subject: AC DC Voltage and Current Sensors Using PIC18F25K80
As I am using for ADCs, can I apply the Olympic Averaging only to the dc_current measurements. Can others still work the way they are?
  Topic: AC DC Voltage and Current Sensors Using PIC18F25K80
mcmsat

Replies: 10
Views: 5573

PostForum: General CCS C Discussion   Posted: Sat Jun 29, 2024 3:52 pm   Subject: AC DC Voltage and Current Sensors Using PIC18F25K80
This is the link to the current sensor page:
https://www.ti.com/lit/gpn/INA139
  Topic: AC DC Voltage and Current Sensors Using PIC18F25K80
mcmsat

Replies: 10
Views: 5573

PostForum: General CCS C Discussion   Posted: Sat Jun 29, 2024 12:18 pm   Subject: AC DC Voltage and Current Sensors Using PIC18F25K80
I started this topic; Please could any one here tell me what is wrong with this code. I forgot to mention that I attached the circuit on a battery charger between the dc bus voltage, It measures curre ...
  Topic: AC DC Voltage and Current Sensors Using PIC18F25K80
mcmsat

Replies: 10
Views: 5573

PostForum: General CCS C Discussion   Posted: Sat Jun 29, 2024 12:02 pm   Subject: AC DC Voltage and Current Sensors Using PIC18F25K80
Hello honorable members and admins!
I am sensing AC and DC current and voltage and frequency. Everything is working but the Dc_current swings a lot. AC Voltage, AC Current, Frequency and DC Voltage a ...
  Topic: Using CT For Measuring AC Current With 16F886
mcmsat

Replies: 13
Views: 29318

PostForum: General CCS C Discussion   Posted: Tue Jul 12, 2022 12:28 am   Subject: Using CT For Measuring AC Current With 16F886
There are a couple of tweaks/comments.
First on the PIC, you should not use ADC_CLOCK_INTERNAL above 1MHz
CPU clock. Doing so results in poor ADC accuracy. You should instead be
using the master os ...
  Topic: Using CT For Measuring AC Current With 16F886
mcmsat

Replies: 13
Views: 29318

PostForum: General CCS C Discussion   Posted: Mon Jul 11, 2022 2:47 pm   Subject: Solved
I thank PrinceNai again.
  Topic: Using CT For Measuring AC Current With 16F886
mcmsat

Replies: 13
Views: 29318

PostForum: General CCS C Discussion   Posted: Sun Jul 10, 2022 9:24 am   Subject: Using CT For Measuring AC Current With 16F886
I'm glad it works. I suggested division by 8 because it is slightly faster. But the biggest difference is defining avgResult as unsigned int 16. That way you always manipulate only two bytes instead o ...
  Topic: Using CT For Measuring AC Current With 16F886
mcmsat

Replies: 13
Views: 29318

PostForum: General CCS C Discussion   Posted: Sat Jul 09, 2022 11:36 pm   Subject: Using CT For Measuring AC Current With 16F886
Some three posts back there is a complete code. That compiles without any problem.

@PrinceNai, the code is working now! So much thanks! I am so much happy for this!

Now, I have to study the cod ...
  Topic: Using CT For Measuring AC Current With 16F886
mcmsat

Replies: 13
Views: 29318

PostForum: General CCS C Discussion   Posted: Sat Jul 09, 2022 2:00 pm   Subject: Using CT For Measuring AC Current With 16F886
@ PrinceNai, I beg you to help me translate this code the way it should be so that I will study it as part of my lessons. everything goes to Arduino but my fun started with CCS C. Though not as a prof ...
  Topic: Using CT For Measuring AC Current With 16F886
mcmsat

Replies: 13
Views: 29318

PostForum: General CCS C Discussion   Posted: Sat Jul 09, 2022 1:12 pm   Subject: Using CT For Measuring AC Current With 16F886
I am sorry for my late reply. It was a natural factor. I thank the contributor to my questions. let me check it out now
  Topic: Using CT For Measuring AC Current With 16F886
mcmsat

Replies: 13
Views: 29318

PostForum: General CCS C Discussion   Posted: Sat Jul 09, 2022 1:36 am   Subject: Using CT For Measuring AC Current With 16F886
First of all I apologize for posting this topic in "Code Library". I noticed it lately and deleted it and bringing it here.

Please I was fiddling with a Current transformer to measure RMS ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group