velleman Analog Input Extension Shield For Arduino Instruction Manual

June 7, 2024
Velleman

velleman logo

ASSEMBLY MANUAL
OCTOBER 2016

ANALOG INPUT EXTENSION SHIELD FOR ARDUINO

velleman Analog Input Extension Shield -

WWW.VELLEMANPFORMAKERS.COM

Introduction
The Arduino UNO™ is equipped with 6 analog inputs but some projects call for more. For example; sensor- or robot projects. The analog input extension shield only uses 4 I/O lines (3 digital, 1 analog) but adds a whopping 24 inputs, so in total you have 29 analog inputs at your disposal.

Features:

  • 24 analog inputs
  • only 4 I/O lines are used
  • stackable design
  •  complete with library and examples
  • works with Arduino UNO™ and compatible boards

Specifications:

  •  analog inputs: 0 – 5 VDC
  • uses pins: 5, 6, 7 and A0 on Arduino UNO™ board
  • dimensions: 54 x 66 mm (2.1” x 2.6”)

velleman Analog Input Extension Shield -
Specifications

In this manual, we will explain how to assemble the KA12 and how to install the included Arduino library with an example sketch.

velleman Analog Input Extension Shield -
Specifications2

What’s in the box

  1. 1 X PCB
  2. 1 X 470 Ohm resistor  (yellow, purple, brown)
  3.  2 X 100k Ohm resistor (brown, black, yellow)
  4.  2 X ceramic multilayer capacitor
  5.  3 X resistor array 100k
  6.  1 X 3 mm red LED
  7.  4 X IC holder (16 pins)
  8.  4 X pin header with 6×3 pins
  9.  2 X 8 pin female header
  10.  2 X 6 pin female header
  11. 2 X 3 pin female header
  12. 3 X IC – CD4051BE
  13. 1 X IC – SN74HC595N

velleman Analog Input Extension Shield - What’s in the
box

Building instructions

velleman Analog Input Extension Shield - Component
side

Position the 470 Ohm resistor as shown in the picture and solder.
R1: 470 Ohm (yellow, black, brown)velleman Analog Input Extension
Shield - PositionPosition the two 100k Ohm resistors as shown in the picture and solder them.
R2, R3 : 100k Ohm (brown, black, yellow)velleman Analog Input Extension
Shield - Position the C1, C2: ceramic multilayered capacitorsvelleman Analog Input Extension Shield
capacitors

RN1, RN2, RN3: resistor array 100kvelleman Analog Input Extension
Shield - array 100k

LED: red LED
Mind the polarity!velleman Analog Input Extension Shield - Mind the
polarityvelleman Analog Input Extension
Shield - red LED

IC1, …, IC4: IC holders
Mind the direction of the notch!velleman Analog Input Extension Shield -
Mind the direction of the notchvelleman Analog Input Extension Shield - Mind the
direction o
Solder all the 6×3 pin- header connectors.
Make sure the bent pins are soldered!velleman Analog Input Extension
Shield - Solder Solder both the 6 pin female headers and the 8 pin female headers into place.
Do not cut the pins!velleman Analog Input Extension Shield - Do not cut
the pins

SV1: two 3 pin female headers
Insert the pins on the solder side and solder on the component side! Make sure the top of the headers are equally leveled and do not exceed the top of the other pins. This way, it will fit nicely onto your Arduino Uno. Do not cut the pins!velleman Analog Input Extension Shield - equally leveled
a IC1, IC2, IC3 : IC – CD4051BE
Mind the direction of the notch! It should match the notch on the IC holder!velleman Analog Input Extension Shield - Mind the
direction

IC4 : IC – SN74HC595N
Mind the direction of the notch! It should match the notch on the IC holder!velleman Analog Input Extension Shield - Mind the
directio2n

Connecting the KA12

It is very important to insert the KA12 correctly onto the Arduino Uno to avoid damage to the pins and to ensure a good connection.
Here are the most important attention points:
A. This 6 pin female header fits precisely into the ‘ANALOG IN’ on the Arduino.
B. The two 3 pin female headers slide over the 6 ICSP pins on the Arduino.
C. The numbers beside the 8 pin female headers on the KA12 should correspond with the Digital I/O’s.
D. Slide the pins carefully into the Arduino to prevent damage.velleman
Analog Input Extension Shield - . Connecting the KA12

Installing the Arduino Library

  1.  Install the library:
    Go to the KA12 download page on the Velleman website
    http://www.vellemanprojects.eu/support/downloads/?code=KA12
    Download the ‘velleman_KA12’ extract and copy the “velleman_KA12” folder to your Documents\Arduino\libraries.

  2.   Example sketch:
    A. Open the Arduino software
    B. Then click file/Examples/Velleman_KA12/Velleman_KA12

  3.  The code:velleman Analog Input Extension Shield - The codeLine by line
    In order to make the KA12’s functions easy to use, we made a library.
    Line 1 and 6 declare the use and initialize the library. This must be done in every sketch that uses the KA12. The library gives you the possibility to easily read all sensor values and save them in an int-array or to read one value and save this to an int.
    To read all sensors you should declare an int-array with 24 places (line 2). To fill the array we use the read command (line 8). In the example, we display all the values to the serial monitor using a for loop (line 9 to 12).
    The serial communication is set up in line 5.
    If you only need one value you can use the “ka12_read” command (line 13).

velleman logo

VellemanProjects
@Velleman_RnD
VELLEMAN nv – Legen Heirweg 33, Gavere (Belgium)
vellemanprojects.com 

References

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Related Manuals