Reading Analogue Voltage signal using Arduino Due
hey everybody,
i'm using arduino due microcontroller frequency (clock rate) = 84 mhz
and i'm trying read voltage signal through normal socket (power frequency) = 50 hz through step down transformer ..
and need take 260 sample signals voltage sine wave .. !
so how manage frequency of microcontroller perform such task .. !
thanks lot ..![smiley :)](https://forum.arduino.cc/smileys/arduino/smiley.gif)
i'm using arduino due microcontroller frequency (clock rate) = 84 mhz
and i'm trying read voltage signal through normal socket (power frequency) = 50 hz through step down transformer ..
and need take 260 sample signals voltage sine wave .. !
so how manage frequency of microcontroller perform such task .. !
thanks lot ..
![smiley :)](https://forum.arduino.cc/smileys/arduino/smiley.gif)
you don't manage frequency of micro, manage frequency of readings. did figure of 260 come , on period need take readings ? give interval between readings can used in program.
look @ blinkwithoutdelay example program see example of using technique.
code: [select]
set start time using millis() or micros() appropriate
start of loop
if - start time >= reading interval
take reading
reset start time
end if
end of loop
look @ blinkwithoutdelay example program see example of using technique.
Arduino Forum > Using Arduino > Programming Questions > Reading Analogue Voltage signal using Arduino Due
arduino
Comments
Post a Comment