author
2Instructables33,797Views10CommentsJoined April 18th, 2015

Tell us about yourself!

Complete Your Profile

Achievements

10K+ Views Earned a bronze medal
  • pinodisco commented on pinodisco's instructable Infrared Tachometer Using Arduino2 months ago
    Infrared Tachometer Using Arduino

    Hi, i am not into this tech things for a while but i hope i can still give a good, understandable and correct answer.So, basically my method is by capturing the current arduino internal time, like its stopwatch counting elapsed time of how long this arduino has been working since it powered up (in microsecs, 1/1000000s) using:currentTime = micros();Then I calculate time difference between 2 subsequent sensors "meet-up" (as i use 1 hole then 2 meet-ups mean 1 rev):diffTime = currentTime - prevTime;Next I calculate the rps, why i use 1000000 because i capture the arduino internal time in microsecs. So, suppose the previous sensors meet-up (when the hole allowed them to see each other) was at the time of arduino stopwatch read 200000 microsecs and then currently it reads 400000 w...

    see more »

    Hi, i am not into this tech things for a while but i hope i can still give a good, understandable and correct answer.So, basically my method is by capturing the current arduino internal time, like its stopwatch counting elapsed time of how long this arduino has been working since it powered up (in microsecs, 1/1000000s) using:currentTime = micros();Then I calculate time difference between 2 subsequent sensors "meet-up" (as i use 1 hole then 2 meet-ups mean 1 rev):diffTime = currentTime - prevTime;Next I calculate the rps, why i use 1000000 because i capture the arduino internal time in microsecs. So, suppose the previous sensors meet-up (when the hole allowed them to see each other) was at the time of arduino stopwatch read 200000 microsecs and then currently it reads 400000 when the sensors now meet again. That means it took 400k-200k = 200k microsecs for the hole to make 1 revolution. Therefore, in 1 sec, which is 1000000 microsecs, the number of rev is:rps = 1000000/diffTime;Because 1 rpm is 60xrps, then:rpm = 60000000/diffTime;(I could have written rpm = 60*rps, don't know why i didn't do that :))As for the following lines, i use millis() to capture arduino's internal time in millisecs. Why didn't I use the micros()? First because this routine is only for printing purpose, doesn't need to be tight. Like if i want to print 5 data every sec then i use interval of 200millisecs. If i use interval of 1millisecs, i will get 1000 data per sec, which is too much. Second, i just wanted to try that function :)Then why I use micros for rpm calculation? Because it is still possible for an electric motor to run more than 1000revs per sec (which means 60000 rpm or +) - not that motor I used in this instructable, but i just want to make my code universal. If a motor has 1000 rev/sec, the sensors meet every 1 millisecs (which millis() can still capture the time difference), but once it exceed 1000, millis() can no longer accomodate. Thus i use micros()I know my answer is probably too long while you can already just get the point and continue working after reading first 5 lines, but yeah i just keep writing and writing.. Hope my answer helps. Cheers. PD.

    View Instructable »
  • pinodisco commented on usbdevice's instructable Built-in Tire Inflator for Motorcycle1 year ago
    Built-in Tire Inflator for Motorcycle

    nice project and nice clean-look matic, lanjut gan.

    View Instructable »
  • pinodisco commented on Extraordinary Things's instructable Proximity Sensor1 year ago
    Proximity Sensor

    cool, great workmanship that 3d printed shell makes it look super fine, not just another experimental electronics stuff with tangled wires :)

    View Instructable »
  • pinodisco commented on pinodisco's instructable Infrared Tachometer Using Arduino1 year ago
    Infrared Tachometer Using Arduino

    sorry i havent been around for a while (it's a super long while actually, haha). other than money, knowing that others find my simple writings useful makes me really happy :) actually i am going to make a project that involves a sort of vehicle speed sensor also, just like yours i will use my 16x2 lcd, thanks for sharing your reference that would be useful for sure :)

    View Instructable »