Python 3 Write Sensor Data to CSV

preview_player
Показать описание
Writing data from a Raspberry Pi sensor into a spreadsheet (.csv file).
Рекомендации по теме
Комментарии
Автор

Hi. Im using a distance sensor like you did but in my case im writing sets of data into the csv file. Im wondering if its possible to separate the sets of data into columns ie; 1st set of data on the 1st column, 2nd set on the 2nd column and so on.

fredericoyj
Автор

nice simple video

I want to ask some questions regarding it :
1- let's say I want to record sensor data in CSV file on RPI but having multiple columns ( eg Voltage, current, power, timestamp etc), how can I achieve this?
Also, what if I ssh into pi using kitty and open that excel file to see data being added, will it interrupt/break the code or not?I am talking about a case where data is either recorded for a longer period of time for eg 2 hours or a day etc.

2- when creating a csv file, can I specifically allocate a location in the pi directory where I want to save data.I know we can later move the file to another location but can we tell this in the code at the first instant we make a new CSV file?

thanks, have a nice day :)

NawtieBoy
Автор

I have two sensors and i want to be sure they measure to exact the same time. for example temperature and sun intensity. is there any clock i could import?

bransen
Автор

Hi i am wrintig the data but i cannot locate the file. i dont know where it is saved or created

xxainraza
Автор

I'm getting an Error : newline is invalid keyword argument for this function.

sakthi
Автор

Hi sir, may i know what is the cd gits?

hs-yvkw