problem with loops and voids and saving outputs in a SD card

Ok :slight_smile: , I am trying to save the values PWM (which active the servo) in a SD card (module arduino SD card) like text (.txt format or .csv format) an the same way i am trying to save the analog outputs from the potentiometer. i am not good programator, so idont know if my code has sense. (sorry for my english, i hope you understand me).