Search found 9 matches

by picolino
Wed May 12, 2021 11:14 pm
Forum: General Programming
Topic: Measure PIC's own battery voltage
Replies: 18
Views: 19500

Re: Measure PIC's own battery voltage

Looking at the datasheet, that device does not have an internal FVR that can be used for analogue inputs. It has an internal comparator reference, but I'm not sure if that is supported in Flowcode (but you can always use C code if you need it). More modern chips (like the 12F1840) do have an intern...
by picolino
Tue May 11, 2021 8:31 pm
Forum: General Programming
Topic: Measure PIC's own battery voltage
Replies: 18
Views: 19500

Re: Measure PIC's own battery voltage

In v9, add a potentiometer to the panel and select it. In the component properties, "FVR" will be one of the choices under "Vref options". Thanks Steve. I use a 12F675 that have a Vref in pin 6 (AN1), but in Vref option didn't see that FVR. Any suggestion? https://i.postimg.cc/K1Kh87BK/nofvrpin6.jp...
by picolino
Tue May 11, 2021 3:04 am
Forum: General Programming
Topic: Measure PIC's own battery voltage
Replies: 18
Views: 19500

Re: Measure PIC's own battery voltage

We no longer support v5 of Flowcode. FVR is supported in Flowcode v9 for the 12F1840, and there are many other benefits from using the latest version. More info is here: https://www.flowcode.co.uk/ I tryed with trial version of Flowcode 9, and I can't see difference for this particular problem... S...
by picolino
Tue Jan 19, 2021 12:16 am
Forum: General Programming
Topic: Measure PIC's own battery voltage
Replies: 18
Views: 19500

Re: Measure PIC's own battery voltage

I don't recommend zener diode as a voltage reference, it's not stable. Hi. I made a test with zenner and really is not an option. I need to use a maximum of battery (4.2V to 3V), zenner can't fix voltage in this ranges. I decided to use a charge-pump LTC3200ES6-5 to obtain 5V and use Option VRef VD...
by picolino
Fri Jan 08, 2021 4:31 am
Forum: General Programming
Topic: Measure PIC's own battery voltage
Replies: 18
Views: 19500

Re: Measure PIC's own battery voltage

Ok, so, first of all, is needed one fixed voltage equal or below 5V in order to this work, is correct? Without one fixed voltage, is impossible made measure. Maybe (and simply [In my case is not critical the accurate of measure]) with one zener...

Thanks.
by picolino
Wed Jan 06, 2021 7:34 pm
Forum: General Programming
Topic: Measure PIC's own battery voltage
Replies: 18
Views: 19500

Re: Measure PIC's own battery voltage

Hi Stefan. Program is simply like this. https://i.postimg.cc/9D48hGWd/program.jpg Pic (and led) is powered direct by battery. I used a voltage divider to get a different value of battery and not get always 1... R1 39k and R2 47k to obtain 2.26V from Battery at 4.15v (as you can see my Vref voltage i...
by picolino
Wed Jan 06, 2021 7:29 am
Forum: General Programming
Topic: Measure PIC's own battery voltage
Replies: 18
Views: 19500

Measure PIC's own battery voltage

Hi. I tryed a lot of things but with no luck. I using Flowcode V5 I have a pic 12F675 powered by a single 4.2v lithium battery. I need to measure voltage of this battery to change 3 states of a simple led: If voltage is over 3.7v (read as a byte, for example 227) led is on. If voltage is minor to 3....
by picolino
Mon Feb 17, 2020 5:46 am
Forum: Flowcode V8
Topic: Error to compile code C
Replies: 2
Views: 1699

Re: Error to compile code C

Oh! Yes, work fine in uppercase!

Thanks a lot Medelec! <3
by picolino
Sun Feb 16, 2020 8:12 am
Forum: Flowcode V8
Topic: Error to compile code C
Replies: 2
Views: 1699

Error to compile code C

Hi. Greetings to all. I trying V8, and I have problems compiling hex with C code inside flowchart. Same code compile perfect in V5, Code I trying to compile is simple sleep(); In V5 compile perfect, but in V8 no, if I erase this code C, complie perfect. If I use any PIC, is same problem. Error in re...