Elecrow Crowtail Deluxe Kit User manual

www.elecrow.com
2020 ELECROW All Rights Reserved.
C
User Guide
V2.0 2020.02
Crowtail Deluxe Kit
for Arduino

ContentContent
2020 ELECROW All Rights Reserved.
C
Instruction
Modules List
Crowtail
● Crowtail - Motor Base Shield
● Crowtail - Module
Lessons
● Lesson 1 - LED control
● Lesson 2 - Collision experiment
● Lesson 3 - Hall speed test
● Lesson 4 - Motor control
● Lesson 5 - Tracing experiment
● Lesson 6 - Over temperature reminder
● Lesson 7 - Colorful RGB light
● Lesson 8 - Show text on OLED
● Lesson 9 - Ultrasonic ranging display
● Lesson 10 - Use of the joystick
● Lesson 11 - Servo control
● Lesson 12 - Smart door
● Lesson 13 - IR control
● Lesson 14 - Store data
● Lesson 15 - Calculation of acceleration
● Lesson 16 - Use of gyroscope
● Lesson 17 - Use of Bluetooth
● Lesson 18 - ESP8266 web server
● Lesson 19 - A naughty robot
● Lesson 20 - A remote control car
01
02
03
03
04
05
05
07
08
10
13
15
17
19
20
22
24
26
28
30
32
34
35
37
40
42

InstructionInstruction
Welcome to the user manual of the Crowtail-Deluxe kit for Arduino. The electronic world is
so exciting and amazing! Probably you can't wait to create more interesting works or even
realize your electronic dream. Just wait a minutes, let’s get to know this amazing kit first.
The Crowtail-Deluxe Kit for Arduino is a kit for advanced learners with a basic programming
foundation. It is designed to help learners diverge their ideas, learn how more complex
electronic components work and program, and ultimately help them achieve their dream
electronic project! The kit contains more than 20 creative and inspiring courses, from simple
to difficult, to guide you in detail to learn how these complex electronic modules work and
how to use them, and then program to achieve challenging and creative electronic projects
that will even teach you how to create your own artificial intelligence work! In all, by learning
this kit, you will learn how to build a smart car completely, including wireless remote control,
intelligent tracking or obstacle avoidance, etc. Of course, there are more complex move-
ment data acquisition, wifi and Bluetooth use!
The Crowtail-Deluxe kit for Arduino includes more than 20 electronic modules, which are
selected one by one from more than 100 Crowtail electronic modules. The kit is designed to
let you learn some complex electronic modules and learn how they work and how to use
them. In addition, the kit will broaden your thinking, help you inspire more novel ideas and
creations, and ultimately help you achieve your dream work!
For the programming part, we will use Arduino software for programming. As you know,
Arduino is an easy-to-use open source electronic prototyping platform. It is one of the most
popular open source hardware in the world, including hardware (various Arduino board
models) and software (Arduino IDE). This is the easiest and best choice for you to learn
programming and hardware and achieve creative work. In short, you will explore the core of
electronic device programming and creation, and help you create your own great work with
a more comprehensive mind.
01

02
Modules ListModules List
● Crowtail - Motor Base shield x1
● Crowtail - Buzzer x1
● Crowtail - Switch x1
● Crowtail - LED(Red) x1
● Crowtail - Bright LED x1
● Crowtail - RGB-LED x1
● Crowtail - OLED x1
● Crowtail - IR Reflective Sensor x3
● Crowtail - Thumb Joystick x1
● Crowtail - IR Receiver x1
● Crowtail - IR Emitter x1
● Crowtail - Hall Sensor x1
● Crowtail - One Wire Waterproof Temperature Sensor x1
● Crowtail - Collision Sensor x1
● Crowtail- Ultrasonic Ranging Sensor x1
● Crowtail- 3-Axis Digital Accelerometer(±16g) x1
● Crowtail - 9G Servo x1
● Crowtail - ESP8266 nodeMCU x1
● Crowtail - Analog Gyro x1
● Crowtail - I2C EEPROM x1
● Crowtail - Bluetooth Low Energy Module x1
● Micro-Speed Motor x2
● Small magnet x1

03
Crowtail
Crowtail – Base Shield
Welcome to the world of Crowtail! Crowtail is a modulated, ready-to-use toolset, it takes a building
block approach to assemble electronics. It simplifies and condenses the learning process significantly.
In our Crowtail warehouse, there are over 150 Crowtail modules and Crowtail shields!
The Crowtail products are basic-functional modules that consist of a Base Shield and various modules
with standardized connectors, each Crowtail module has its specific functions, such as light sensing
and temperature sensing. It will satisfy all you need for your project!
Crowtail is a series of products that we made to solve the messy jumper when connecting electronic
circuits. It consists of a Base Shield and some basic Crowtail modules, which help you create small,
simple, and easy-to-assemble circuits. In other words, when you use Crowtail, your electronic project
will not be messy wiring, instead, it will be a simple and easy to manage an electronic project!
For those who want to use Arduino to build their own DIY mobile platform, motor drive has always
been a problem. It need 2 DC motors at least to control their speed& direction of rotation because
you will want your platform forward, turn back, turn left or right. Besides, motors always need large
current, so, you will need some modules to help you control the large current, with a microcontroller
such as Arduino. Then, the Crowtail-Motor Base shield appears, it can meet your all demand to DIY
your mobile platform! The Crowtail-Motor Base Shield is a standard IO expansion motor driver board
for the Arduino. It regulate the IOs of Arduino to the standard Crowtail interface and have two
interfaces to drive motors or a interface to drive 4-wire stepper, which can be sorted into 4 kinds:
Analog(A), Digital(D), UART(D0&D1, D2&D3) and IIC(A4&A5):
6 Digital I/O ports (D2~D7) that have a mark “D”. These ports can be used to read and control
digital Crowtail modules (Crowtail modules that have a mark “D”), such as the Button and LEDs.
Some of the digital I/O ports can also be used as PWM (pulse width modulation) outputs;
3 Analog ports (A0~A2) that have a mark of “A”. Besides the functional of digital, these A
ports can read the analog signal, such as a potentiometer or light sensor;
1
2
3
4
2
1

04
Crowtail – Modules
We make more than 100 kinds of electronic modules into Crowtail modules. They include a variety of
sensors, displays, inputs and outputs modules, communication types include I2C, UART, digital or
analog, which aim to provide more options to fully meet all needs for your electronic projects! All
modules can be used by simply connecting them to the Crowtail-Motor Base shield using a Crowtail
cable, which is a huge improvement over the previously troublesome jumper connections.
2 UART ports(D0&D1, D2&D3) that have a mark of “U”. These interfaces can be used for UART
communication such as the WIFI module or Bluetooth module;
1 IIC ports(A4&A5) that have a mark of “I”. These interfaces are for the IIC Communication;
Besides, there is also two motor connector, which you can drive 2 motors simultaneously or drive a
4-wire stepper. Users can connect any electronic modules to the Base Shield with Crowtail cable
easily.
Compared with the traditional way of carrying out electronic projects, Crowtail has a huge performance
benefit. All Crowtail has the standard 4 pin connectors. Your creative idea can be realize easier and
faster just by plug and play. In addition, you don’t need to debug the electronic circuits!
3
4
Connect Crowtail- Motor Base shield
with your Arduino
Connect Crowtail- Motor Base shield
with your Crowduino

05
Crowtail bright LED is a bright LED light with high brightness
and a large angle. Then its low terminal resistance can be
applied to indoor lighting, commercial lighting. Unlike colored
LEDs, Crowtail bright led light is white, very similar to our
daily light source and you can use it to make your own table
lamp. It can provide a strong light source for your project,
lighting, or so on.
The Crowtail- Switch is a Latching switch. When the switch is pressed
for the first time, the switch maintains current regulation and the button
outputs a HIGH signal in the self-locking state. When the switch is
pressed for a second time, the switch button pops up and the switch
turns off and then outputs a LOW signal. In fact, it is very similar to the
button, except that the switch has a self-locking function so that it can
output logic high level signal without pressing it all the time.
In this lesson, we are going to use bright LED module and switch to make a corridor night lights,
which will produce a strong illumination light for those who need it. Let’s start playing and see the
difference form colored LEDs.
Lesson 1 – LED Control
Lessons
Introduction
Arduino Uno/Crowduino Uno x1
Crowtail - Motor Base Shield x1
Crowtail - Bright LED x1
Crowtail - Switch x1
Crowtail - Cable x2
Required Parts
STEP1: Plug the Crowtail-Motor Base Shield onto the
Arduino or Crowduino board.
Hardware Connection
STEP2: Connect the Crowtail-Switch and Crowtail-Bright
LED to the D2 and D3 ports of the Crowtail-Motor Base
Shield. The complete connection is as follows.
Open the P01_LED_Control with Arduino IDE
and upload it.

06
When you press the switch, the bright LED will immediately light up, and the LED will go out when
you press the switch again to make the switch button pop up.
What will you see
1. Declare the LED and switch pins, and the “switchstate” variable to store the state of the button
2. Setup the LED as output and switch as input.
3. Read the state of the switch.
4. If the switch is pressed(HIGH), turn the LED on.
5. If the switch is pressed again and switch button is pop up(LOW), turn the LED off.
Code overview
Code usage
A variable is a placeholder for a value that may change in your code.
Variables must be introduced or "declared" before using variables.
Here, we declare two variables that define which ports of the base shield
the module should connect to and a variable called ‘switchState’
of type int(integer) and assign it a value of 0 to record the status of
the switch. Don't forget that variable names are case-sensitive!
Input or Output
Before using one of the digital pins, you need to tell Arduino
whether it is an input (INPUT) or an output (OUTPUT).
We use a built-in "function" called pinMode() to make the pin
corresponding to the led as an output and switch as an input.
Digital Input
We use the digitalRead() function to read the value on a digital pin.
Check to see if an input pin is reading HIGH(5V) or LOW(0V).
Returns TRUE(1) or FALSE(0) depending on the reading.
If/else Statements
The if / else statement allows your code to make corresponding choices
for different results, running a set of code when the logical statement in
parentheses is true, and another set of code when the logical statement is
false. For example, if the switch is pressed, the LED will light on and when
the switch is pressed a second time and the switch button is pop up,
the LED will light off.
This is another logical operator.The "equal" symbol (==) can be confusing.
The two equal signs are equal to ask: “The two values are equal
to each other? “On the other hand, if you want to compare two values,
don't forget to add a second equal sign, because if it's just a "=",
it's an assignment method.
Is equal to
When you're using a pin as an OUTPUT, you can command it to be
HIGH (output 5 volts) or LOW (output 0 volts). When you set it to HIGH,
for digital output modules, it means work. When you set it to LOW,
for digital output modules, it means don't work. For example, the led will
light on(work) when it is set to HIGH and it will light off(don't work)
when it is set to LOW.
Digital Output
Integer Variables

07
This is a Robot model car crash or collision switch sensor module for
Arduino, it normally outputs a logic HIGH signal, but when the sensor
crash something such as the wall, the on-board switch will be pressed,
and the module outputs a logic LOW signal. This module can be
installed into any mobile platform to achieve collision detection function
via 4 pin sensor cable and Arduino sensor expansion board connector.
Do you know why the car opens the airbag immediately after the
impact? In fact, the collision sensor is used to detect collisions in the
car, so we will simulate a car detection project in this lesson, which will
be absolutely cool if installed in your own smart car.
Lesson 2 – Collision experiment
Introduction
Arduino Uno/Crowduino Uno x1
Crowtail - Motor Base Shield x1
Crowtail - Collision Sensor x1
Crowtail - LED x1
Crowtail - Buzzer x1
Crowtail - Cable x3
Required Parts
STEP1: Plug the Crowtail-Motor Base Shield
onto the Arduino or Crowduino board.
Hardware Connection
STEP2: Connect the Crowtail-Collision
Sensor to the D3 port of the Crowtail-Motor
Base Shield. Connect the Crowtail-LED and
Crowtail-Buzzer to the D5 and D6 ports of
the Crowtail-Motor Base Shield. The
complete connection is as follows.
Open the P02_Collision_Experiment with
Arduino IDE and upload it.
When you press the onboard switch, you can see the red indicator light on the collision sensor, led
and buzzer will work for 0.5 seconds, when you release the switch, the red indicator light on the
board Off, led and buzzer no longer light up and beep.
What will you see

08
The Crowtail-Hall Sensor uses the Allegro™ A1101 Hall-effect
switches are next-generation replacements for the popular
Allegro312x and 314x lines of unipolar switches. It measures the Hall
Effect, which is a production of a voltage difference across an
electrical conductor, transverse to an electric current in the conductor
as well as a magnetic field perpendicular to the current.
Lesson 3 – Hall speed test
Introduction
1. Macro definitions of PIR motion sensor pin, LED pin and buzzer pin.
2. Declare a variable to store the state of the collision sensor.
3. Setup led and buzzer as output.
4. Read the state of the collision sensor and store it to the variable collisionState.
5. If collision is detected(LOW), turn led and buzzer on for 0.5 seconds.
6. If a collision is not detected(HIGH), turn led and buzzer off.
Code overview
Code usage
The prototype of the macro definition constant is #define [MacroName] [MacroValue]. What is the
difference between a macro definition constant and a variable? First, Macro-defined constants
cannot be changed while the program is running. Variables can be changed. Second, the variable
can be used inside the function defined by it, but the life cycle end when the function ends. The
macro defines the constant until the entire program runs the life cycle ends.
Macro definition: #define collisionPin 3 #define ledPin 5 #define buzzerPin 6
It Causes the program to wait on this line of code for the amount of time in between brackets. After
the time has passed, the program will continue to the next line of code.
Delay: delay(500); delay(200);
The if / else statement allows your code to make corresponding choices for different results, running
a set of code when the logical statement in parentheses is true, and another set of code when the
logical statement is false. For the collision sensor, when the on-board switch of the collision sensor is
pressed, the state of the collision sensor is LOW which is different from most modules and it will be
HIGH when the on-board switch of collision sensor is not pressed.
If/else Statements: if(logic statement) {code to be run if the logic statement is true}
else {code to be run if the logic statement is false }
Table of contents
Other Elecrow Microcontroller manuals
Popular Microcontroller manuals by other brands

AMS
AMS AS7261 Demo Kit user guide

Novatek
Novatek NT6861 manual

Espressif Systems
Espressif Systems ESP8266 SDK AT Instruction Set

Nuvoton
Nuvoton ISD61S00 ChipCorder Design guide

STMicrolectronics
STMicrolectronics ST7 Assembler Linker user manual

Texas Instruments
Texas Instruments Chipcon CC2420DK user manual

Texas Instruments
Texas Instruments TMS320F2837 D Series Workshop Guide and Lab Manual

CYPRES
CYPRES CY14NVSRAMKIT-001 user guide

Texas Instruments
Texas Instruments INA-DUAL-2AMP-EVM user guide

Espressif Systems
Espressif Systems ESP8266EX Programming guide

Abov
Abov AC33M8128L user manual

Laird
Laird BL654PA user guide






