Raspberry Pi (RPi) is a well-known single-board computer natively equipped with a Linux-based operating system, Raspbian, and a powerful programming language, Python. In this article, we propose an integrated project on physics and computer science exploiting RPi and Python: A set of lab activities, coding, and discussion related to the study of charging and discharging phases of a capacitor in an RC circuit. In our simple experiments, entirely computer-controlled, the RPi and Python scripts are used to: (i) apply a known constant voltage to the circuit at a desired time; (ii) measure the voltage on selected circuit elements as a function of time; (iii) evaluate and analyze experimental data. This approach is based on inexpensive hardware and open source software. It allows a hands-on experience with electric circuits and with dedicated examples of Python coding. The codes involve Python modules such as Numpy, Scipy, and Matplotlib that prove to be easy to use and efficient for our goals, supporting the choice of Python language for further study or research tasks.
Studying Physics, Getting to Know Python: RC Circuit, Simple Experiments, Coding, and Data Analysis with Raspberry Pi
Mandanici A.
Primo
Investigation
;Fiumara G.Investigation
;Mandaglio G.
Investigation
2021-01-01
Abstract
Raspberry Pi (RPi) is a well-known single-board computer natively equipped with a Linux-based operating system, Raspbian, and a powerful programming language, Python. In this article, we propose an integrated project on physics and computer science exploiting RPi and Python: A set of lab activities, coding, and discussion related to the study of charging and discharging phases of a capacitor in an RC circuit. In our simple experiments, entirely computer-controlled, the RPi and Python scripts are used to: (i) apply a known constant voltage to the circuit at a desired time; (ii) measure the voltage on selected circuit elements as a function of time; (iii) evaluate and analyze experimental data. This approach is based on inexpensive hardware and open source software. It allows a hands-on experience with electric circuits and with dedicated examples of Python coding. The codes involve Python modules such as Numpy, Scipy, and Matplotlib that prove to be easy to use and efficient for our goals, supporting the choice of Python language for further study or research tasks.File | Dimensione | Formato | |
---|---|---|---|
Studying_Physics_Getting_to_Know_Python_RC_Circuit_Simple_Experiments_Coding_and_Data_Analysis_With_Raspberry_Pi.pdf
solo utenti autorizzati
Tipologia:
Versione Editoriale (PDF)
Licenza:
Tutti i diritti riservati (All rights reserved)
Dimensione
715.99 kB
Formato
Adobe PDF
|
715.99 kB | Adobe PDF | Visualizza/Apri Richiedi una copia |
Pubblicazioni consigliate
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.