Author |
Message |
Topic: Power Meter ADC problems |
Can
Replies: 22
Views: 36091
|
Forum: General CCS C Discussion Posted: Tue Feb 26, 2013 5:26 pm Subject: Power Meter ADC problems |
Ok, 80 us cost me a really long time. So, now I can read the voltage and the current independently. Now I will be trying to isolate the source from the rest of the circuit and then I will try to arran ... |
Topic: Power Meter ADC problems |
Can
Replies: 22
Views: 36091
|
Forum: General CCS C Discussion Posted: Tue Feb 26, 2013 8:04 am Subject: Power Meter ADC problems |
Your putting the cart before the horse.
Rushing to get something to show gets you nowhere.
You're not answering the questions that others and I are asking.
We're trying to help you by making you th ... |
Topic: Power Meter ADC problems |
Can
Replies: 22
Views: 36091
|
Forum: General CCS C Discussion Posted: Tue Feb 26, 2013 5:07 am Subject: Power Meter ADC problems |
Hello Mike, what I am understanding from your post is that I should pull down the analog pins with, say, 10k resistors, right?
About using a step down transformer, I thought about it but the turbin ... |
Topic: Power Meter ADC problems |
Can
Replies: 22
Views: 36091
|
Forum: General CCS C Discussion Posted: Mon Feb 25, 2013 4:59 pm Subject: Power Meter ADC problems |
Asmboy:
I am afraid what you see in the schematics is basically what I am doing. So, my only isolation is the extreme caution I am paying. In that sense I understand the suggestion of isolated power ... |
Topic: Power Meter ADC problems |
Can
Replies: 22
Views: 36091
|
Forum: General CCS C Discussion Posted: Mon Feb 25, 2013 3:39 pm Subject: Power Meter ADC problems |
Hello asmboy,
The ISIS drawings are added. Sorry for the really quick drawing.
http://i50.tinypic.com/28bzcig.png
(Not exactly the same setup but the actual setup has an extension cable to draw ... |
Topic: Power Meter ADC problems |
Can
Replies: 22
Views: 36091
|
Forum: General CCS C Discussion Posted: Mon Feb 25, 2013 3:27 pm Subject: Power Meter ADC problems |
Hello Mike,
Thank you for your reply. Well I know that I will be reading 0 half the time and that is fine with me. I want to build a working prototype as soon as I can and I will get the optimization ... |
Topic: Power Meter ADC problems |
Can
Replies: 22
Views: 36091
|
Forum: General CCS C Discussion Posted: Mon Feb 25, 2013 2:32 pm Subject: Power Meter ADC problems |
I am trying to build a power meter with current and voltage measurements. The final circuit is going to be used to measure the power produced by a wind turbine. I am trying to build the power meter to ... |
Topic: sleep() and watchdog timer |
Can
Replies: 15
Views: 23544
|
Forum: General CCS C Discussion Posted: Fri Mar 09, 2012 3:28 am Subject: sleep() and watchdog timer |
The RTC's backup power is a CR2032. When I attach my USB and read the date/time from the terminal, the data is ok. The RTC is powered by the main supply now, I will change it to get the power from the ... |
Topic: sleep() and watchdog timer |
Can
Replies: 15
Views: 23544
|
Forum: General CCS C Discussion Posted: Fri Mar 09, 2012 2:57 am Subject: sleep() and watchdog timer |
I tried the configuration disconnecting the RTC and EEPROM but the power consumption was almost the same, so the RTC and EEPROM are connected to the regulator directly. I am using a 7805 as a regulato ... |
Topic: sleep() and watchdog timer |
Can
Replies: 15
Views: 23544
|
Forum: General CCS C Discussion Posted: Fri Mar 09, 2012 1:46 am Subject: sleep() and watchdog timer |
I've managed to write data to the EEPROM after sleeping through WDT128. Data seems ok and there is no problem. When I try WDT32768, the PIC wakes up like every minute, writes some data and goes back t ... |
Topic: Writing (not overwriting) to eeprom |
Can
Replies: 4
Views: 6498
|
Forum: General CCS C Discussion Posted: Thu Mar 08, 2012 3:20 am Subject: Writing (not overwriting) to eeprom |
If i understand your question right you can just allocate the first byte of the EEPROM for memory mapping. Whenever you write to EEPROM, you can just update the memory map. So whenever you read the fi ... |
Topic: sleep() and watchdog timer |
Can
Replies: 15
Views: 23544
|
Forum: General CCS C Discussion Posted: Wed Mar 07, 2012 3:18 pm Subject: sleep() and watchdog timer |
Well I mostly tried the sleep and wake up part.
My final code is like the following:
#include <18F2550.h>
#DEVICE ADC=8
#fuses HSPLL,NOWDT,WDT4096,MCLR,NOPROTECT,NOLVP,NODEBUG,NOBROWN ... |
Topic: sleep() and watchdog timer |
Can
Replies: 15
Views: 23544
|
Forum: General CCS C Discussion Posted: Wed Mar 07, 2012 2:06 pm Subject: sleep() and watchdog timer |
I am really sorry about the late reply, I forgot my codes at my workplace so I couldn't try anything
After your heads up, I measured the current consumption and it is like 50 mA. So i sup ... |
Topic: sleep() and watchdog timer |
Can
Replies: 15
Views: 23544
|
Forum: General CCS C Discussion Posted: Tue Mar 06, 2012 3:32 am Subject: sleep() and watchdog timer |
Ttelmah, I wasn't using a USB connection sense pin. I will try to arrange it in the hardware and see if it works. So I suppose I have to program an external interrupt on pinB0. I have to figure out ho ... |
Topic: sleep() and watchdog timer |
Can
Replies: 15
Views: 23544
|
Forum: General CCS C Discussion Posted: Tue Mar 06, 2012 3:10 am Subject: sleep() and watchdog timer |
RF_Developer and Ttelmah thank you for your replies.
I am using an 18F2550.
My intention is to realize a datalogger. It is going to run on batteries so I need it to be power efficient. I want to ... |
|