Kapag ang value ng potentiometer ay naging greater than 500 ng tatlong beses sa loob ng 10 secs. Tsaka po iilaw ang LED.
Nalilito po kasi ako sa millis() function. Sana po may makatulong
CODE: You do not have permission to view the full content of this post.Log in or register now.
dapat po ba kunin yung peakValue, lastpeakValue, time in ms, tapos yung peakCount? yun lang ba yung kukunin, pano po yun peakValue < 500 irerecord din yun?
dapat po ba kunin yung peakValue, lastpeakValue, time in ms, tapos yung peakCount? yun lang ba yung kukunin, pano po yun peakValue < 500 irerecord din yun?
Yes po kukunin po ang time in ms gamit po ang millis() function
Basta po kapag ang peakValue ay umabot ng 500 pataas 3 times in 5 seconds iilaw po ang LED.