ADEEPT Super Starter kit Manual
ADEEPT Super Starter kit Manual

ADEEPT Super Starter kit Manual

For arduino
Hide thumbs Also See for Super Starter kit:

Advertisement

Quick Links

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Super Starter kit and is the answer not in the manual?

Questions and answers

Summary of Contents for ADEEPT Super Starter kit

  • Page 2 Preface Adeept is a technical service team of open source software and hardware. Dedicated to applying the Internet and the latest industrial technology in open source area, we strive to provide best hardware support and software service for general makers and electronic enthusiasts around the world. We aim to create infinite possibilities with sharing.
  • Page 3 Component List 1x Adeept UNO Board(Arduino UNO) 1x DC Motor 1x L9110 motor driver 1x LCD1602 1x Dot-matrix Display 1x 7-Segment Display 1x NE555 timer 2x 74HC595 1x Active buzzer 1x Photoresistance 1x Tilt Switch 2x Switch 1x RGB LED...
  • Page 4: Table Of Contents

    Content About Arduino .......................... - 1 - Lesson 1 Blinking LED ......................- 2 - Lesson 2 Buzzer ........................- 6 - Lesson 3 Controlling an LED with a button ..............- 10 - Lesson 4 Tilt Switch ......................- 15 - Lesson 5 LED Flowing Lights ....................
  • Page 5: About Arduino

    About Arduino What is Arduino? Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects. ARDUINO BOARD Arduino senses the environment by receiving inputs from many sensors, and affects its surroundings by controlling lights, motors, and other actuators. ARDUINO SOFTWARE You can tell your Arduino what to do by writing code in the Arduino programming language and using the Arduino development environment.
  • Page 6: Lesson 1 Blinking Led

    Lesson 1 Blinking LED Overview In this tutorial, we will start the journey of learning Arduino UNO. In the first lesson, we will learn how to make a LED blinking. Requirement - 1* Arduino UNO - 1* USB Cable - 1* 220Ω Resistor - 1* LED - 1* Breadboard - 2* Jumper Wires...
  • Page 7 As shown in the schematic diagram above, the anode of LED is connected to Arduino’s GPIO via a resistor, and the cathode of LED is connected to the ground(GND). When the GPIO output high level, the LED is on; when the GPIO output low level, the LED is off.
  • Page 8 consecutively, allowing your program to change and respond. Use it to actively control the Arduino board. ●pinMode() Configures the specified pin to behave either as an input or an output. As of Arduino 1.0.1, it is possible to enable the internal pullup resistors with the mode INPUT_PULLUP.
  • Page 9 2. Program /*********************************************************** File name: 01_blinkingLed.ino Description: Lit LED, let LED blinks. Website: www.adeept.com E-mail: support@adeept.com Author: Tom Date: 2015/05/02 ***********************************************************/ ledPin=8; //definition digital 8 pins as pin to control the LED void setup() pinMode(ledPin,OUTPUT); //Set the digital 8 port mode, OUTPUT:...
  • Page 10: Lesson 2 Buzzer

    Lesson 2 Buzzer Overview In this lesson, we will learn how to program the Arduino to make an active buzzer sound. Requirement - 1* Arduino UNO - 1* USB cable - 1* Active buzzer - 1* 1 kΩ Resistor - 1* NPN Transistor (S8050) - 1* Breadboard - Several Jumper wires Principle...
  • Page 11 A slightly larger current is needed to make a buzzer sound. However, the output current of Arduino’s GPIO is weak, so we need a transistor to drive the buzzer. The main function of transistor is blowing up the voltage or current. The transistor can also be used to control the circuit conduction or deadline.
  • Page 12 Figure 2: Set the Arduino GPIO as low level, the transistor S8550 will conduct, and the buzzer will sound; set the Arduino GPIO as a high level, the transistor S8550 will cut off, then the buzzer will stop. Procedures 1. Build the circuit 2.
  • Page 13 Summary By learning this lesson, we have mastered the basic principle of the buzzer and the transistor. We also learned how to program the Arduino and then control the buzzer. I hope you can use what you have learned in this lesson to do some interesting things.
  • Page 14: Lesson 3 Controlling An Led With A Button

    Lesson 3 Controlling an LED with a button Overview In this lesson, we will learn how to detect the state of a button, and then toggle the state of LED based on the state of the button. Requirement - 1* Arduino UNO - 1* USB cable - 1* Button - 1* LED...
  • Page 15 The button jitter must be happen in the process of using. The jitter waveform is as the flowing picture: Each time you press the button, the Arduino will think you have pressed the button many times due to the jitter of the button.We must to deal with the jitter of buttons before we use the button.
  • Page 16 may be implemented in hardware as a distinct system with control lines, or they may be integrated into the memory subsystem. 3. Key functions: ●attachInterrupt(interrupt, ISR, mode) Specifies a named Interrupt Service Routine (ISR) to call when an interrupt occurs. Replaces any previous function that was attached to the interrupt. Most Arduino boards have two external interrupts: numbers 0 (on digital pin 2) and 1 (on digital pin 3).
  • Page 17 Pauses the program for the amount of time (in microseconds) specified as parameter. There are a thousand microseconds in a millisecond, and a million microseconds in a second. Currently, the largest value that will produce an accurate delay is 16383. This could change in future Arduino releases.
  • Page 18 Summary Through this lesson, you should have learned how to use the Arduino UNO detects an external button state, and then toggle the state of LED relying on the state of the button detected before. - 14 -...
  • Page 19: Lesson 4 Tilt Switch

    Lesson 4 Tilt Switch Overview In this lesson, we will learn how to use the tilt switch and change the state of an LED by changing the angle of tilt switch. Requirement - 1* Arduino UNO - 1* USB cable - 1* Tilt switch - 1* LED - 1* 220Ω...
  • Page 20 2. Program /*********************************************************** File name: 04_tiltSwitch.ino Description: Tilt switches to control the LED light on or off Website: www.adeept.com E-mail: support@adeept.com Author: Tom Date: 2015/05/02 ***********************************************************/ ledpin=11; //definition digital 11 pins as pin to control the //LED tiltSwitchpin=7; //Set the digital 7 to tilt switch interface val;...
  • Page 21 Summary In this lesson, we have learned the principle and application of the tilt switch. Tilt switch is a very simple electronic component, but simple device can often make something interesting. - 17 -...
  • Page 22: Lesson 5 Led Flowing Lights

    Lesson 5 LED Flowing Lights Overview In the first class, we have learned how to make an LED blink by programming the Arduino. Today, we will use the Arduino to control 8 LEDs, so that 8 LEDs showing the result of flowing. Requirement - 1* Arduino UNO - 1* USB cable...
  • Page 23 The initialization happens first and exactly once. Each time through the loop, the condition is tested; if it's true, the statement block, and the increment is executed, then the condition is tested again. When the condition becomes false, the loop ends. Procedures 1.
  • Page 24 left, next from the left to the right one. And then repeat the above phenomenon. Summary Through this simple and fun experiment, we have learned more skilled programming about the Arduino. In addition, you can also modify the circuit and code we provided to achieve even more dazzling effect. - 20 -...
  • Page 25: Lesson 6 Breathing Led

    Lesson 6 Breathing LED Overview In this lesson, we will learn how to program the Arduino to generate PWM signal. And use the PWM square-wave signal control an LED gradually becomes brighter and then gradually becomes dark like the animal’s breathing.
  • Page 26 Key function: ●analogWrite() Writes an analog value (PWM wave) to a pin. Can be used to light an LED at varying brightnesses or drive a motor at various speeds. After a call to analogWrite(), the pin will generate a steady square wave of the specified duty cycle until the next call to analogWrite() (or a call to digitalRead() or digitalWrite() on the same pin).
  • Page 27 2. Program 3. Compile the program and upload to Arduino UNO board. Now, you should see the LED gradually from dark to brighter, and then from brighter to dark, continuing to repeat the process, its rhythm like the animal's breathing. - 23 -...
  • Page 28 Summary By learning this lesson, I believe that you have understood the basic principles of the PWM, and mastered the PWM programming on the Arduino platform. - 24 -...
  • Page 29: Lesson 7 Controlling A Rgb Led By Pwm

    Lesson 7 Controlling a RGB LED by PWM Overview In this lesson, we will program the Arduino for RGB LED control, and make RGB LED emits a various of colors of light. Requirement - 1* Arduino UNO - 1* USB cable - 1* RGB LED - 3* 220Ω...
  • Page 30 1. Build the circuit 2. Program 3. Compile the program and upload to Arduino UNO board Now, you can see the RGB LED emitting red, green, blue, yellow, white and purple light, then the RGB LED will be off, each state continues 1s, after repeating the above procedure.
  • Page 31 Summary By learning this lesson, I believe you have already known the principle and the programming of RGB LED. I hope you can use your imagination to achieve even more cool ideas based on this lesson. - 27 -...
  • Page 32: Lesson 8 7-Segment Display

    Lesson 8 7-segment display Overview In this lesson, we will program the Arduino to achieve the controlling of segment display. Requirement - 1* Arduino UNO - 1* USB cable - 1* 220Ω Resistor - 1* 7-Segment display - 1* Breadboard - Several Jumper wires Principle The seven-segment display is a form of electronic display device for displaying...
  • Page 33 When using a common anode LED, the common anode should to be connected to the power supply (VCC); when using a common cathode LED, the common cathode should be connected to the ground (GND). Each segment of a segment display is composed of LED, so a resistor is needed for protecting the LED.
  • Page 34 2. Program 3. Compile the program and upload to Arduino UNO board Now, you should see the number 0~9 are displayed on the segment display. - 30 -...
  • Page 35 Summary Through this lesson, we have learned the principle and programming of segment display. I hope you can combine the former course to modify the code we provided in this lesson to achieve cooler originality. - 31 -...
  • Page 36: Lesson 9 Dot-Matrix Display

    Lesson 9 Dot-matrix display Overview In this lesson, we will program to control a 8*8 dot-matrix to realize the display of graphical and digital we want. Requirement - 1* Arduino UNO - 1* USB cable - 1* 8*8 Dot-matrix - 2* 74HC595 - 1* Breadboard - Several Jumper wires Principle...
  • Page 37 A 8*8 dot-matrix display consists of 64 LEDs, and each LED is placed at the intersection of the lines and columns. When the corresponding row is set as high level and the column is set as low level, then the LED will be lit. A certain drive current is required for the dot-matrix display.
  • Page 38 The flowing is the function of each pin: DS: Serial data input Q0-Q7: 8-bit parallel data output Q7’: Series data output pin, always connected to DS pin of the next 74HC595 OE: Output enable pin, effective at low level, connected to the ground directly MR: Reset pin, effective at low level, directly connected to 5V high level in practical applications SH_CP: Shift register clock input...
  • Page 39 (Make sure that the circuit connection is correct and then power, otherwise it may cause the chips to burn.) 2. Program 3. Compile the program and upload to Arduino UNO board Now, you can see a rolling “Adeept” should be displayed on the dot-matrix display. - 35 -...
  • Page 40 Summary In this experiment, we have not only learned how to operate a dot-matrix display to display numbers and letters, but also learned the basic usage of 74HC595, then you can try operating the dot-matrix display to show other images. - 36 -...
  • Page 41: Lesson 10 Lcd1602

    Lesson 10 LCD1602 Overview In this lesson, we will learn how to use a character display device—LCD1602 on the Arduino platform. First, we make the LCD1602 display a string "Hello Geeks!" scrolling,then display“Adeept”and“www.adeept.com”static. Requirement - 1* Arduino UNO - 1* USB cable - 1* LCD1602 - 1* 10KΩ...
  • Page 42 The 4-bit mode requires seven I/O pins from the Arduino, while the 8-bit mode requires 11 pins. For displaying text on the screen, you can do most everything in 4-bit mode, so example shows how to control a 2x16 LCD in 4-bit mode. A potentiometer , informally a pot, is a three-terminal resistor with a sliding or rotating contact that forms an adjustable voltage divider.
  • Page 43 Syntax lcd.print(data) lcd.print(data, BASE) Parameters lcd: a variable of type LiquidCrystal data: the data to print (char, byte, int, long, or string) BASE (optional): the base in which to print numbers: BIN for binary (base 2), DEC for decimal (base 10), OCT for octal (base 8), HEX for hexadecimal (base 16).
  • Page 44 3. Compile the program and upload to Arduino UNO board Now, you can see the string "Hello Geeks!" is shown on the LCD1602 scrolling, and then the string "Adeept" and "www.adeept.com" is displayed on the LCD1602 static. Summary I believe that you have already mastered the driver of LCD1602 through this lesson.
  • Page 45: Lesson 11 Photoresistor

    Lesson 11 Photoresistor Overview In this lesson, we will learn how to measure the light intensity by photoresistor and make the measurement result displayed on the LCD1602. Requirement - 1* Arduino UNO - 1* USB cable - 1* LCD1602 - 1* Photoresistor - 1* 10KΩ...
  • Page 46 With the increase of the light intensity, the resistance of photoresistor will be decreased. The voltage of GPIO port in the above figure will become high. Procedures 1. Build the circuit 2. Program 3. Compile the program and upload to Arduino UNO board Now, when you try to block the light towards the photoresistor, you will find that the value displayed on the LCD1602 will be reduced.
  • Page 47 Summary By learning this lesson, we have learned how to detect surrounding light intensity with the photoresistor. You can play your own wisdom, and make more originality based on this experiment and the former experiment. - 43 -...
  • Page 48: Lesson 12 Serial Port

    Lesson 12 Serial Port Overview In this lesson, we will program the Arduino UNO to achieve function of send and receive data through the serial port. The Arduino receiving data which send from PC, and then controlling an LED according to the received data, then return the state of LED to the PC's serial port monitor.
  • Page 49 communicating with the computer, use one of these rates: 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or 115200. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate. Syntax Serial.begin(speed) Parameters...
  • Page 50 Serial.print(val, format) Parameters val: the value to print - any data type format: specifies the number base (for integral data types) or number of decimal places (for floating point types) Returns byte print() will return the number of bytes written, though reading that number is optional ●println() Prints data to the serial port as human-readable ASCII text followed by a...
  • Page 51 2. Program 3. Compile the program and upload to Arduino UNO board Open the port monitor, and then select the appropriate baud rate according to the program. Now, if you send a character‘1’or‘0’on the serial monitor, the state of LED will be lit or gone out.
  • Page 52 Summary Through this lesson, you should have understood that the computer can send data to Arduino UNO via the serial port, and then control the state of LED. I hope you can use your head to make more interesting things based on this lesson.
  • Page 53: Lesson 13 Frequency Meter

    Lesson 13 Frequency meter Overview In this lesson, we will make a simple frequency meter with the Arduino UNO. We will acquire the frequency of square wave which is generated by 555 timer, and then send the result to serial monitor through USB port. Requirement - 1* Arduino UNO - 1* USB cable...
  • Page 54 Pin 6 is the THRESHOLD for the input of upper comparator; Pin 2 is TRIGGER for the input of lower comparator; Pin 3 is the OUTPUT having two states of 0 and 1 decided by the input electrical level; Pin 7, the DISCHARGE which has two states of suspension and ground connection also decided by input, is the output of the internal discharge tube;...
  • Page 55 pulseIn(pin, value, timeout) Parameters pin: the number of the pin on which you want to read the pulse. (int) value: type of pulse to read: either HIGH or LOW. (int) timeout (optional): the number of microseconds to wait for the pulse to start; default is one second (unsigned long) Returns the length of the pulse (in microseconds) or 0 if no pulse started before the...
  • Page 56 - 52 -...
  • Page 57 Summary By learning this lesson, I believe that you have mastered the principle of timer and you can make a simple frequency meter by yourself. You can display the value of square frequency to a LCD1602 by modifying the code we provided. - 53 -...
  • Page 58: Lesson 14 A Simple Voltmeter

    Lesson 14 A Simple Voltmeter Overview In this lesson, we will make a simple voltmeter with Arduino UNO and LCD1602, the range of this voltmeter is 0~5V. Then, we will measure the voltage of the potentiometer’s adjustment end with the simple voltmeter and display it on the LCD1602.
  • Page 59 opposite direction, there are 5 volts going to the pin and the input value is 1023. In between, analogRead( ) returns a number between 0 and 1023 that is proportional to the amount of voltage being applied to the pin. Key functions: ●...
  • Page 60 2. Program 3. Compile the program and upload to Arduino UNO. Now, when you turning the shaft of the potentiometer, you will see the voltage displayed on the LCD1602 will be changed. Summary The substance of voltmeter is reading analog voltage which input to ADC inside. Through this course, I believe that you have mastered how to read analog value and how to make a simple voltmeter with Arduino.
  • Page 61: Lesson 15 Dc Motor

    Lesson 15 DC motor Overview In this comprehensive experiment, we will learn how to control the state of DC motor with Arduino, and the state will be displayed through the LED at the same time. The state of DC motor includes its forward, reverse, acceleration, deceleration and stop.
  • Page 62 OA, OB: These are used to connect the DC motor. VCC: Power supply (+5V) GND: The cathode of the power supply (Ground). IA, IB: The input terminal of drive signal. 2. DC motor A DC motor is any of a class of electrical machines that converts direct current electrical power into mechanical power.
  • Page 63 3. Key functions ●switch / case statements Like if statements, switch…case controls the flow of programs by allowing programmers to specify different code that should be executed in various conditions. In particular, a switch statement compares the value of a variable to the values specified in case statements.
  • Page 64 // statements break; case label: // statements break; default: // statements Parameters var: the variable whose value to compare to the various cases label: a value to compare the variable to Procedures 1. Build the circuit (Make sure that the circuit connection is correct and then power, otherwise it may cause the chips to burn.) 2.
  • Page 65 buttons is pressed, their corresponding LED will be flashing which prompts that the current button is clicked. Summary I think you must have grasped the basic theory and programming of the DC motor after studying this experiment. You not only can forward and reverse it, but also can regulate its speed.

Table of Contents