Easy Way to Create CSV Files with Arduino Uno & Python (Save Data)

  Рет қаралды 61,247

Learn Robotics

Learn Robotics

Күн бұрын

Пікірлер: 91
@LearnRobotics
@LearnRobotics 2 жыл бұрын
Interested in getting a Career in Robotics? Join my robotics career coaching program: join.learnrobotics.org/start/?
@sumitsingh-fm2nz
@sumitsingh-fm2nz 3 жыл бұрын
I was searching for 4 hours how to save data from arduino to csv and now I got it... Thank you :)
@jrcuosbn
@jrcuosbn 10 ай бұрын
This was exactly what I was looking for. Awesome!!!!
@MartinWeiss1255
@MartinWeiss1255 3 жыл бұрын
You made my engineering project work!! Thank you for this video!!
@LearnRobotics
@LearnRobotics 3 жыл бұрын
You are welcome!
@deldridg
@deldridg 4 жыл бұрын
Thank you Liz for your well produced tutorial - lovely presentation style too. I'm returning to electronics after being a hobbyist as a kid - now doing fun stuff with my son. We're building a wearable Arduino heart rate sensor (possibly also with GPS and 3D accelorometer - MPU-6050 etc.) with logging to an SD card for a school science fair project. We'll be testing his heart rate response to various types of physical exertion and analysing and presenting the findings. You've just saved me a ton of mucking around! Cheers and thank you from Sydney, Aust - Dave and young Will
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Love our friends in Sydney! Beautiful city. Glad this tutorial helped. Please keep us posted on how your project turned out. We're always impressed with the projects our students make!
@deldridg
@deldridg 3 жыл бұрын
@@LearnRobotics Hey there! Thanks for your reply. If you are interested, here's a link to my son's video on his Arduino project. He's 10. kzbin.info/www/bejne/ooXLfamDgZuIoKc Hope you enjoy it - your video really helped us and he got a stunned response from his school - they were amazed. Many thanks, Dave
@5coffeebreak2
@5coffeebreak2 Жыл бұрын
many thanks, thanks a lot ... ... not enough to appreciate your effort and your useful information, please keep going and waiting for more tutorials like this
@LearnRobotics
@LearnRobotics Жыл бұрын
Appreciate the kind words! check out our blog: www.learnrobotics.org/blog/?
@tildebengtsson865
@tildebengtsson865 3 жыл бұрын
Huge thank you, this will help me a lot with my Master Thesis!
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Let us know how it goes!
@henka4065
@henka4065 Жыл бұрын
Now this is what i wanted to see.
@gustavarium
@gustavarium 4 жыл бұрын
I just made a great project with your help! Thank you!
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Great job!
@tomoguitaro
@tomoguitaro 4 жыл бұрын
You are a goddess, I have been trying to bring Arduino data into excel for years and it just never really worked out but your video is straight forward and informative, thank you!
@jonathaniskandar8817
@jonathaniskandar8817 2 жыл бұрын
Thank you Liz for your well content to produced, 🙏
@Kamal_Kalyan887
@Kamal_Kalyan887 2 жыл бұрын
Wonderful you are. Please do make more of these kind 😊🙏🏻 thank you so much
@RaphaCruz
@RaphaCruz 4 ай бұрын
Hey Liz, thanks for the tutorial. The procedure to purchase the code is not working.
@LearnRobotics
@LearnRobotics 4 ай бұрын
You're welcome! I fixed the link for you. As a thank you, use the code LIZYT to save $10: learnrobotics.ck.page/products/arduino-data-logger?promo=LIZYT
@jlearnicap911
@jlearnicap911 3 жыл бұрын
Thank you, clear & applied for 100%
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Excellent!
@standarde878
@standarde878 6 ай бұрын
Thanks for the video! I was wondering how to take my Arduino and code for a DAC. I know some boards had a built in DAC and some don't. I'm not sure about mine, I have an Uno that came with the beginners kit. Could you point me in a direction here? I need to take a PWM input and convert it to analog out. I can't use a low pass filter because the output needs to be clean and quick to settle. So I figured a DAC would be best.
@LearnRobotics
@LearnRobotics 5 ай бұрын
Sure! You can use an external DAC module like the MCP4725 with your Arduino Uno, which connects via I2C and is easy to control using libraries like the Adafruit MCP4725 library. This will give you a clean and quick analog output without needing a low pass filter.
@standarde878
@standarde878 5 ай бұрын
@@LearnRobotics do you know what the frequency range is on the mcp4725? Also, being new to these type of circuits I'm not sure, but I am controlling analog output with PWM input, Not frequency, correct?
@grimmwits
@grimmwits 3 жыл бұрын
Doing this on Windows, arduinoserial module works just fine, up until I attempt to execute the code, and I am met with this error: ModuleNotFoundError: No module named 'termios' I looked it up, and apparently the termios module is unique to Linux from what I've read, and I guess some variant exists on macOS. Is there any fix for this on Windows, or will I have to use an emulator to run this code?
@josephdaquila2479
@josephdaquila2479 9 ай бұрын
So you could have this running as a logging program and some other code deployed to the firmware of the arduino, right?
@LearnRobotics
@LearnRobotics 8 ай бұрын
Yes
@josephdaquila2479
@josephdaquila2479 8 ай бұрын
@@LearnRobotics thank you learn robotics!
@stifenjans4342
@stifenjans4342 4 жыл бұрын
data log thumbnail is interesting😄
@JaviBt4
@JaviBt4 4 жыл бұрын
Crystal clear! Thank you
@LearnRobotics
@LearnRobotics 3 жыл бұрын
You're welcome!
@chamikamac
@chamikamac 4 жыл бұрын
this video is great 👍👍
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Thanks! 😃
@DIYRobotGirl
@DIYRobotGirl Жыл бұрын
Can we put data angles in serial port from mg996 servos then put the servo angles in excel and then run those angles automated back to arduino. If so can it be done in state machine with millis timer and record wait times? This is with desire to run to arms and kneck 2 axis joint of a humanoid robot in recorded kinematics from pentiometers.
@LearnRobotics
@LearnRobotics Жыл бұрын
Yes - I have an example of this using Raspberry Pi on my blog: www.learnrobotics.org/blog/raspberry-pi-servo-motor/
@boubacarsantara8085
@boubacarsantara8085 4 жыл бұрын
I did it Glade ! Thank you!
@davebrown5850
@davebrown5850 4 жыл бұрын
Why would I be getting an attribute error for ser=serial.Serial(port="/dev/ttyAMC0") module 'serial' has not attribute 'Serial' ??
@nupurpurohit6841
@nupurpurohit6841 4 жыл бұрын
can u pls provide ur code? It's showing an error :: serial.Serial() is not a valid attribute
@SeetharamN
@SeetharamN 4 жыл бұрын
Hey Nupur, make sure you have the line. Import serial In the python file. Its a library. Hope this helps
@waleedaiad3411
@waleedaiad3411 2 жыл бұрын
How can i use hc-12 with arduino using python language?.
@davebrown5850
@davebrown5850 4 жыл бұрын
Why would I be getting an attribute error for ser=serial.Serial(port="/dev/ttyAMC0") module 'serial' has not attribute 'Serial' ??
@halifimuhamad
@halifimuhamad 4 жыл бұрын
try to install pyserial package. run cmd pip3 install pyserial
@jiafu6784
@jiafu6784 3 жыл бұрын
Is this possible for logging data from different serial ports simultaneously?
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Possibly, if you're using Python and define different Serial ports. In the Arduino IDE, nope. Usually only lets you use one port at a time
@geoffwade8144
@geoffwade8144 4 жыл бұрын
Well done, thank you.
@AbhaySingh-fv7or
@AbhaySingh-fv7or 2 жыл бұрын
you are glamorous.
@ashutoshdash7860
@ashutoshdash7860 3 жыл бұрын
Can you please help to add the time stamp corresponding to each sensor reading while storing in CSV file in python.
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Read the comments on our blog for the answer to this: www.learnrobotics.org/blog/arduino-data-logger-csv/
@henishviradiya1468
@henishviradiya1468 4 жыл бұрын
Thanks for this, But in second time can we remove the Label of potentiometer and other stuff??
@LearnRobotics
@LearnRobotics 4 жыл бұрын
Yes you can
@cryptorcrypt1142
@cryptorcrypt1142 2 жыл бұрын
not sure if you still comment here but i don't get the second row, I only get a \ at the end. Any solutions?
@LearnRobotics
@LearnRobotics 2 жыл бұрын
Could be a number of things including thresholds (readings not having enough variability), data collection (didn't collect enough samples), or number of samples (set in python file) for example. You'll have to do some debugging to figure out what exactly it is. If it works in Arduino via Serial Monitor, then it's probably something wrong with your Python file writing to a CSV (using the Serial library).
@Taran72
@Taran72 4 жыл бұрын
WOW! great tutorial: I wouldn't imagine it was so simple. Thank you for explaining everything step by step! My question is: can we view the data in Python and save it to csv at the same time? I will check your channel for more tutorials you may have already answered my question....
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Yes, you can. Just add print statements in the Python file and the data will show up in the terminal when you run the script
@Taran72
@Taran72 3 жыл бұрын
@@LearnRobotics , thanks!
@rafaelrosenberg5214
@rafaelrosenberg5214 3 жыл бұрын
awesome! great video! thanks!
@juneshgautam8655
@juneshgautam8655 2 жыл бұрын
You collected only 10 samples, what should I do to gather data every 10 seconds, or any given duration?
@LearnRobotics
@LearnRobotics 2 жыл бұрын
Use a 10-second delay in loop.
@juneshgautam8655
@juneshgautam8655 2 жыл бұрын
@@LearnRobotics NO, I want to keep on adding data on some files. Like every 10 seconds, I would like to record that Arduino data on some file.
@LearnRobotics
@LearnRobotics 2 жыл бұрын
@@juneshgautam8655 Same comment as before. You'd have to try and test it out. Unfortunately, I don't debug custom projects in the comment section of my videos. You can visit learnrobotics.org/consult and request a consult if you need personalized help.
@mohammedsiddig7975
@mohammedsiddig7975 3 жыл бұрын
it is really helpful thanks ever
@garvasrani8410
@garvasrani8410 Жыл бұрын
Hi can you please update the code link. Its is not available anymore. Thanks!
@LearnRobotics
@LearnRobotics Жыл бұрын
go to my blog for the most up-to-date links: www.learnrobotics.org/blog/arduino-data-logger-csv/
@Mohamm-ed
@Mohamm-ed 3 жыл бұрын
Thanks very much for wonderful tutorial. Can I upload the csv to any iot cloud? I want to make data logger to store the data from a sensor every 15 seconds in sd card and then send the data for a whole day to iot cloud like thingspeak or something else. I need this very much
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Yes, you can
@Mohamm-ed
@Mohamm-ed 3 жыл бұрын
@@LearnRobotics how?
@LearnRobotics
@LearnRobotics 3 жыл бұрын
@@Mohamm-ed Try these two articles on our blog: www.learnrobotics.org/blog/how-to-fetch-data-from-dweet.io-using-python-tutorial/ + www.learnrobotics.org/blog/create-a-database-for-iot-using-dweet-io-tutorial/
@shahnaman6834
@shahnaman6834 2 жыл бұрын
How we can do this wireless
@LearnRobotics
@LearnRobotics 2 жыл бұрын
Use a wireless controller or BT dongle instead of USB
@aakashdewangan7313
@aakashdewangan7313 3 жыл бұрын
do you use MATLAB/Simulink with Arduino?. It will be great if you make it for control system designing. Let me know if you are planning to do so, recently.
@LearnRobotics
@LearnRobotics 3 жыл бұрын
Nope - why do you need MATLAB? Is there a particular mathematical module you need from a sensor? You can get basic visualization from the Arduino IDE itself - or just read things serially into Python!
@tecclaudioperez
@tecclaudioperez 3 жыл бұрын
The font in your screen is too small, next time make it bigger please, for blind people like me. Thanks.
@rverm1000
@rverm1000 3 жыл бұрын
excellent!
@rverm1000
@rverm1000 3 жыл бұрын
ive been studing/learning python for 2 years now. it makes it easier to write arduino programs. im going make a mux multimeter and display it with python.
@dany241
@dany241 3 жыл бұрын
Thank you
@manfredbogner9799
@manfredbogner9799 7 ай бұрын
Sehr gut
@Avissarin
@Avissarin 2 жыл бұрын
You can tell this was done by a woman. The wires are all nice and twisted together, men don't do that, we throw it together then complain that the wire keeps falling out.
@LearnRobotics
@LearnRobotics 2 жыл бұрын
lol spot on
@rverm1000
@rverm1000 3 жыл бұрын
my data log is coming up a little different. b`511,576 \
@cryptorcrypt1142
@cryptorcrypt1142 2 жыл бұрын
im getting the same, did you find a solution to this?
@rverm1000
@rverm1000 2 жыл бұрын
@@cryptorcrypt1142 ive done a thousand things since then. have no idea
@cryptorcrypt1142
@cryptorcrypt1142 2 жыл бұрын
@@rverm1000 i figuered it out
@mohammedsiddig7975
@mohammedsiddig7975 3 жыл бұрын
the song i wounder the name but i founf it
@engrtehniyat1162
@engrtehniyat1162 2 жыл бұрын
please give coding in discription box
@LearnRobotics
@LearnRobotics 2 жыл бұрын
There's a link to the full tutorial on our blog and you can find the source files there.
@josephocampo
@josephocampo 4 жыл бұрын
Nice
@gustavodearaujo8108
@gustavodearaujo8108 3 жыл бұрын
THANKSSSSSS
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
#9 Arduino Data Logger with Direct Input to Excel
10:12
Andreas Spiess
Рет қаралды 130 М.
Google Sheets API Automation in Python
26:36
NeuralNine
Рет қаралды 97 М.
How to process Arduino data in Python
7:33
Curio Res
Рет қаралды 30 М.
SPI: The serial peripheral interface
33:00
Ben Eater
Рет қаралды 703 М.
Matplotlib Tutorial (Part 9): Plotting Live Data in Real-Time
20:34
Corey Schafer
Рет қаралды 421 М.
Using SD Cards with Arduino - Record Servo Motor Movements
31:53
DroneBot Workshop
Рет қаралды 203 М.
Python Tutorial: Working with JSON Data using the json Module
20:34
Corey Schafer
Рет қаралды 1,1 МЛН
Using Serial.read() with Arduino | Part 1
10:30
Programming Electronics Academy
Рет қаралды 140 М.
Are PIC Microcontrollers Any Good? - Beyond Arduino #4
21:07
Sine Lab
Рет қаралды 49 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН