Search found 79 matches

by TedO
Thu Oct 08, 2015 11:25 am
Forum: Flowcode V6
Topic: Reading 12 volt DC input via ADC
Replies: 4
Views: 3447

Reading 12 volt DC input via ADC

Hi guys, I would appreciate some help understanding how to read a 12 volt battery level using the ADC inputs. I have experimented with the 5 volt ADC of the variable resistor pot and understand that, but am not sure how to approach the higher voltage input scenario? Any suggestions would be apprecia...
by TedO
Tue Sep 22, 2015 2:19 pm
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hi Martin The oil temp controller is working like a charm now, need to transfer the design onto a PCB. My friend with the cool name has asked me to thank you for your help. Thanks also to Benj for explaining the Modulus function. Thanks also for explaining the calculation formula and how you came to...
by TedO
Mon Sep 21, 2015 10:51 am
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hi Martin Thanks once again for bailing me out due to my inexperience! Your valued sharing of your experience to newcomers is greatly appreciated, my friend Martin will be delighted to hear about the help. I fully understand the formula now having seen that the ADC has a 10 bit output which is 2 to ...
by TedO
Mon Sep 21, 2015 10:07 am
Forum: Flowcode V6
Topic: Printing degree character on 16x2 LCD display
Replies: 4
Views: 6495

Re: Printing degree character on 16x2 LCD display

The easiest method of printing the degree symbol to an LCD display is: PrintAscii 223

It helps when one knows what the ASCII symbol values are.

Ted
by TedO
Sun Sep 20, 2015 12:25 pm
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hi Martin I added the calculation formula as you posted, when I run the program on a breadboard the LM35 outputs 102.3 and will not budge up or down. I am struggling a bit to convert the ADC input from the LM35 to celsius degrees. When I take a reading direct from the sensor, it writes 43 on the LCD...
by TedO
Wed Sep 16, 2015 11:02 am
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hi Martin

Have just realized my error in trying to use a 16F690 chip with the LM35 sensor, have just read your post from 2014 in which you speak about the internal voltage reference which the 16F1824 chip has, so once again......a valuable lesson.

Thanks
Ted
by TedO
Wed Sep 16, 2015 9:14 am
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hi Martin Have managed to compile the Thermometer flowchart only to find that in reality it does not work as it is reading 102.3 degrees C while the ambient temp was 16 degrees C, so what a waste of time. Will be receiving my order for the MCP9701 sensors tomorrow, am keen to get to know them better...
by TedO
Tue Sep 15, 2015 3:06 pm
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Thank you very much, I did not notice the second LCD to be honest. Will try the MCP9701 sensor flowchart as soon as I have received the sensors that I have ordered, much appreciated, you are a star....thank you.

Rgds
Ted :D
by TedO
Tue Sep 15, 2015 1:42 pm
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hi Martin I found this LM35 thermometer flowchart on the internet, it works perfectly well on the simulator, but alas, when it comes time to compile the program it gives me an "error 1" code. Please can you check it out for me, as I have confidence in your ability having helped me very well with the...
by TedO
Mon Sep 14, 2015 1:46 pm
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hi Martin I checked my flowchart with the potentiometer macro that simulates the temp sensor but I do not see the commands that you spoke about, namely the ReadAsInt and ReadIntValue, all I have is GetInt which I am currently using?? Are you using something different or is this a piece of C code tha...
by TedO
Mon Sep 14, 2015 1:27 pm
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hi Martin Thanks for the valuable advice on the Lm35DZ sensor, I really appreciate your help. I am definitely going to acquire some of the MCP sensors suggested, got tired of struggling with the One Wire DS18B20 device that frustrated me to no end, hence me trying to get the LM35DZ to work instead. ...
by TedO
Mon Sep 14, 2015 7:52 am
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hi All, I have been playing around with the LM35DZ temperature sensor which is much more user friendly to novices like me. Using the potentiometer to simulate the input for the sensor, I found that one needs to convert the input voltage to try and accurately determine the temperature which I did, bu...
by TedO
Wed Sep 02, 2015 8:12 am
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Hello,

Have tried the "One Wire" example which I downloaded from Matrix website, however, the component used is a DS1820 and not a DS18B20....are there no examples for the latter available?

Thanks
Ted
by TedO
Tue Sep 01, 2015 7:43 am
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

Re: DS18B20 Temperature Component Macro

Thank you

Have opened up the help file in "One Wire" and seen that it has the DS18B20 sensor included, thanks for the help.

Rgds
Ted :oops:
by TedO
Tue Sep 01, 2015 7:37 am
Forum: Flowcode V6
Topic: Printing degree character on 16x2 LCD display
Replies: 4
Views: 6495

Re: Printing degree character on 16x2 LCD display

Thank you Benj,

Have managed to get the LCD to print my customized symbol required using the RamWrite command, it works perfectly, it does however not display on the simulator, but that is not an issue.

Rgds
Ted
by TedO
Tue Sep 01, 2015 7:25 am
Forum: Flowcode V6
Topic: ADC input conversion using PIC16F690
Replies: 9
Views: 5843

Re: ADC input conversion using PIC16F690

Hi Martin

Yes it works even better now, thank you. Will eventually get the hang of this program.

Rgds
Ted :D
by TedO
Tue Sep 01, 2015 7:17 am
Forum: Flowcode V6
Topic: DS18B20 Temperature Component Macro
Replies: 29
Views: 21964

DS18B20 Temperature Component Macro

Good day, I am inquiring whether there is a DS18B20 component macro download available for Flowcode V6? I have scratched around the forums but maybe I missed it? The LM75B macro which is supplied as standard with FC 6 is an SMD chip in real life which is difficult to mount and be able to use when le...
by TedO
Tue Aug 18, 2015 11:52 am
Forum: Flowcode V6
Topic: Printing degree character on 16x2 LCD display
Replies: 4
Views: 6495

Printing degree character on 16x2 LCD display

Good day, Trying to print the degree symbol on a 16x2 LCD display, have the standard character pattern sheet for the LCD and the symbol is shown having the upper 4 bits: 1101 and the lower 4 bits: 1111. How does one enter these digits into a FC v6 program so that it is recognized by the program. Tri...
by TedO
Tue Aug 18, 2015 11:33 am
Forum: Flowcode V6
Topic: ADC input conversion using PIC16F690
Replies: 9
Views: 5843

Re: ADC input conversion using PIC16F690

Hi Martin,

Sorry, I have been so busy with work, only saw your request today. This version is as accurate as the bought gauges.

Rgds
Ted
by TedO
Thu Jul 30, 2015 1:18 pm
Forum: Flowcode V6
Topic: ADC input conversion using PIC16F690
Replies: 9
Views: 5843

Re: ADC input conversion using PIC16F690

Hi Martin Thank you very much for your input regarding my fuel gauge flowchart as posted. I tweaked both of them to read the fuel gauge that I have and it is now pretty accurate according to the gauge's dial. Version 2 now reads from: EMPTY, 1/8, 1/4, 3/8, 1/2, 5/8, 3/4, 7/8, and FULL very accuratel...
by TedO
Fri Jul 24, 2015 12:42 pm
Forum: Flowcode V6
Topic: ADC input conversion using PIC16F690
Replies: 9
Views: 5843

Re: ADC input conversion using PIC16F690

Hi Kersing As you will see that I have used the 4 outputs to label the position of the fuel gauge float. I would however like to have a full scale reading between 0 and 5 volts outputting 0, 1/8, 1/4, 3/8, 1/2, 5/8, 3/4, 7/8 and Full positions. The example that I copied from Matrix only gives one 4 ...
by TedO
Fri Jul 24, 2015 7:40 am
Forum: Flowcode V6
Topic: ADC input conversion using PIC16F690
Replies: 9
Views: 5843

ADC input conversion using PIC16F690

Good day I have used the ADC example on Flowcode V6 which I have modified to read the input voltage of a fuel gauge which uses the reed switch/resistor ladder system and outputting the result on an LCD display. The program works well, but what I have discovered is that it only outputs 2 bits (4 opti...
by TedO
Fri Mar 20, 2015 4:29 am
Forum: Flowcode V6
Topic: Flowcode v6.1.1
Replies: 12
Views: 7985

Re: Flowcode v6.1.1

Hi Martin

Thanks for the valuable information, sure is great to have guys like you willing to assist newcomers to this fascinating yet daunting field.

Ted
by TedO
Thu Mar 19, 2015 7:28 am
Forum: Flowcode V6
Topic: Flowcode v6.1.1
Replies: 12
Views: 7985

Re: Flowcode v6.1.1

Hi Martin, My outdated programmer was the cause of all the drama, have purchased a new locally made programmer that caters for the entire Microchip PIC family of PDIP chips. I reprogrammed the 16F84A and the 1Hz timer was working correct. Have not rebuilt the LCD circuit on the breadboard, will give...
by TedO
Mon Mar 16, 2015 7:37 am
Forum: Flowcode V6
Topic: Flowcode v6.1.1
Replies: 12
Views: 7985

Re: Flowcode v6.1.1

Hi Martin Have corrected the circuit diagram to reflect the pull up resistor on MCLR pin, thanks. I have gone online this morning to check out our local suppliers of LCD displays, have seen on RS Components website that they stock a display using the ST7066U chip. Now apparently this is also compati...