Hi guys im an electrical engineering student and i am newbie at arduino. Can you guys help me out in producing high range capsense thank you
It'll be helpful if you explain what you really want.
I will make a sensor for an automatic brake system and to do that i need a high range sensor. I have searched about capaciflector but i dont know how to program it in arduino
wvmarle:
It'll be helpful if you explain what you really want.
...and that does not mean posting the same question twice, in different parts of the forum
Duplicate deleted.
Range in distance, range in detailed response, range in something else?
What do you have already, code and hardware wise?
What exactly do you want it to do?
A bit more than a one-liner would be very helpful. Consider us total noobs who have no clue of what you're doing.
That failing, a link to a high performance crystal ball, please. Those could come in very helpful with all this kind of posts.
Unless it's brakes for a slow wheelchair you should forget it. Electric field varies over time in the same object. With different objects moving in uncontrolled-situations traffic, what do you expect to know besides just when the touch is made?
Do you know what the ground strap under at least some cars does?
'student' implies you have people you are paying for to answer your questions. Why on Earth would you want our free help. Or conversely, why are you paying people when you can learn for free.
Paying for a piece of paper that says you know something means you don't make the terms.
I want to have a range of maybe 30 cm is it possible. Here is the sketch i am using
#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 total1 = cs_4_2.capacitiveSensor(30);
Serial.print(millis() - start);
Serial.print("\t");
Serial.println(total1);
delay(10);
I want to have a range of maybe 30 cm is it possible.
How does that relate to brakes? Depending on where someone grabs a pole, you decide how hard to slam on the brakes?
Talk about your project in more general terms. You are not charged by the word.
Good thing we will not test it in busy roads just one obstacle and we will attach it to an electric bicycle. Do you think the range of the sensor will range up to 30 cm. Or maybe i will give up this project so i can think a new one. Thanks
The sensor is connected to a relay that will trigger an electromagnetic brake attach to the trikes shaft. That's my plan but after some testing the sensor's magnetic field isn't stable and it can range up in just 3cm
For a 30cm range, why not use an ultrasonic sensor?
What, exactly, is the capacitive sensor going to be connected to? What does touching at 2 cm (from what?) mean, versus touching at 10 cm, 20 cm, 25 cm?
Ya ultrasonic is a great idea but ultrasonic sensors are common and my professor will not agree in using that. Do you think using capacitive sensing would be appropriate for braking systems?
Do you think using capacitive sensing would be appropriate for braking systems?
Personally, no. I can't imagine why where you grab the brake level matters. That is what we are trying to get YOU to explain.
If the idea is that the driver has limited grip strength, and touching something here means gentle braking is needed while touching there means that a dear just jumped in front of the vehicle, and we need to stop NOW, then say that.
Capacitive sensing over that distance is no problem as is proven by the Theremin which can be played from such a distance or maybe even more, at least that's what I've seen in videos of it being played. But it is detecting a quite well grounded and pretty conductive object: the performer.
I also don't really get what you're trying to do. Which in turn makes me wonder whether you yourself really know what you want to do. It appears to be related to obstacle detection - for which capacitive sensing is possibly the worst option, as it depends on the material the object is made of. If non-conductive, it'll be really hard to detect that way, if possible at all.
30cm is very possible. However if that is 30cm obstacle detection then your vehicle better be slow to make the stop.
I started here though the page has developed since then:
https://playground.arduino.cc/Main/CapacitiveSensor?from=Main.CapSense
This Theremin method might get you longer range with a bigger antenna.
http://interface.khm.de/index.php/lab/interfaces-advanced/theremin-as-a-capacitive-sensing-device/
Capsense won't give you reliable, reproducible, operation.
And attaching some sort of analog control, with a sensitivity to range, to a relay is the second stupidest thing I've heard today. It's like turning a gas pedal into a binary on/off operation. Your understanding is clearly lacking and you're shotgunning every whimsy of an idea against a wall and expecting us to show you what sticks.
Find a new project. Something that makes sense would be a good direction.
No one here believes your teacher would say the ultrasonic is 'too common. Your belief is yours alone and frankly I would stop using it as a primary source for reality.
Sensitive capacitance sensor.......
Can be done - as in a Theremin as mentioned above. Look it up.
Not very stable.
But what happens if it rains?
Collision avoidance radar has been researched for years - but the technology (at 77GHz typically) is neither simple nor cheap.
Try a microswitch on a (flexible) stick.
Allan
ps - if you stop a bike at say 10mph (13fps) in 30 cm (1ft) that will imply a decceleration of about 13G.
it''ll throw the rider off - supposing that bike brakes or tyre grip are that good, which I doubt.
Have fun!
and survive..........
INTP:
Capsense won't give you reliable, reproducible, operation.
Not as a distance sensor. It gets pretty reliable as to touch vs not-touch though and can give a vague something is there detection but again electrical fields in objects (people, cars...) change and ground is relative, vague is doing good!
If everyone else uses the ping sensors which don't work well on fuzzy sound-absorbers, my wool shirt just eats the sound, my hair also gives no return detected. Would a fur or fleece coat register?
A full suite of detectors including image processing seems to be needed in the real world.
If a bot crawls around really slow it could probably avoid people based on cap sense detection. Operable word is crawl.