Search found 7716 matches

by medelec35
Fri Apr 08, 2022 7:59 am
Forum: Flowcode V8
Topic: 15V Voltmeter at 3v3 mcu (SOLED)
Replies: 5
Views: 7024

Re: 15V Voltmeter at 3v3 mcu

You're welcome, I'm glad the values worked for you as it was only theory. I think I understand, 5 is the ratio between the input voltage and the adc voltage, after the divider. Yes, that is correct. As the voltage going into the top of the R1 is five times higher than the voltage going into the ADC,...
by medelec35
Thu Apr 07, 2022 10:51 pm
Forum: Flowcode V8
Topic: 15V Voltmeter at 3v3 mcu (SOLED)
Replies: 5
Views: 7024

Re: 15V Voltmeter at 3v3 mcu

Hello I have moved your post from Programming Tips & Tricks as that section is for sharing tips and not starting with a question. I have calculated R1 to be 33K & R2 to be 8K2 This is handy as they are common preferred values. Then if the voltage goes above 15V,the ADC of the PIC will be protected. ...
by medelec35
Thu Mar 31, 2022 9:38 pm
Forum: Feature Requests
Topic: Flash storage
Replies: 19
Views: 11050

Re: Flash storage

Hello. The errors are caused by your microcontroller running out of space. for example 0: (1347) can't find 0x11 words (0x11 withtotal) for psect "text19" in class "CODE" (largest unused contiguous range 0x10) This means that 17 program commands or constant values are required for the microcontrolle...
by medelec35
Fri Mar 25, 2022 10:29 pm
Forum: Flowcode V8
Topic: Issue with Device ID error
Replies: 3
Views: 2616

Re: Issue with Device ID error

That's great.
At least you are sorted now.
Thanks for letting us know.
by medelec35
Thu Mar 24, 2022 9:32 am
Forum: Flowcode V8
Topic: pic16lf1824 Clock with DS3231 and VFD display ( PT6315 )
Replies: 5
Views: 2666

Re: pic16lf1824 Clock with DS3231 and VFD display ( PT6315 )

Hi the RTC simulation fix was pushed yesterday. You will need to use Help , Check for updates , then reload flowchart after update has been completed. The flowchart I posted was just a guide on how the time and date can be formatted to look correct. The flowchart also calculates the day of the week ...
by medelec35
Thu Mar 24, 2022 12:04 am
Forum: Flowcode V8
Topic: Issue with Device ID error
Replies: 3
Views: 2616

Re: Issue with Device ID error

Hi.
I believe device ID 0x2080 belongs to PIC16F887.
Is that the microcontroller you are using since that's what's being detected?
The reason I ask is, it looks like you have selected PIC16F877 within Build, Project options.
by medelec35
Tue Mar 22, 2022 11:07 pm
Forum: Flowcode V8
Topic: pic16lf1824 Clock with DS3231 and VFD display ( PT6315 )
Replies: 5
Views: 2666

Re: pic16lf1824 Clock with DS3231 and VFD display ( PT6315 )

I have made some modifications for you.
Unfortutunaly there is a bug that has stopes the RTC from updating with PC time.
That has now been fixed and should be pushed out tomorrow.
RTC Example.png
RTC Example.png (20.08 KiB) Viewed 2649 times
by medelec35
Tue Mar 22, 2022 7:26 pm
Forum: Flowcode V8
Topic: pic16lf1824 Clock with DS3231 and VFD display ( PT6315 )
Replies: 5
Views: 2666

Re: pic16lf1824 Clock with DS3231 and VFD display ( PT6315 )

Hi.
In FC9 I created a display that shows time, & date on an LCD.
You can easily adapt it for a VFD.
The post is here.
by medelec35
Tue Mar 15, 2022 9:06 am
Forum: Flowcode V5
Topic: Flowcode 5 not starting on LG laptop
Replies: 3
Views: 3407

Re: Flowcode 5 not starting on LG laptop

Hi. Flowcode v5 has not been supported for some time now. If you would like to either post your v5 flowcharts on here or PM them if you want them to remain private. We can convert them to v9 for you. One thing to be aware of. The compilers used are different, so the memory used up could be a bit mor...
by medelec35
Tue Mar 15, 2022 8:57 am
Forum: Flowcode V8
Topic: All Projects Compile But Won't Run
Replies: 5
Views: 2519

Re: All Projects Compile But Won't Run

Not a problem.
At least you are up and running and know the Uno is programming OK.
Thanks for letting us know.
by medelec35
Fri Mar 11, 2022 11:42 am
Forum: Flowcode V8
Topic: Run Out of Program Space on chip
Replies: 1
Views: 1833

Re: Run Out of Program Space on chip

Hello You will get a reduction in size, but it probably won't be as much as advertised. Microchip have two options for the XC8 compiler which is not a cheap product. There is a workstation licence There is also a monthly subscription, but it looks like none are available. If not done so before, you ...
by medelec35
Fri Mar 11, 2022 9:15 am
Forum: Flowcode V8
Topic: All Projects Compile But Won't Run
Replies: 5
Views: 2519

Re: All Projects Compile But Won't Run

Hello. To control the onboard LED, you have the wrong pin selected. This should help Controling onboard LED.png After changing the properties from D7 to B5, the onboard LED flashes every 3 seconds for me on my Uno To answer your questions. Do I have to modify the compile options boxes from default. ...
by medelec35
Thu Mar 10, 2022 8:23 am
Forum: Flowcode V8
Topic: All Projects Compile But Won't Run
Replies: 5
Views: 2519

Re: All Projects Compile But Won't Run

Hello. The LED won't flash because the pin will be high for 3 seconds, then go low, but it will then instantly go high. It will look like the LED is permanently on. You will need to add another delay below the TurnOff() You should be able to add .fcfx files. If that still does not work, can you post...
by medelec35
Mon Feb 21, 2022 10:31 am
Forum: General Programming
Topic: Compile Error (Arduino MEGA 2560)
Replies: 6
Views: 5691

Re: Compile Error (Arduino MEGA 2560)

Thanks Martin.
As the comms is via UART anyway via the built-in UART to USB, it makes sense to use the UART.
If the UART is missing incoming data, then there is a UART with a circular buffer example
by medelec35
Sun Feb 20, 2022 1:34 pm
Forum: General Programming
Topic: Compile Error (Arduino MEGA 2560)
Replies: 6
Views: 5691

Re: Compile Error (Arduino MEGA 2560)

Hi Brandon. Any questions relating to v9 issues should be posted on Flowcode forums Have you run a full database update? There are two ways. When you first run flowcode and have the options of New Project & Open project. Select Library Updates . It will automatically have Full database selected. If ...
by medelec35
Mon Feb 14, 2022 5:39 pm
Forum: 8-Bit PIC
Topic: DECIMAL POINT HEADACHE
Replies: 31
Views: 15301

Re: DECIMAL POINT HEADACHE

Hi Bob, Sounds like you are making good progress. perked version 2 up with a 1 Meg resistor as ref i can get down to 100k ohm with accurate results compared to a fluke but no good for low value ie 180 ohm but this accuracy comes back with the original 267 ref resistor What about my suggestion of f y...
by medelec35
Mon Feb 14, 2022 9:00 am
Forum: 8-Bit PIC
Topic: DECIMAL POINT HEADACHE
Replies: 31
Views: 15301

Re: DECIMAL POINT HEADACHE

Hi Bob. With the earlier versions, the type of the variable used for PullupResistor is UInit. That means the maximum value is 65535, so you can not have any resistance value greater than 65k. For higher values, you can either use a ULong or Float. It also means the fractional part of the number is i...
by medelec35
Sun Feb 13, 2022 5:14 pm
Forum: 8-Bit PIC
Topic: DECIMAL POINT HEADACHE
Replies: 31
Views: 15301

Re: DECIMAL POINT HEADACHE

Hi Bob. yes, you are spot on. If you want to test resistors in the meg range, then the reference resistor needs to be in the meg range and the .ReferenceResistor has to be set for the same value. I would suggest you need three ranges of ref resistances. Mid 100's ohm Mid 100k's ohm and perhaps mid m...
by medelec35
Sat Feb 12, 2022 6:21 pm
Forum: 8-Bit PIC
Topic: DECIMAL POINT HEADACHE
Replies: 31
Views: 15301

Re: DECIMAL POINT HEADACHE

Hi Bob, the value of the reference resistor can be any value you like. It's only 1.5M because that's what I believe is best for testing resistors in the M range. The lower the resistance will be away from the reference resistor, in theory, the less accurate the results will be. You can change it bac...
by medelec35
Sat Feb 12, 2022 5:38 pm
Forum: 8-Bit PIC
Topic: DECIMAL POINT HEADACHE
Replies: 31
Views: 15301

Re: DECIMAL POINT HEADACHE

Hi Bob. I have got an update for you to try. The hardware should work in the region of MΩ and the open-circuit should work better. It will take ADC input impedance/leakage into account for higher accuracy if you wish change the .PullUpResistorUsed = 1 to .PullUpResistorUsed = 0 within ADC user macro...
by medelec35
Fri Feb 11, 2022 7:02 pm
Forum: Flowcode V8
Topic: PIC16LF18426 does not work correctly
Replies: 6
Views: 3045

Re: PIC16LF18426 does not work correctly

Hi Regarding ADC,
Can you see if the attached file works better?
The same as above post, but this time the file belongs:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC

Edit: Removed file as not working.
by medelec35
Fri Feb 11, 2022 3:10 pm
Forum: Flowcode V8
Topic: PIC16LF18426 does not work correctly
Replies: 6
Views: 3045

Re: PIC16LF18426 does not work correctly

Hi Bruno. Just regarding UART interrupt Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar. C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\PIC Replace the existing file with the attached file. If Flowcode was running when you replaced the file, ...
by medelec35
Fri Feb 11, 2022 11:08 am
Forum: 8-Bit PIC
Topic: DECIMAL POINT HEADACHE
Replies: 31
Views: 15301

Re: DECIMAL POINT HEADACHE

Do you have a ref resistor going from the ADC pin to VDD and a test resistor going from ADC pin to GND?
by medelec35
Wed Feb 09, 2022 3:49 pm
Forum: 8-Bit PIC
Topic: DECIMAL POINT HEADACHE
Replies: 31
Views: 15301

Re: DECIMAL POINT HEADACHE

In that case, within main.
can you change:
If R = 0 to If R < 0.1
by medelec35
Wed Feb 09, 2022 2:59 pm
Forum: 8-Bit PIC
Topic: DECIMAL POINT HEADACHE
Replies: 31
Views: 15301

Re: DECIMAL POINT HEADACHE

Hi Bob.
If the display does not show not connected, what does the display show as the value being?
When you get the reading, you can then change the

Code: Select all

R = 0
in main to if R < (ValueShown + 0.1)
Perhaps the maths is making the value slightly larger, e.g. 0.0001, which then means R is not 0.