Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Grove Components

You need to have the Arduino IDE installed to follow these instructions

Image Removed

In the IDE, if you are using the Arduino Shield, choose Board Arduino UNO. If you use the ESP32, it is more complicated as libraries are needed. 

See full instructions at https://wiki.seeedstudio.com/

Sensors

Actuators

LEDs (Light-Emitting Diodes)

RED LED

Grove - Red LED houses an LED light source. It has a potentiometer to control the brightness. 

Interface: Digital

  • Step 1. Connect Grove-Red LED to port D2 of Grove-Base Shield.
  • Step 2. Connect Grove Shield to computer.
  • Step 3. Copy the below code to Arduino IDE
  • Step 4. Upload the code to the Board
Code Block
languagecpp
themeConfluence
titleCode
linenumberstrue
collapsetrue
void setup() {
  // initialise digital pin2  as an output.
  pinMode(2, OUTPUT);
}
 
// the loop function runs over and over again forever
void loop() {
  digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

Image Removed

Grove-Red LED

4-digit display

Interface: Digital

8 adjustable luminance levels

  • Step 1. Connect Grove-4-digit display to port D2 of Grove-Base Shield.
  • Step 2. Connect Grove Shield to computer.
  • Step 3. Copy the code to Arduino IDE
  • Step 4. Download the Grove-4-Digit Display Library and TimerOne Library.
  • Step 5. Install the libraries on your Arduino IDE.
  • Step 6. Open File > Examples > Grove 4-Digit Display > ClockDisplay

Image Removed

4-digit display

Page Tree