Introduction to Arduino
Learn C++ programming with Arduino microcontrollers for neuroscience experiments, from sensors to efficient real-world code and version control.
Author
Arduino microcontrollers are commonly used in neuroscience experiments as sensors or input devices; for example, to record a subject’s decision via a button press. The easy-to-learn Arduino ecosystem offers a fantastic opportunity to sharpen your programming skills while electrifying the real world with your creations! In this three-day course, we will learn how to write clearly-structured and easily-understandable programs in C++ that run on Arduino microcontrollers. You will learn C++ program structure and concepts, process flow control and debugging. We will show you how to use Github version control to easily track changes made to your code and to collaborate seamlessly with others. On the last day of the course, we’ll invite you to join us in Bonn at our Makerspace to work with Arduino devices, exploring along the way how to write fast, efficient code in real-world situations, including an introduction to the techniques of multiprocessing and memory optimisation. By the end of this course, you will be able to build your own Arduino sensors, expanding your experimental data collection opportunities and connecting with the open-source maker world in science.
Credits
Installation
To run the course materials on your own machine, it is recommended that you:
- Install VSCode as your editor
- Install pixi or alternatively conda to create virtual Python environments (see the lessons on environment and package management)
- Create a dedicated folder for this course and install the virtual environment:
Download the pixi.toml file and install the environment:
pixi install --manifest-path pixi.toml
pixi shellDownload the environment.yml file and install the environment:
conda env create -f environment.yml
conda activate arduino