Kainka Burkhard - Arduino Measurement Lab - 2022.pdf

(12715 KB) Pobierz
Arduino Measurement Lab
Burkhard Kainka
Copyright © 2022 Burkhard Kainka
All rights reserved.
ISBN: 9798831847703
Independently published
Foreword
A well-equipped electronics lab is full of power supplies, measuring
devices, test equipment and signal generators. In addition, there are tools,
components and the many assemblies and projects that you are currently
working on. It can get crowded in the lab. Wouldn't it be better to have one
compact device for almost all tasks? All in one, small and versatile, and
also inexpensive and easy to procure.
After several attempts with other systems the choice fell on the Arduino
Nano. On this basis, a PC interface as versatile as possible for measurement
and control is to be developed. It simply hangs on a USB cable and,
depending on the software, forms the measuring head of a digital voltmeter
or PC oscilloscope, a signal generator, an adjustable voltage source, a
frequency counter, an ohmmeter a capacitance meter, a characteristic curve
recorder and much more.
The circuits and methods collected here are not only relevant for exactly
these tasks in the electronics laboratory, but many details can also be used
in completely different contexts. Often one encounters complex tasks in the
field of measurement technology during development work with
microcontrollers. In many cases, the methods from this book can then be
used. You have a starting point and can develop the software in the desired
direction.
Stay creative!
Burkhard Kainka
Software and more information about the book:
https://www.b-kainka.de/MeasurementLab.html
CONTENTS
1 Preparations
1.1 Choice of controller
1.2 The Arduino Nano
1.3 Voltage supply
2 Preliminary tests
2.1 Port outputs
2.2 Analog inputs and outputs
2.3 The serial plotter
2.4 PWM signal generator
2.5 A sawtooth generator
2.6 Direct digital synthesis
3 GCC programming
3.1 Fast port outputs
3.2 PWM output
3.3 Timer interrupt
3.4 Fast sine wave generator
3.5 AD buffering
4 The MSR Laboratory
4.1 Dual-channel DDS generator
4.2 Binary serial transmission
4.3 Frequency setting
4.4 Deflection times and dual-channel operation
4.5 Triggering
4.6 DC voltage output
5 Additional inputs and outputs
5.1 Phase adjustment of the DDS
5.2 Signal generator up to 8 MHz
5.3 Frequency measurement
5.4 Additional analog inputs
5.5 Capacitance measurement from 1 pF
5.6 Resistance measurement up to 1 MΩ
5.7 Resistance measurement from 1Ω
6 Measurements and experiments
6.1 Subsampling
6.2 Investigation at higher frequencies
6.3 Measurement on a synchronous signal
6.4 Frequency response of a low-pass filter
6.5 An LC low pass
6.6 LC resonance
6.7 Transistor test circuit
7 Firmware extensions
7.1 Alternative DDS functions
7.2 Reduced amplitude
7.3 Triangle and sawtooth
7.4 XY representation
7.5 Frequency sweep
7.6 Ramp function
7.7 Measurement of characteristic curves
8 Application examples
8.1 The emitter follower
8.2 Emitter follower as impedance converter
8.3 Sallen key filter
8.4 Beat generator
8.5 Operational amplifier
8.6 Voltage doubling
8.7 All-pass filter
8.8 Bandpass filter
Appendix
List of components used
1 Preparations
The first considerations for a universal measuring system went in the
direction of a digital PC oscilloscope combined with a signal generator. The
Zgłoś jeśli naruszono regulamin