Zeroplus Arduino starter kit with Logic Analyzer User manual

Arduino starter kit with Logic Analyzer
The best kit to get started with Arduino, coding and electronics!

This publication is in copyright.
Subject to statuory exception and the
provisions of relevant collective
licensing agreements, no reproduction
of any part may take place without
the written premission of Zeroplus.
Graphics & Artwork: Alberto Piganti
Layout: David Antón Sánchez
2017 Zeroplus Technology Co. Ltd
Printed in Taiwan.

Index
What Is a Logic Analyzer?
Software Installation and Introduction
Logic Acquisition and Software Tutorial
Serial Interface
Experiment 1: LED
Experiment 2: Photoresistor
Experiment 3: Sensors
Experiment 4: Find the Key
Experiment 5: Temperature Controlled DC Motor
Experiment 6: LCD
Experiment 7: Keyboard
Experiment 8: I2C Protocol - Control the LEDs
9
13
29
41
47
55
63
71
79
87
97
105
2

This book is intended for hobbyists, students and anyone who has an
consists of experiments that cover several aspects of electronics,
After finishing this book, we hope the reader to
in this book are universal and can be applied
when using other logic analyzers or working with
each person can get something out of it, however
INTRODUCTION

INSIDE THE BOX
WHAT IS INSIDE THE BOX?
?
4
The box contains a Zeroplus LAP Educator 8-channel logic analyzer
bundled with an Arduino UNO and a number of modules, components and
accessories that will allow you to do all the experiments in this book
and much more!

MODULES & ACCESSORIES
1 x LAP Educator
8-channel PC-based logic analyzer
1 x Arduino UNO rev3
ATmega328P-based microcontroller
board
1 x LCD1602 LCD
Display module
1 x Sound Sensor
Detects sound
1 x USB Bridge
Converts type-A to
type-B USB
1 x I2C RGB LED
I2C-controlled LEDs
VCC
D-
D+
GND
J2
Q4
R4
R7
R6
R5
R11R 10
SW1
R9
R8
U1
J1 VCC
A1
A0
DS4
DS3
DS2
DS1
R3
R2
R1
Q3
Q2
Q1
VCC
SDA SCL G
SDA SCL G
A1 A0
00=0x20
01=0x21
10=0x22
11=0x23
on=0
off=1
ON
I2C RGB_V3
R3
R2
R1
SG
++
+
+
VR1
L2
R6
A0
G
D0
R5
L1
INSIDE THE BOX

MODULES & ACCESSORIES
6
1 x 2xAA Battery Holder
Provides power to the motor
1 x USB A-B Cable
For the Arduino UNO
1x8 and 1x2 and 1x1 Female to
female jumpers
Provided with the LAP Educator
20 x Male to male jumpers
Breadboard to Arduino connections
1 x Type A-mini B connector
For the LAP Educator
10 x Test hook
Use them to connect to flying leads
INSIDE THE BOX

COMPONENTS
BC548
1O4
LM35
1 x 3V DC Motor 5 x LED 1 x Photoresistor 2 x 104 μF
Capacitor
4 x Push-button
1 x 10kΩ
Potentiometer
1 x BC337 NPN
Transistor
1 x LM335
Temperature
Sensor
1 x 1N4148 Diode
4 x 10kΩ Resistor
2 x 2.2kΩ Resistor
4 x 330Ω Resistor
INSIDE THE BOX

BREADBOARD
8
1 x Breadboard
Breadboards are perfect for creating temporary prototypes and
experiments.
• Bus strips (bue and red) provide power to the electronic
components. There is one for ground (-) and one for a supply
voltage (+).
• Terminal links (in green) connect smaller areas together.
Links are connected together
internally as shown here
INSIDE THE BOX

Analyzer?

A logic analyzer is an electronic instrument that
captures and displays multiple signals from a digital
circuit and helps monitor and analyze the operation
of the system. How does a logic analyzer compare to
an oscilloscope? Oscilloscopes are mainly used for
analyzing the characteristics of analog signals such
as, waveforms, amplitude, frequency, or phase, but they
can’t handle the complexity of digital circuits or a
large number of signals.
Logic analyzers capture and display a sequence of
digital events from each channel that can
later be analyzed. They are very
useful tools for designing,
optimizing, and debugging the
hardware in prototype digital
systems and also for fixing
problems in malfunctioning
systems.
10
LAP EDUCATOR

The LAP Educator is a very simple 8-channel logic analyzer with an
the sensors and modules included with the LAP Educator.
CONNECTIONS WITH THE ARDUINO UNO
LAP EDUCATOR
LAP EDUCATOR

12
PORT OVERVIEW
LAP EDUCATOR


DOWNLOADING AND INSTALLING ZP-Studio
*
14
Download the latest version of ZP-Studio from our website:
www.zeroplus.com.tw/logic-analyzer_en/technical_support.php
SOFTWARE
*
to turn any idea that you have in mind into a reality.

Extract the files you have downloaded and open setup.exe
SOFTWARE
of your organization
Once the installation is finished the
pop up

16
SOFTWARE
ARDUINO SKETCHES
When you downloaded ZP-Studio you also downloaded the sketches
needed for each experiment. Look for a folder named Arduino
sketches.
There is a total of 9 files. Each file corresponds to a particular
chapter of the book (except for the chapter Keyboard which
doesn’t require the Arduino). You don’t need to understand the
source code to get through the book but we encourage you to
look at it and even modify it. Experimenting is the best way
to learn.
The files are named as follow:
- LogicAcquisitionAndSoftwareTutorial.ino
- SerialInterface.ino
- LED.ino
- Photoresistor.ino
- Sensors.ino
- FindTheKey.ino
- TemperatureControlledDCMotor.ino
- LCD.ino
- I2CProtocolControlTheLEDs.ino

GETTING TO KNOW THE INTERFACE
Option
menu
Start
capturing
Waveform area
Sampling settings
Tabs
Quick access
panels
Channels
SOFTWARE

SAMPLING SETTINGS
18
Sample rate: Set
it to minimum 4
times the
frequency of the
signal to be
analyzed.
Memory size:
Number of samples
recorded.
1
2
3
1
3 Trigger position:
Determines the distribution of
the samples in the memory. By
default, 10% of the available
memory is allocated to pre-
trigger data and 90% to post-
trigger data.
External clock:
Used for state analyses, an
external clock signal from your
device defines when the logic
analyzer latches the input
signals.
4
4
Trigger level: Sets the threshold
voltage. Set it to Vpp/2. For
example, if the voltage of the device is
0 - 5V, set the trigger level to 2.5V
Note: Vpp (peak-to-peak) is the differ-
ence between the maximum positive and
the maximum negative values of a
waveform.
2
SOFTWARE

GETTING TO KNOW THE INTERFACE
SOFTWARE
At the top right corner of the screen you can
see the Start and Sampling Settings buttons.
Start is used for starting an acquisition
capture and Sampling Settings contains basic
settings for the logic analyzer
The Option Menu is located at the
top right corner, represented by
a gear icon
Protocols can be selected by
clicking on the “+” icon on the
quick access panel
Table of contents
Popular Toy manuals by other brands

Eduard
Eduard RF-4B Phantom II Assembly instructions

BLOTZ
BLOTZ B28-WW2-101 instructions

Monster High
Monster High LAGOONA Assembly instructions

Eduard
Eduard Blenheim Mk.I bomb bay quick start guide

Fisher-Price
Fisher-Price Action Trackers RESCUE HEROES H7235 instruction sheet

Hasbro
Hasbro Buzz Lightyear's Electronic Power Blaster... instruction manual