The Arduino-Inside Measurement Lab
An 8-in-1 test & measurement instrument for the electronics workbench
By Burkhard Kainka
Description of cover image: The cover features a close-up view of an Arduino board connected to a computer via USB. Behind it, a green grid pattern is overlaid with glowing yellow and blue oscilloscope-like waveforms, suggesting the instrument's capabilities. A small window displaying a digital oscilloscope interface with a waveform is also visible.
Chapter 1: Preparations
1.1 Choice of the Controller
1.2 The Arduino Nano
1.3 Supply Voltage
Chapter 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
Chapter 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
Chapter 4: The 'MSR' Laboratory
4.1 Two-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
Chapter 5: Additional Inputs and Outputs
5.1 DDS Phase Adjustment
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 Ω
Chapter 6: Measurements and Experiments
6.1 Subsampling
6.2 Examination at Higher Frequencies
6.3 Measurements 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
Chapter 7: Firmware Extensions
7.1 Alternative DDS Functions
7.2 Reduced Amplitude
7.3 Triangle and Sawtooth
7.4 X-Y Representation
7.5 Frequency Sweep
7.6 Ramp Function
7.7 Measurement of Characteristic Curves
Chapter 8: Application Examples
8.1 The Emitter Follower
8.2 Emitter Follower as Impedance Converter
8.3 Sallen-Key Filter
8.4 Beat-Frequency Generator
8.5 Operational Amplifier
8.6 Voltage Doubling
8.7 All-pass Filter
8.8 Bandpass Filter
Appendix
A.1 Bill of Materials
A.2 Breadboard Drawings
A.3 Support Software
Publication Information
This is an Elektor Publication. Elektor is the media brand of Elektor International Media B.V.
PO Box 11, NL-6114-ZG Susteren, The Netherlands
Phone: +31 46 4389444
All rights reserved. No part of this book may be reproduced in any material form, including photocopying, or storing in any medium by electronic means and whether or not transiently or incidentally to some other use of this publication, without the written permission of the copyright holder except in accordance with the provisions of the Copyright Designs and Patents Act 1988 or under the terms of a licence issued by the Copyright Licencing Agency Ltd., 90 Tottenham Court Road, London, England W1P 9HE. Applications for the copyright holder's permission to reproduce any part of the publication should be addressed to the publishers.
Declaration
The author, editor, and publisher have used their best efforts in ensuring the correctness of the information contained in this book. They do not assume, and hereby disclaim, any liability to any party for any loss or damage caused by errors or omissions in this book, whether such errors or omissions result from negligence, accident or any other cause. All the programs given in the book are Copyright of the Author and Elektor International Media. These programs may only be used for educational purposes. Written permission from the Author or Elektor must be obtained before any of these programs can be used for commercial purposes.
British Library Cataloguing in Publication Data
A catalogue record for this book is available from the British Library
- ISBN 978-3-89576-603-9 (Print)
- ISBN 978-3-89576-604-6 (eBook)
Copyright © Elektor International Media
Website: www.elektor.com
Editor: Jan Buiting, MA
Prepress Production: D-Vision, Julian van den Berg
Printers: Ipskamp, Enschede, The Netherlands
Elektor is the world's leading source of essential technical information and electronics products for pro engineers, electronics designers, and the companies seeking to engage them. Each day, our international team develops and delivers high-quality content - via a variety of media channels (including magazines, video, digital media, and social media) in several languages - relating to electronics design and DIY electronics. Visit www.elektormagazine.com.