Use data on SD card for controlling a servomotor
i retrieve data recorded on sd card using microsd shield (i use sdfat library ).
these data in fact numbers between 0 , 1024 obtained sensor. want them , controlling servomotor, yet can't it.
i think i'm stuck because data on sd card automatically of type char, , servomotor request type int.
do have idea me ? thank !
these data in fact numbers between 0 , 1024 obtained sensor. want them , controlling servomotor, yet can't it.
i think i'm stuck because data on sd card automatically of type char, , servomotor request type int.
do have idea me ? thank !
quote
do have idea me ?
post code have reading data sd card.
look @ documentation atoi().
Arduino Forum > Using Arduino > Storage > Use data on SD card for controlling a servomotor
arduino
Comments
Post a Comment