当前位置: X-MOL 学术Comput. Sci. Eng. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Studying Physics, Getting to Know Python: RC Circuit, Simple Experiments, Coding, and Data Analysis With Raspberry Pi
Computing in Science & Engineering ( IF 2.1 ) Pub Date : 2021-02-26 , DOI: 10.1109/mcse.2020.3037002
Andrea Mandanici 1 , Salvatore Alessandro Sara 1 , Giacomo Fiumara 1 , Giuseppe Mandaglio 1
Affiliation  

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.

中文翻译:

学习物理,了解Python: 钢筋混凝土 Raspberry Pi的电路,简单实验,编码和数据分析

Raspberry Pi(RPi)是一台著名的单板计算机,其本机配备了基于Linux的操作系统Raspbian和强大的编程语言Python。在本文中,我们提出了一个利用RPi和Python的物理和计算机科学综合项目:一组实验活动,编码以及与RC电路中电容器的充电和放电阶段研究有关的讨论。在我们完全由计算机控制的简单实验中,RPi和Python脚本用于:(i)在所需时间向电路施加已知的恒定电压;(ii)测量随时间变化的所选电路元件上的电压;(iii)评估和分析实验数据。这种方法基于廉价的硬件和开源软件。它使您可以亲身体验电路和专用的Python编码示例。这些代码涉及Python模块,例如Numpy,Scipy和Matplotlib,它们证明易于使用且对我们的目标有效,支持选择Python语言进行进一步的研究或研究任务。
更新日期:2021-03-02
down
wechat
bug