Grove Beginner Kit For Arduino® User Manual
Grove Beginner Kit For Arduino® Grove Beginner Kit For Arduino® Grove Beginner Kit for Arduino is one of the best Arduino Beginner Kit for beginners. It includes one Arduino compatible Board and 10 additional Arduino sensors and all in one-piece of PCB design. All the modules have been connected to the Seeeduino through the PCB stamp holes so no Grove cables are needed to connect. Of course, you can also take the modules out and use Grove cables to connect the modules.
Grove Beginner Kit For Arduino® Index 1 …………….. Harware Overview 4 …………….. Part List 5 …………….. Learning Objectives 6 …………….. How To Get Started With Arduino 10 ...………….
Grove Beginner Kit For Arduino® Note: By default, Grove modules are connected to Seeeduino via PCB stamp holes. This means you don’t need to use Grove cables to connect if not broken out. The default pins are as follow: Modules Interface Pins/Address LED Digital D4 Buzzer Digital D5 OLED Display 0.
Grove Beginner Kit For Arduino® Part List Modules Quantity Sensors Temperature & Humidity Sensors x1 3-Axis Accelerometers x1 Air Pressure x1 Light Sensor x1 Sound Sensor x1 Input Modules Rotary Potentiometer x1 Button x1 Output Modules LED x1 Buzzer x1 Display Module OLED Display x1 Grove Cables x6 Micro USB Cable x1 4
Grove Beginner Kit For Arduino® Learning Objectives Basics of Open Source Hardware Systems. Basic Arduino Programming. Communication principles and methods for sensors. Hands-on implementation of Open Source Hardware projects.
Grove Beginner Kit For Arduino® How to Get Started With Arduino Install the Arduino IDE Arduino IDE is an integrated development environment for Arduino, which is used for singlechip microcomputer software programming, downloading, testing and so on. Download and Install Arduino IDE for your desired operating system here. Install the USB driver Arduino connects to the PC via a USB cable. The USB driver depends on the type of USB chip you’re using on your Arduino.
Grove Beginner Kit For Arduino® Start the Arduino IDE 1. Open the Arduino IDE on your PC. 2. Click on Tools -> Board to select the correct Development Board Model. Select Arduino/Genuino Uno as Board. 3. Click Tools -> Port to select the correct Port (the Serial Port showed in Device Manager in the previous step). In this case, COM6 is selected. For Mac OS users, it should be /dev/cu.SLAB_USBtoUART .
Grove Beginner Kit For Arduino® 1. Create a new Arduino file and name it Hello.ino , then copy the following code into it: void setup() { Serial.begin(9600); // initializes the serial port with a baud rate of 9600 } void loop() { Serial.println("hello, world"); // prints a string to a serial port delay(1000); //delay of 1 second } 5. In the upper left corner of the Arduino IDE, there are two buttons, Verify and Upload. First, press the Verify button(✓) to compile.
Grove Beginner Kit For Arduino® Note: All modules are pre-wired on a single circuit board, so no cables and soldering are needed. However, if you break out the modules and want to connect them with Grove cables, please kindly check the Breakout Guide.
Grove Beginner Kit For Arduino® Lesson Guide Lesson 1: Blinking with the LED We have completed the output “Hello world” program. Now let’s learn how to light the LED module. We know the three basic components of a control system: Input, Control, and Output. But lighting up LED uses only the output, not the input. Seeeduino is the control unit, the LED module is the output unit and the output signal is a digital signal.
Grove Beginner Kit For Arduino® Hardware connection Module connection Default connection by PCB stamp hole. Connect the Seeeduino to the computer through the USB cable. Software Code Open Arduino IDE. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code.
Grove Beginner Kit For Arduino® Code Analysis setup(){ } The setup() function is called when a sketch starts. Use it to initialize variables, pin modes, start using libraries, etc. The setup() function will only run once, after each powerup or reset of the Arduino board. loop(){ } After creating a setup() function, which initializes and sets the initial values, the loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond.
Grove Beginner Kit For Arduino® pin: the Arduino pin number to set the mode of. mode: INPUT , OUTPUT , or INPUT_PULLUP . Setting ledPin to the output mode. digitalWrite(ledPin, HIGH); Description: Write a HIGH or a LOW value to a digital pin. If the pin has been configured as an OUTPUT with pinMode(), its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for HIGH , 0V (ground) for LOW .
Grove Beginner Kit For Arduino® Parameters: ms: the number of milliseconds to pause. Allowed data types: unsigned long. Delay the program by 1000ms(1s). Demo Effect and Serial Print Result: The LED module will be 1 second on and 1 second off. Breakout Guide If modules are broken out from the board. Use a Grove cable to connect the Grove LED to Seeeduino Lotus’s digital interface D4.
Grove Beginner Kit For Arduino® Lesson 2: Pressing Button to Light Up LED The first thing we need to know is that the input of the button is a digital signal, and there are only two states, 0 or 1, so we can control the output based on those two states. Practice: Use button to turn ON and OFF the LED module Components Involved 1. Seeeduino Lotus 2. Grove LED 3. Grove Button 4. Grove Cables(If broken out) Hardware connection Module connection: Default connection by PCB stamp hole.
Grove Beginner Kit For Arduino® Output: LED module Both the sensor and the LED use digital signals, so they should be connected to digital interfaces. Software code: Open Arduino IDE. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code. //Button to turn ON/OFF LED //Constants won't change.
Grove Beginner Kit For Arduino® Code Analysis pinMode(ledPin, OUTPUT); Define LED as the output unit. pinMode(buttonPin, INPUT); Define button as the input unit.
Grove Beginner Kit For Arduino® buttonState = digitalRead(buttonPin); Description: Reads the value from a specified digital pin, either HIGH or LOW . Syntax: digitalRead(pin) Parameters: pin: the Arduino pin number you want to read This function is used to read the states of digital pins, either HIGH or LOW. When the button is pressed, the state is HIGH, otherwise is LOW.
Grove Beginner Kit For Arduino® Syntax: if (condition1) { // do Thing A } else if (condition2) { // do Thing B } else { // do Thing C } The usage of the statement is: if the logical expression in parentheses is true, execute the statement in curly braces after if, if not, execute the statement in curly braces after the else. If the state of the button is high, the LED pin outputs a high level and turn the LED on, else turn LED off.
Grove Beginner Kit For Arduino® Lesson 3: Controlling the Speed of the Blink In the last section, we studied that button only has two states, ON/OFF state corresponding 0V and 5V, but in practice, we often counter the need for many states, not just 0V and 5V. Then you need to use Analog Signal! Rotary Potentiometer is a classic example that uses an analog signal.
Grove Beginner Kit For Arduino® Hardware connection Module connection: Default connection by PCB stamp hole. The Seeeduino is then connected to the computer via a USB cable. Hardware analysis: Input: Rotary Potentiometer Control: Seeeduino Lotus Output: LED module The input is an analog signal, so it is connected to the analog signal interface, the LED module is connected to the digital signal interface.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code.
Grove Beginner Kit For Arduino® Code Analysis rotaryValue = analogRead(rotaryPin); Description: Reads the value from the specified analog pin. Arduino boards contain a multichannel, 10-bit analog to digital converter. This means that it will map input voltages between 0 and the operating voltage(5V or 3.3V) into integer values between 0 and 1023. On an Arduino UNO, for example, this yields a resolution between readings of: 5 volts / 1024 units or, 0.0049 volts (4.9 mV) per unit.
Grove Beginner Kit For Arduino® Lesson 4: Making the Buzzer go BEEP Just like the LED module, Buzzer is also an output module, instead of lighting up it produces a beep sound. This can be used for many situations for indication purposes.
Grove Beginner Kit For Arduino® Components Involved 1. Seeeduino Lotus 2. Grove Buzzer 3. Grove Cable(If Broken out) Hardware connection Module connection Default connection by PCB stamp hole. Connect the Seeeduino to the computer through the USB cable.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code.
Grove Beginner Kit For Arduino® Code Analysis analogWrite(BuzzerPin, Value); Description: Writes an analog value (PWM wave) to a pin. Can be used to light a LED at varying brightnesses or drive a motor at various speeds. After a call to analogWrite(), the pin will generate a steady rectangular wave of the specified duty cycle until the next call to analogWrite() (or a call to digitalRead() or digitalWrite()) on the same pin. Syntax: analogWrite(pin, value) Parameters: pin: the Arduino pin to write to.
Grove Beginner Kit For Arduino® Lesson 5: Making an Light Induct LED The light sensor contains a photosensitive resistor to measure the intensity of light. The resistance of the photosensitive resistor decreases with the increase of light intensity. The output signal is the analog value, the brighter the light source, the larger the analog value. Based on this property, you can use it to make a light switch.
Grove Beginner Kit For Arduino® Exercise: As the environment slowly brightens, the LED lights will lighten. As the light slowly dimmed, the LED dimmed. The LED will go from dark to light or from light to dark. To achieve this, we will use pulse width modulation(PWM). Components Involved 1. Seeeduino Lotus 2. Grove LED 3. Grove Light Sensor 4.
Grove Beginner Kit For Arduino® Hardware connection Module connection: Default connection by PCB stamp hole. The Seeeduino is then connected to the computer via a USB cable.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code. // Light Switch int sensorpin = A6; // Analog input pin that the sensor is attached to int ledPin = 4; // LED port int sensorValue = 0; // value read from the port int outputValue = 0; // value output to the PWM (analog out) void setup() { pinMode(ledPin,OUTPUT); Serial.
Grove Beginner Kit For Arduino® Code Analysis Serial.begin(9600); Description: Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate. An optional second argument configures the data, parity, and stop bits.
Grove Beginner Kit For Arduino® outputValue = map(sensorValue, 0, 1023, 0, 255); Description: Re-maps a number from one range to another. That is, a value of fromLow would get mapped to toLow, a value of fromHigh to toHigh, values in-between to values in-between, etc. Does not constrain values to within the range, because out-of-range values are sometimes intended and useful. The constrain() function may be used either before or after this function, if limits to the ranges are desired.
Grove Beginner Kit For Arduino® The function is used to write an analog value between 0 - 255 a PWM pin. analogWrite() can only be used for PWM pins. The new mapping data in the previous statement can be output to ledPin to lighten/dim the LED. Demo Effect and Serial Print Result: The LED module will change its intensity according to the light intensity of the surrounding. The darker the surrounding, the lighter it gets.
Grove Beginner Kit For Arduino® Lesson 6: Sound Sensitive LED Light The sound sensor can detect the sound intensity of the environment, and its output is also simulated. I’m sure you’ve all been exposed to the sound control lights, but now we can do one ourselves, and with the basics, this experiment will be easy for you. Here used Serial Plotter to visualize results.
Grove Beginner Kit For Arduino® Practice: The LED lights light up when the sound is made. When there is no sound and it is very quiet, the LED lights go off. Components Involved 1. Seeeduino Lotus 2. Grove LED 3. Grove Sound Sensor 4.
Grove Beginner Kit For Arduino® Hardware connection Module connection: Default connection by PCB stamp hole. The Seeeduino is then connected to the computer via a USB cable.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code. //Sound Control Light int soundPin = A2; // Analog sound sensor is to be attached to analog int ledPin = 4; // Digital LED is to be attached to digital void setup() { pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop(){ int soundState = analogRead(soundPin); // Read sound sensor’s value Serial.
Grove Beginner Kit For Arduino® Code Analysis Serial.begin(9600); The software running on the computer communicates with the development board, and the baud rate is 9600. Serial.print(" "); This function is used to output data from the serial port, the output is what is contained in the double quotation marks. Serial.println( ); This statement is similar to the one above, except that serial.println has a newline return.
Grove Beginner Kit For Arduino® Serial.println(soundState); Serial port print the sound sensor’s value. So you open the serial monitor on the IED interface, and you see the value of the output sensor. Demo Effect and Serial Print Result: The LED module will light up if the surrounding is loud enough. Breakout Guide Use Grove cables to connect the Grove LED to Seeeduino Lotus’s digital signal interface D4, Connect the Grove Sound Sensor to Seeeduino Lotus’s analog signal interface A2.
Grove Beginner Kit For Arduino® Lesson 7: Displaying Data on OLED OLED Display can be used for many situations, where you could use it to visualize sensor readings! Background Information: What is Arduino Libraries The Arduino environment can be extended through the use of libraries, just like most other programming platforms. Libraries provide extra functionalities for use in sketches, i.e. working with specific hardware or manipulating data.
Grove Beginner Kit For Arduino® Hardware connection Module connection: Default connection by PCB stamp hole. The Seeeduino is then connected to the computer via a USB cable.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Install the U8g2 library: Navigate to Sketch -> Include Library -> Manage Libraries… and Search for the keyword “U8g2” in the Library Manager, then install. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code. #include #include U8X8_SSD1306_128X64_ALT0_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE); void setup(void) { u8x8.begin(); u8x8.
Grove Beginner Kit For Arduino® Code analysis #include <> Description: #include is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for Arduino. Note that #include , similar to #define , has no semicolon terminator, and the compiler will yield cryptic error messages if you add one. #include is an instruction that introduces a header file. Here we use the DHT.
Grove Beginner Kit For Arduino® Description: Some displays support a 180-degree rotation of the internal frame buffer. This hardware feature can be controlled with this procedure. Important: Redraw the complete display after changing the flip mode. Best is to clear the display first, then change the flip mode and finally redraw the content. Results will be undefined for any existing content on the screen. Syntax: u8x8.setFlipMode(mode) Parameters: mode: 0 or 1 Flips the display 180 degrees. u8x8.
Grove Beginner Kit For Arduino® Prints Hello World onto the OLED Display. Breakout Guide Use Grove cable to connect the OLED to Seeeduino Lotus’s I2C interface (Note: I2C’s default address is 0x78).
Grove Beginner Kit For Arduino® Lesson 8: Detecting Surrounding Temperature & Humidity Have you ever wondered about the temperature and humidity of your surroundings? Want to know the exact number? Want to wear a skirt or coat today depending on the temperature? Let’s make a temperature meter! Background Information: What is Protocol Signal (I2C) Protocol signal: the protocol signal we use is I2C, so here is a brief introduction to I2C.
Grove Beginner Kit For Arduino® Hardware connection Module connection: Default connection by PCB stamp hole. The Seeeduino is then connected to the computer via a USB cable.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Install the Grove Temperature and Humidity Sensor(DHT11) library: Navigate to Sketch -> Include Library -> Manage Libraries… and Search for the keyword “Grove Temperature and Humidity Sensor(DHT11)” in the Library Manager, then install. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code.
Grove Beginner Kit For Arduino® Code Analysis float temp, humi; Defines variables to store readings. temp = dht.readTemperature(); humi = dht.readHumidity(); Description: Functions to be used to read temperature and humidity values from the sensor. Syntax: dht.readTemperature() and dht.readHumidity(). Return type: float. Call these functions to read the temperature and humidity and store them in defined variables.
Grove Beginner Kit For Arduino® Lesson 9: Measuring Surrounding Air Pressure Grove Air Pressure Sensor(BMP280) is a breakout board for Bosch BMP280 high-precision and low-power digital barometer. This module can be used to measure temperature and atmospheric pressure accurately. As the atmospheric pressure changes with altitude, it can also measure the approximate altitude of a place. Components Involved 1. Seeeduino Lotus 2. Grove Air Pressure Sensor 3.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Install the Grove Barometer Sensor library: Navigate to Sketch -> Include Library -> Manage Libraries… and Search for the keyword “Grove BMP280” in the Library Manager, then install. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code.
Grove Beginner Kit For Arduino® Code Analysis #include #include is an instruction that introduces a header file. Here we use the library, this library is included in Arduino IDE. #include "Seeed_BMP280.h" Represents the Seeed_BMP280.h header file that introduces the current path. if (!bmp280.init()) { Serial.println("Device not connected or broken!"); } Description: Initialize the air pressure sensor. Syntax: bmp280.
Grove Beginner Kit For Arduino® Prints the current air pressure. Serial.print(bmp280.calcAltitude(pressure)); Description: Takes the pressure value can convert to altitude. Syntax: bmp280.calcAltitude(float). Return type: float Parameter: float: Pressure value. Prints the amplitude. Demo Effect and Serial Print Result: The Air pressure readings are display on the Serial Monitor.
Grove Beginner Kit For Arduino® Lesson 10: Sensing Movement This is the last sensor, the triaxial accelerometer, and with this module, you can easily add motion monitoring to your design. So we can do a lot of interesting little experiments on the basis of the motion. Practice: when motion is detected, the buzzer gives an alarm indicating that the object is in motion. Components Involved 1. Seeeduino Lotus 2. Grove 3-axis Accelerometer 3.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Download the 3-Axis Digital Accelerometer( ±2g to 16g) from Github. Click on Sketch > Include library > Add .ZIP library, import the library into the IED. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code. In this program, acceleration information is sent from the sensor to Seeeduino via I2C bus and then Seeeduino printed them onto the serial monitor.
Grove Beginner Kit For Arduino® Code Analysis #include "LIS3DHTR.h" #ifdef SOFTWAREWIRE #include SoftwareWire myWire(3, 2); LIS3DHTR LIS(I2C_MODE);//IIC #define WIRE myWire #else #include LIS3DHTR LIS(I2C_MODE);//IIC #define WIRE Wire #endif Initializing the module using software I2C or hardware I2C. while (!Serial) {}; Code stops here if don’t open the serial monitor, so open serial monitor. LIS.begin(WIRE); LIS.
Grove Beginner Kit For Arduino® Description: Functions to be used to read Y-axis value from the sensor. Syntax: LIS.getAccelerationY(). Return type: float. Description: Functions to be used to read Z-axis value from the sensor. Syntax: LIS.getAccelerationZ(). Return type: float. Prints the 3 axis data to the serial monitor. Demo Effect and Serial Print Result: The 3-axis accelerator readings are displayed on the Serial Monitor.
Grove Beginner Kit For Arduino® Bonus Projects Project 1: Music dynamic rhythm lamp Project description: In this experiment, we will make the buzzer play pleasant music and the led lights flash according to the music frequency and beat. Components Involved 1. Seeeduino Lotus 2. Grove LED 3. Buzzer 4. Grove Cables(if broken out) Hardware connection Module connection: Default connection by PCB stamp hole. The Seeeduino is then connected to the computer via a USB cable.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code.
Grove Beginner Kit For Arduino® NTD1,NTD2,NTDL5,NTD0, NTD3,NTD3,NTD4,NTD5, NTD5,NTD4,NTD3,NTD4,NTD2, NTD1,NTD1,NTD2,NTD3, NTD2,NTD1,NTD1 }; float durt[]= { 1,1,1,1, 1,1,1,1, 1,1,1,1, 1+0.5,0.5,1+1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1+0.5,0.5,1+1, 1,1,1,1, 1,0.5,0.5,1,1, 1,0.5,0.5,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,0.5,0.5, 1,1,1,1, 1+0.5,0.
Grove Beginner Kit For Arduino® 62
Grove Beginner Kit For Arduino® Code Analysis #define NTD Here is the definition of the frequency of the D key, which is divided into bass, alto, and treble. #define WHOLE 1 #define HALF 0.5 #define QUARTER 0.25 #define EIGHTH 0.25 #define SIXTEENTH 0.625 Note: rhythm is divided into one beat, half beat, 1/4 beat, 1/8 beat, we specify a beat note time is 1;Half beat is 0.5;1/4 beat is 0.25;1/8 of 0.125. int tune[]=... List the frequencies according to the spectrum. float durt[]=...
Grove Beginner Kit For Arduino® Project 2: Make an intelligent sound-light induction desk lamp Project description: as the name implies, this project is to make a small lamp controlled by Sound and Light. We need to use the LED module. Of course, Light Sensor and Sound Sensor are also indispensable. In this way, you can achieve the function of the smart desk lamp: when the sound, the lamp will light up; If the environment turns dark, the lamp will automatically turn brighter. Components Involved 1.
Grove Beginner Kit For Arduino® Software Code Open Arduino IDE. Copy the following code, click Verify to check for syntax errors. Verify that there are no errors, and you can upload the code.
Grove Beginner Kit For Arduino® Breakout Guide Connect the Grove LED to Seeeduino Lotus’s digital signal interface D4, Connect the Light Sensor to Seeeduino Lotus’s analog signal interface A1. Connect the Sound Sensor to Seeeduino Lotus’s analog signal interface A2 using a Grove cable.
Grove Beginner Kit For Arduino® Make Your Own Modules & Boards After this period of study, you already have a systematic understanding of Arduino and opensource hardware, so why not go further and try to make your own module or development board? EDA To design your own board, you will need to design your own module’s schematics, which requires an EDA tool to do so. Here recommends an open-source EDA software. KiCAD KiCad is a free software suite for electronic design automation.
Grove Beginner Kit For Arduino® Seeed Studio has its very own Open Parts Library (OPL) which is a collection of over 10,000 commonly used components specifically sourced for the Seeed Fusion PCBA Service. To speed up the process of PCB design, Seeed is building the component libraries for KiCad and Eagle. When all components are sourced from Seeed’s PCBA OPL and used with the Seeed Fusion PCB Assembly (PCBA) service, the entire PCBA production time can be reduced from 20 working days to a mere 7 days.
Grove Beginner Kit For Arduino® Resources 1. Grove Beginner Kit for Arduino Wiki [PDF] 2. Grove Beginner Kit for Arduino Schematic Design Files 3. Modules Libraries on Github: OLED Display Temperature & Humidity Sensor Air Pressure Sensor 3-Axis Accelerator 4. Sensor Datasheet 5.
Grove Beginner Kit For Arduino® More Learning LSTM for live IoT data prediction Tech Support Please submit any technical issue into our forum 70