Search found 157 matches

by Bobw
Sat Mar 29, 2014 5:26 am
Forum: General Programming
Topic: Reading LM35 Temperature IC
Replies: 5
Views: 8025

Re: Reading LM35 Temperature IC

James, I ran into the same dilemma as you. I am using an LM35 equivalent that reads -40C to 125C 10mv per degree C. I do not know the PIC you are using, but going on the assumption that you have a 10 bit ADC 0-1023 If using a 5 volt supply, each ADC step will be worth 4.88MV If using a 3.3 volt supp...
by Bobw
Sat Mar 29, 2014 2:27 am
Forum: Flowcode V6
Topic: Config settings for ADC
Replies: 8
Views: 5416

Re: Config settings for ADC

Ben, Just what I needed. Kind of thought that is what the settings were for. Suggestion for the next release, In the picture I showed above, Place a ? or help box that would link to the proper place in the WIKI page you gave me the link for. Save other users from trying to dig around for the correct...
by Bobw
Fri Mar 28, 2014 2:03 pm
Forum: Flowcode V6
Topic: Config settings for ADC
Replies: 8
Views: 5416

Config settings for ADC

I was looking at other post and in the help sections.
Can anyone point me to some reading on the configuration settings for an ADC?
ADCset.jpg
ADCset.jpg (67 KiB) Viewed 5416 times
The Vref I understand, Speed and cycles is what I want to read up on.

Bob
by Bobw
Mon Mar 24, 2014 2:25 pm
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

When I read the ADC voltage and print the raw number to the LCD. I only see a single digit number.
Multiplying the ADC voltage by 1000 gave me the 4 digits I need
Greatest number I should see is 2048.
by Bobw
Mon Mar 24, 2014 2:35 am
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

I am writing this in hoping it will help others. I have been wrestling with a simple calculation to permit temperature readings and display with out the use of memory intensive float values. It finally dawned on me I was fighting ADC resolution when using a 5 volt reference. At 5 volts, the best you...
by Bobw
Sun Mar 23, 2014 2:08 am
Forum: Flowcode V6
Topic: ADC REF+ and Simulator
Replies: 2
Views: 2353

Re: ADC REF+ and Simulator

Martin, Thanks.... That is kind of what I had thought. Going to use a couple of Pots and see if I can get +VREF somewhere near 2.048 volts to give me a 2 mv per step range on the ADC. It works on paper and on the Sim. I did notice on the properties the default is 500 I would have sworn it was only 5...
by Bobw
Sun Mar 23, 2014 12:20 am
Forum: Flowcode V6
Topic: ADC REF+ and Simulator
Replies: 2
Views: 2353

ADC REF+ and Simulator

I am assuming when I use a SLIDER on the simulator, and set the voltage +REF for the ADC reference that this is only for the simulator. In hardware will it be actual hardware voltage? The simulator will only accept whole numbers. Hardware my +REF will be closer to 2.04, the simulator will only let m...
by Bobw
Fri Mar 21, 2014 6:42 pm
Forum: Flowcode V5
Topic: Personal Thank you!
Replies: 4
Views: 6210

Personal Thank you!

To Ben, Martin and the rest of the flowcode team. I want to personally and publicly thank you for all your support. Was having a bugger of a time with memory management, flowcode version and then some. Planning is everything, and so is understanding ADC interactions and some basic math. Soon as my n...
by Bobw
Thu Mar 20, 2014 2:48 am
Forum: Flowcode V5
Topic: Running out of Memory
Replies: 7
Views: 5783

Re: Running out of Memory

Had to do away with a few things.
Talk about cutting it close.
RAM available:384 bytes, used:118 bytes (30.8%), free:266 bytes (69.2%),
Heap size:266 bytes, Heap max single alloc:79 bytes
ROM available:4096 words, used:4051 words (99.0%), free:45 words (1.0%)

Bob
by Bobw
Tue Mar 18, 2014 4:49 am
Forum: Flowcode V5
Topic: Running out of Memory
Replies: 7
Views: 5783

Re: Running out of Memory

Guess I am just going to have to bite the bullet and upgrade to The Pro Version, If I can find my License key for the 5.0 Student.

Bob
by Bobw
Mon Mar 17, 2014 5:55 pm
Forum: Flowcode V5
Topic: Running out of Memory
Replies: 7
Views: 5783

Re: Running out of Memory

Darn, Missed that one. changed it to 102 Amazing how much a float value will eat up. RAM available:384 bytes, used:120 bytes (31.3%), free:264 bytes (68.7%), Heap size:264 bytes, Heap max single alloc:79 bytes ROM available:4096 words, used:1849 words (45.2%), free:2247 words (54.8%) Thanks Ben........
by Bobw
Mon Mar 17, 2014 5:25 pm
Forum: Flowcode V5
Topic: Running out of Memory
Replies: 7
Views: 5783

Re: Running out of Memory

I have not removed any thing yet. I was going to display both temp in C and in F, only use degrees F here in the USA. Will remove the temp in C or use the same string variables with a different calculation. Have to toy around with that one. I can loose the do nothing loop where I display x o X . Had...
by Bobw
Mon Mar 17, 2014 4:50 pm
Forum: Flowcode V5
Topic: Running out of Memory
Replies: 7
Views: 5783

Running out of Memory

Still working on my Auto Humidistat project and it looks like I am running out of memory. This is what I get at the end of the compiler: RAM available:384 bytes, used:164 bytes (42.8%), free:220 bytes (57.2%), Heap size:220 bytes, Heap max single alloc:79 bytes ROM available:4096 words, used:4062 wo...
by Bobw
Sun Mar 16, 2014 4:45 pm
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

I have been playing with this off and on while time would permit. I contacted Honeywell the make of the HIH-4010 sensor, and with their help derived the following formula. hum = (((Readhum - 197) * 10) / 49) hum = the value or actual humidity that will be displayed Readhum = the ADC value as read by...
by Bobw
Tue Mar 04, 2014 5:37 pm
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

I decided to post my code that I have so far. There are several unused variables I have to check some various things in my testing. It will display the Humidity, temperature in F and the ADC value of the humidity sensor. hum = ((Readhum - 197) * 100) / (1023 - 532 ) My high number has changed from t...
by Bobw
Tue Mar 04, 2014 4:32 pm
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

A good night sleep can really clear the mind. To read humidity, you need to know the scale of the sensor in bits (0-1023). In the case of the HIH-4010 this is 0%=196 and 100%=812. With out a test chamber this is hard to verify so we have to rely on the DATA SHEET figures even though it does not give...
by Bobw
Tue Mar 04, 2014 7:11 am
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

Martin, I think we have been looking at this too technical. For Relative Humidity, It should never be more than 100%, and never less than 0%. The question for Honeywell would be: Does the HIH-4010 Conduct any less voltage at their stated zero point, and at 100% is that the maximum voltage it will co...
by Bobw
Mon Mar 03, 2014 2:44 pm
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

here is what I ended up with. Still not 100% sure if it is correct. I measure my voltage at 5.05 VDC with my Fluke meter. I adjusted my scale in Excel to reflect the extra 0.05 volts. Readhum is the ADC-sensor input. hum = ((Readhum - 197) * 100) / (1023 - 600 ) I think there will always be some err...
by Bobw
Mon Mar 03, 2014 4:57 am
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

Martin,

Sensor is working. Have it displaying ADC value along with Humidity.
Matches with my other instruments I have.
I did NOT apply any temperature correction. The unit will be indoors with a pretty constant temperature.
not sure about the high end 75+% think I am missing a number.
by Bobw
Sun Mar 02, 2014 9:22 pm
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

Martin,

The formula you gave resulted in 25% RH displayed.
by Bobw
Sun Mar 02, 2014 9:15 pm
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Re: Understanding a calculation

Jac & Martin OK, here is what I have come up with so far. Variables: Readhum set as int, hum set as int, Q set as int (in case I needed a temp storage) Readhum= ADCvalue Formula : hum = ((readhum - 196) * 100) / 616 Using excel 100% would= 3.964 volts or 812 of the 1024 steps. 812 (number of steps) ...
by Bobw
Sun Mar 02, 2014 6:29 pm
Forum: Flowcode V5
Topic: Understanding a calculation
Replies: 17
Views: 12579

Understanding a calculation

I am trying to understand the formula to calculate HUMIDITY I am using a Honeywell HIH-4010 humidity sensor. *** PLEASE DO NOT GIVE ME THE FORMULA *** It will not help me understand the numbers. Data Sheet: http://sensing.honeywell.com/honeywell-sensing-hih4010-4020-4021%20series-product-sheets-0090...
by Bobw
Thu Feb 27, 2014 4:14 pm
Forum: Flowcode V5
Topic: Help With Temperature
Replies: 12
Views: 8849

Re: Help With Temperature

Martin, Your formula works great!!!! Appears to be about +- .3 degrees compared with a calibrated thermometer I have here. If I could ask you to break down your formula so I can make sure I understand the actual numbers. What does the 88/10-576 all stand for? I think a basic mistake I was making was...
by Bobw
Thu Feb 27, 2014 6:34 am
Forum: Flowcode V5
Topic: Help With Temperature
Replies: 12
Views: 8849

Re: Help With Temperature

Martin, Thank you will give it a go. I do have a question about ADC VOLTAGE. If you try to read ADC voltage in the Simulator, it only displays whole numbers. 0 volts to 5 volts. I am hoping that in real life it will read 1024 steps (10 bit) of 0.0048828125 volts per step up to 5 volts. Should have b...
by Bobw
Wed Feb 26, 2014 3:13 pm
Forum: Flowcode V5
Topic: Help With Temperature
Replies: 12
Views: 8849

Re: Help With Temperature

I think my calculations may be still off. My temp sensor can go from -40C to +125C or 10.0mv per degree C. (yes I am using Fahrenheit but can convert it all later) That would = 165 steps. If I read the ADC as an int. I can get 1024 steps (0-1023) If I divide the ADC value(1024) by the sensor steps (...