Show Posts
Pages: 1 [2] 3
16  Topics / Robotics / Re: How to find the Last program loaded in Arduino ATMEGA328p on: October 28, 2012, 03:24:18 pm
Did you save your program before uploading?..
17  General Category / General Discussion / Simulation on: October 28, 2012, 03:14:35 pm
Hey,I was wondering if there is any simulation software for arduino,like proteas for 8051 ?
18  Using Arduino / Project Guidance / Re: capacitive sensing on: October 27, 2012, 03:21:08 pm
cool.ill try it out tomorrow and post the results here.
19  Using Arduino / Project Guidance / Re: capacitive sensing on: October 27, 2012, 02:59:08 pm
sorry. smiley-sweat
well here is the picture,modified by paint..i cant post the real pics,as the tank is locked up in the workshop.sorry
20  Using Arduino / Project Guidance / Re: capacitive sensing on: October 27, 2012, 12:56:20 pm
i used paint to show how much of tape i have used,the same amount has been used on the opposite end.
21  International / India / anybody selling their unos? on: October 27, 2012, 12:06:15 pm
anybody here selling their unos?..please do tell me if u are.
22  International / India / Re: Who are you? Where are you located? on: October 27, 2012, 12:02:37 pm
hey all,i am techra from new delhi,india.
working on making a DAQ for a FSAE car.
hope to do more unique projects later on.been following arduino for a year and a half now. smiley
23  Using Arduino / Project Guidance / Re: capacitive sensing on: October 27, 2012, 11:38:45 am
Code:
#include <CapacitiveSensor.h>
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2);

long total;
void setup()
{
  cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);
  Serial.begin(9600);
}
void loop()
{
  long start = millis();
  total = cs_4_2.capacitiveSensorRaw(500);
  Serial.print(millis() - start);
  Serial.println(total);
  delay(100);

}
 
24  Using Arduino / Project Guidance / Re: capacitive sensing on: October 27, 2012, 11:33:07 am
maybe the timeout is too small?
25  Using Arduino / Project Guidance / Re: capacitive sensing on: October 27, 2012, 11:27:38 am
Yes.Unfortunately,one has to insert it into the tank.Weird rules but i have to follow them. smiley-neutral

And yeah,the sensor is working now, used aluminium tape. but the resolution is really crappy.
full tank- output is fluctuating between 5000-6000, which is ok.i can use constrain function later.
half tank- nothing yet,same values. smiley-confuse
quarter tank - now some change,show about 4000-4500 now.
almost empty-suddenly decreases from 4000 to about 300,the 150 and then 30-40...which is ur capacitance between 2 metal plates with air as an dielectric.

how can i increase the resolution?...should i increase the taping?...or increase the timeout value?

this is almost same as my fuel tank:
Briggs and stratton fuel tank.

http://www.allpartsinc.com/mmAllParts/Images/799863_01.jpg

26  Using Arduino / Project Guidance / Re: capacitive sensing on: October 27, 2012, 02:53:49 am
peterH,
the plates are outside the tank,and the tank is heavily sealed..so i dont think anything bad would happen.And yeah,people have used capacitive sensing for measuring fuel levels,but its not common...and as its a rule,we have to follow it,or not have a fuel gauge...
27  Using Arduino / Project Guidance / Re: capacitive sensing on: October 27, 2012, 02:50:16 am
yeah,i know how a capacitor works,and the tank is made of plastic,not metal.the di electric constant will change as the fuel level changes,as air will take its place,and the distance also does matter as capacitance = episilon x area/distance...so more the distance less the capacitance,so,my main question now is,will it be able to detect capacitance when the plates are seperated by 15cm or so...or should i increase the resistor value for a larger resistance?
28  Using Arduino / Project Guidance / Re: capacitive sensing on: October 26, 2012, 05:12:26 pm
well.i could do that,but my fuel tank is a 5l one,the distance between the plates does  matter right?...i dont have any pics now,ill try to up load them asap, but if i attach two plates or pcb's or aluminium sheets on the opposite ends...the distance between the plates would be at least 15-16 cm....
But there are 3 holes drilled at the bottom of the tank,that can be used for placement...if i insert some kind of steel tube or something like that...will it work?..the distance between any 2 holes is about 2-3 cm ..

and i was wondering,if by connecting a 5v supply to one plate of the capacitor and taking the other one to an analog pin,..cant i just get the voltage output directly?..and i can then divide it by 1024..and do the required calculations..but i was just wondering this..

this may sound silly..but can u explain me how exactly capacitive sensing lib works,...i am using it,but with the help on line..i still dont understand how it works.?
29  Using Arduino / Project Guidance / Re: capacitive sensing on: October 26, 2012, 04:51:46 pm
and when the capacitor is removed its showing the values within 40-50...are the wires themselves acting as capacitors with air as a di electric??
30  Using Arduino / Project Guidance / Re: capacitive sensing on: October 26, 2012, 04:49:18 pm
ok...i have a capacitor of value 10 micro farad, this is the output:
194944
194964
204895
184937
194938
184944
204918
194936
194923
184924
194934
194938
204910
Pages: 1 [2] 3