Show Posts
Pages: 1 2 [3]
31  Using Arduino / Project Guidance / Re: capacitive sensing on: October 26, 2012, 04:37:33 pm
well,thats the main problem, we are not allowed to insert anything inside the fuel tank,(rule smiley-cry)...so i finally decided to use capacitive sensing.
i was hoping that you would help me out.
32  Using Arduino / Project Guidance / Re: capacitive sensing on: October 26, 2012, 04:21:51 pm
i dont know what you are saying,but here is the ouput in the serial monitor:
40
40
41
50
48
48
43
42
51
...so on.is that what you wanted?
33  Using Arduino / Project Guidance / Re: capacitive sensing on: October 26, 2012, 04:09:51 pm
what i meant was ,that the capacitance does not change.i know that the "same data" is not relevant,but that is the problem.
34  Using Arduino / Project Guidance / capacitive sensing on: October 26, 2012, 03:48:00 pm
hey all,
i want to measure the fuel in a fuel tank and i am using a capacitive sensor through arduino.
So , i have 2 steel  plates and have connected 1 to the ground and the other to 4th pin.and a net resistance of 560K,from pin 4 to pin 2.
here is the code
Code:
#include <CapacitiveSensor.h>
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2);
void setup()
{
  cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);
  Serial.begin(9600);
}
void loop()
{
  long start = millis();
  long total = cs_4_2.capacitiveSensorRaw(500);
  Serial.print(millis() - start);
  Serial.println(total);
  delay(100);
}
 

the serial monitor is printing the same data when the plates are placed anywhere,in air,in a container,full or empty.
Pages: 1 2 [3]