Skip to Content
Python Programming for Arduino
book

Python Programming for Arduino

by Pratik Desai
February 2015
Intermediate to advanced
400 pages
9h 49m
English
Packt Publishing
Content preview from Python Programming for Arduino

Storing Arduino data in a CSV file

In the previous two sections, you learned methods to store values in a CSV file. Although the data required for the file was already initialized in the code, the same code could be modified to store Arduino input data.

To begin with storing Arduino data, let's create a circuit that produces these values for us. We used a motion sensor in the project of Chapter 3, The First Project – Motion-triggered LEDs, and a potentiometer in the exercise of Chapter 4, Diving into Python-Arduino Prototyping. We will be using these two sensors to provide us with digital and analog input values respectively. To develop the circuit required for this exercise, connect the potentiometer to the analog pin 0 and the PIR motion sensor ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Programming with Raspberry Pi

Python Programming with Raspberry Pi

Srihari Yamanoor, Sai Yamanoor

Publisher Resources

ISBN: 9781783285938Supplemental Content