RobotGeek 101: Analog Input Reference

This lesson is part of the RobotGeek 101 Learning Series. If you haven't already, please download the example sketches, and follow through the Geekduino Getting Started Guide to handle the foundations of using the Arduino IDE in conjunction with the Geekduino.

Welcome to RobotGeek 101 : Analog Input Reference. This reference expands upon the concepts covered in the Analog Input Introduction, and introduces more advanced concepts that will give you a more comprehensive knowledge of the workings of Analog Input.

Parts used in this lesson:

These parts and everything you need to complete chapters 1-7 in RobotGeek 101 are available in the RobotGeek Basic Experimenter's Kit.

Contents:

Introduction

D-multipleAnalog

code.png Click here to expand the code

diagram.png Click here to expand the diagram

Let's use the Arduino IDE to read an analog input and print out the data to the serial port. Open the following sketch in your Arduino IDE

File > Sketchbook > RobotGeek sketches > RG101 > 03 - analogInput > D-multipleAnalog

Back to Contents

E-averagingAnalog

code.png Click here to expand the code

diagram.png Click here to expand the diagram

Let's use the Arduino IDE to blink an LED on and off at a rate determined by an analog input such as a knob. Using non-blocking code, this sketch is more responsive than code that uses delay(). Open the following sketch in your Arduino IDE

File > Sketchbook > RobotGeek sketches > RG101 > 03 - analogInput > E-averagingAnalog

Back to Contents

Analog Input Examples from Arduino

Feedback Form


Search