I am starting with arduino and I need to do a rotation sensor with a inductive sensor. I never ever program before and I would like to know how I can started.
My program needs to read a rotation in RPM or RPS and write a txt with this. If I can I would like to transfer the data to serial port.
Sorry we need a bit more information than this,
What is the sensor? A link perhaps.
Exactly what does "and write text with that" actually mean.
What sorts of speeds are you expecting to read?
What equipment do you have?
What environment will it be in?
If you have ever programmed before start off doing some tutorials before trying something new.
Wowi last used those sensors back in 1968. And one thing I did with them was make a RPM sensor, so yes they will work at that sort of speed.
The arduino can not write text files because it has no place to write them.
Basically get the sensor to trigger an interrupt on pin 2 or 3 and then have the interrupt service routine make a note of the millis counter each time it is triggered. The time between pulses then gives you the rotation speed.
There are lots of examples if you just google arround.
I did the sensor and it is work, but my program only show the frequency like a integer number. I need the program shows the decimal part of frequency, anyone can help me?