Measures temperature in C or F.
Measures temperature in C or F.
Measures relative humidity in %RH.
Measures ambient light intensity.
Measures sound intensity in decibels.
A simple push-button module.
A bright, high-intensity LED module.
Functionality
The Grove Beginner Kit for Arduino is designed to help users create a wide range of projects, from simple circuits to complex IoT applications. The kit enables users to |
Target Audience
Technical Specifications
Compatible with Arduino Uno, Arduino Leonardo, and other Arduino boards.
4-pin, 2mm pitch.
5V.
0C to 40C.
Resources
Online tutorials and guides
Community support and forums
Arduino libraries and resources
By providing a comprehensive and user-friendly introduction to Arduino and IoT development, the Grove Beginner Kit for Arduino is an ideal starting point for anyone looking to explore the exciting world of IoT innovation.
Grove Beginner Kit for Arduino Documentation
Overview
The Grove Beginner Kit for Arduino is a comprehensive starter kit that includes a variety of Grove modules and an Arduino-compatible main board, designed to help beginners get started with IoT projects. The kit includes a range of sensors, actuators, and other modules that can be easily connected to the main board using the Grove connector system.
Components Included
1 x Grove Base Shield v2.0 (Arduino-compatible main board)
1 x Grove Temperature Sensor
1 x Grove Light Sensor
1 x Grove Sound Sensor
1 x Grove Button
1 x Grove LED
1 x Grove Buzzer
1 x Grove Cable (20cm)
1 x Grove Cable (40cm)
Code Examples
### Example 1: Reading Temperature and Controlling an LED
In this example, we will use the Grove Temperature Sensor to read the ambient temperature and control the brightness of the Grove LED based on the temperature reading.
Hardware Connections
Connect the Grove Temperature Sensor to the A0 port on the Grove Base Shield.
Connect the Grove LED to the D2 port on the Grove Base Shield.
Arduino Code
```cpp
const int tempPin = A0; // Grove Temperature Sensor connected to A0
const int ledPin = 2; // Grove LED connected to D2
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
int tempReading = analogRead(tempPin);
float temperature = tempReading 0.48828125; // Convert analog reading to Celsius
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" C");
if (temperature > 25) {
analogWrite(ledPin, 255); // Turn LED on at maximum brightness
} else {
analogWrite(ledPin, 0); // Turn LED off
}
delay(1000);
}
```
### Example 2: Detecting Sound and Triggering a Buzzer
In this example, we will use the Grove Sound Sensor to detect sound levels and trigger the Grove Buzzer when a certain threshold is reached.
Hardware Connections
Connect the Grove Sound Sensor to the A1 port on the Grove Base Shield.
Connect the Grove Buzzer to the D3 port on the Grove Base Shield.
Arduino Code
```cpp
const int soundPin = A1; // Grove Sound Sensor connected to A1
const int buzzerPin = 3; // Grove Buzzer connected to D3
void setup() {
pinMode(buzzerPin, OUTPUT);
}
void loop() {
int soundReading = analogRead(soundPin);
Serial.print("Sound Level: ");
Serial.print(soundReading);
Serial.println();
if (soundReading > 500) {
tone(buzzerPin, 1000); // Trigger buzzer at 1kHz frequency
} else {
noTone(buzzerPin); // Turn buzzer off
}
delay(50);
}
```
### Example 3: Reading Button State and Controlling an LED
In this example, we will use the Grove Button to read the button state and control the Grove LED accordingly.
Hardware Connections
Connect the Grove Button to the D4 port on the Grove Base Shield.
Connect the Grove LED to the D2 port on the Grove Base Shield.
Arduino Code
```cpp
const int buttonPin = 4; // Grove Button connected to D4
const int ledPin = 2; // Grove LED connected to D2
void setup() {
pinMode(buttonPin, INPUT);
pinMode(ledPin, OUTPUT);
}
void loop() {
int buttonState = digitalRead(buttonPin);
Serial.print("Button State: ");
Serial.print(buttonState);
Serial.println();
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH); // Turn LED on
} else {
digitalWrite(ledPin, LOW); // Turn LED off
}
delay(50);
}
```
These examples demonstrate the ease of use and flexibility of the Grove Beginner Kit for Arduino. With the various Grove modules and the Arduino-compatible main board, you can create a wide range of IoT projects and applications.