Arduino Starter Kit Grove-Starter Kit - Seeed Studio

2y ago
24 Views
2 Downloads
2.43 MB
21 Pages
Last View : Today
Last Download : 3m ago
Upload by : Joanna Keil
Transcription

r on the Base Shield. Now theLED is connected to digital pin 7 on the Arduino.Copyright by Seeedstudio

Hardware Connection Method of Smart Relay’s output circuit:1 Cut either one wire of EL wire Pocket Converter and plug each end into theterminals of the Relay2 Tighten the screwsSoftware Designint tiltPin 6;int relayPin 7;void setup(){pinMode(tiltPin,INPUT);//set tilt as digital inputpinMode(relayPin,OUTPUT);//set relay as digital output}void loop(){if(digitalRead(tiltPin)) //check whether tilt is balanced or not{digitalWrite(relayPin,HIGH);// tilt is inbalanced then relay is off}else{digitalWrite(relayPin, LOW);//tilt is balanced then relay is on}}4. FenceGoal:Switch on, and the EL wire woven through the fence will light up.Copyright by Seeedstudio

Module IntroductionProtoshield:This allows you to add your own circuitry or components to yourGrove system prototypes.Hardware Set-upMaterials Needed:1 Protoshield 1 Smart Relay 2 Grove Cables 1 EL wire 1 EL wire 2xAA pocket inverterHardware Connection Method: Plug the button into the D8 connector on the BaseShield. The button is now connected to digital pin 8 on the Arduino. Then plug thebuzzer into the D9 connector on the Base Shield . The LED is now connected todigital pin 9 on the Arduino.Hardware Connection Method of Smart Relay’s output circuitThe same as the method depicted above in the “Swing” part.Copyright by Seeedstudio

The Protoshield Circuit Schematicswitch resistance:Software Designint protoshieldPin 8;int relayPin 9;void yPin,OUTPUT);}void e(relayPin,HIGH);}else{digitalWrite(relayPin, LOW);}}5. Screen5.1 Alpha-Numeric Character DisplayGoalThe static display on the screen is “Seeed Studio” and “Starter Kit”.Copyright by Seeedstudio

Module IntroductionSerial LCD:Display alpha-numeric characters max 32 in a display.Hardware Set-upMaterials Needed: 1 Serial LCD 1 Grove CableHardware-connection Method: Plug the serial LCD into the D11 and D12connectors on the Base Shield. The Serial LCD is now connected to digital pins 11 and12 on the Arduino.Software DesignAttention: We provide you with the Serial LCD library. Before programming, pleasedownload the dedicated library and decompress it to the Arduino library.1.Click LCD.zip anddownload the library.2. Decompress it to C:\Program Files\arduino-1.0\libraries.#include SerialLCD.h #include SoftwareSerial.h //this is a mustSerialLCD slcd(11,12); //this is a must, assign soft serial pinsvoid setup(){Copyright by Seeedstudio

slcd.begin();// set up :}void loop(){slcd.backlight();// Turn on the backlight:slcd.setCursor(0,0); // set the cursor to (0,0):slcd.print(" Seeed Studio"); // Print a message to the LCD.slcd.setCursor(0,1);slcd.print(" Starter kit");}5.2 Temperature DisplayGoalDisplay present temperature.Module IntroductionTemperature Sensor: Perfect for use with Arduino/Seeeduino analog inputs. Itsoutput voltage changes according to temperature.Hardware Set-upMaterials Needed: 1 Serial LCD 1 Temperature Sensor 2 Grove CablesHardware-connection Method: Plug the temperature sensor into the A1 connectoron the Base Shield. The temperature sensor is now connected to analog pin 1 on theArduino. Plug the serial LCD into the D11 and D12 connectors on the Base Shield. TheSerial LCD is now connected to analog pins 11 and 12 on the Arduino.Copyright by Seeedstudio

Software Design#include SerialLCD.h #include SoftwareSerial.h int tempPin 1;SerialLCD slcd(11,12);void setup(){slcd.begin();}void loop(){slcd.backlight();float temp analogRead(tempPin);//getting the voltage reading from the//temperature sensortemp (float)(1023 - temp)*10000/temp;temp 1/(log(temp/10000)/3975 ;}5.3 Switching Between Alpha-numeric Characters and TemperatureGoalTurn on the power, and the screen will display “Seeed Studio” and “StarterKit”. Press the button, and the screen will display present temperature. Release thebutton, the screen will display the previous verbage.Copyright by Seeedstudio

Hardware Set-upMaterials Needed:1 Serial LCD 1 Temperature Sensor 1 button 3 GroveCablesHardware-connection Method: Plug the temperature sensor into the A1 connectoron the Base Shield. The temperature sensor is now connected to analog pin 1 on theArduino. Plug the serial LCD into the D11 and D12 connectors on the Base Shield. TheSerial LCD is now connected to digital pins 11 and 12 on the Arduino. Plug the buttoninto the D10 connector on the Base Shield. The button is now connected to digitalpin 10 on the Arduino .Software Design#include SerialLCD.h #include SoftwareSerial.h int tempPin 0;int buttonPin 10;SerialLCD slcd(11,12);void d )//check whether the button is pressed or notCopyright by Seeedstudio

{slcd.clear();float temp analogRead(tempPin);// is pressed, temperature is displayedtemp (float)(1023 - temp)*10000/temp;temp 1/(log(temp/10000)/3975 emp:");slcd.print(temp,2);delay(500);}else//Or else, numeric and characters are int(" Seeed Studio");slcd.setCursor(0,1);slcd.print(" Starter kit");delay(500);}}Module AssemblyThe hardware for the Grove-Starter Kit Farmhouse project is ready. Let’s take a lookat the final product.The overall software designs are as follows// include the library code:Copyright by Seeedstudio

#include SerialLCD.h #include SoftwareSerial.h //this is a mustint buttonPin 1;int buzzerPin 2;int slidePin A0;int ledPin1 3;int ledPin2 4;int ledPin3 5;int tiltPin 6;int relayPin 7;int protoshieldPin 8;int relayPin2 9;int lcd buttonPin 10;int lcdPin1 11;int lcdPin2 12;int tempPin A1;SerialLCD slcd(11,12);void playTone(int tone, int duration) {for (long i 0; i duration * 1000L; i tone * 2) {digitalWrite(buzzerPin, in, LOW);delayMicroseconds(tone);}}void playNote(char note, int duration) {char names[] { 'c', 'd', 'e', 'f', 'g', 'a', 'b', 'C' };int tones[] { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956 };// play the tone corresponding to the note namefor (int i 0; i 8; i ) {if (names[i] note) {playTone(tones[i], duration);}}}void playMusic(){int length 40; // the number of noteschar notes[] "ccggaagffeeddc "; // a space represents a restint beats[] { 1,1,1,1,1,1,2,1,1,1,1,1,1,2,4 };Copyright by Seeedstudio

int tempo 300;for (int i 0; i length; i ) {if (notes[i] ' ') {delay(beats[i] * tempo); // rest} else {playNote(notes[i], beats[i] * tempo);}// pause between notesdelay(tempo / 20);}}void lightAdjust(int value){value lue);}void setup() {pinMode(buzzerPin, OUTPUT);pinMode(lcd id loop() {int slideValue 0;int saveValue 0;int lcd buttonFlag 1;while(1){//1.doorbellif(digitalRead(buttonPin) true){playMusic();Copyright by Seeedstudio

}//2.room lightslideValue analogRead(slidePin);if(slideValue ! saveValue){lightAdjust(slideValue);saveValue ite(relayPin, Write(relayPin2, LOW);}//5.lcdif(!digitalRead(lcd (lcd buttonPin)&&lcd buttonFlag lcome to Seeed Grove");slcd.setCursor(0,1);slcd.print("Starter kit");delay(500);lcd buttonFlag 0;}Copyright by Seeedstudio

if(!digitalRead(lcd buttonPin)){slcd.clear();float temp analogRead(tempPin);temp (float)(1023 - temp)*10000/temp;temp 1/(log(temp/10000)/3975 emp:");slcd.print(temp,2);delay(500);lcd buttonFlag 1;}}//end while(1)}Copyright by Seeedstudio

Arduino Starter Kit —Grove-Starter Kit For someone first dabbling in the world of Arduino, the Grove-Starter Kit is an excellent choice in the journey of learning. This kit includes a variety of basic input and output modules and se

Related Documents:

2 Valve body KIT M100201 KIT M100204 KIT M100211 KIT M100211 KIT M100218 KIT M300222 7 Intermediate cover (double diaphragm) - - - KIT M110098 KIT M110100 KIT M110101 4 Top cover KIT M110082 KIT M110086 KIT M110092 KIT M110082 KIT M110082 KIT M110082 5 Diaphragm KIT DB 16/G KIT DB 18/G KIT DB 112/G - - - 5 Viton Diaphragm KIT DB 16V/S KIT

Arduino compatible components. Personal computer running Arduino software Arduino software is free to download and use from: www.arduino.cc Arduino board Such as: Arduino Uno Freetronics Eleven Genuino Uno or any Arduino compatible board that has a standard Arduino UNO header l

arduino-00 -win.zip Recommended Path c:\Program Files\ ( - version #) Step 3: Shortcut Icon Open c:\program files\arduino-00 Right Click Arduino.exe (send to Desktop (create shortcut)) \ ( - version #) Step 4: Plug In Your Arduino Plug your Arduino in: Using the included USB cable, plug your Arduino board into a free USB port. Wait for a box to .

Hence we given interesting top five easy to make Arduino projects with code and library link. Happy learning Arduino 1. Heart Rate Monitor AD8232 Interface Arduino 2. Fingerprint sensor-scanner with Arduino 3. Giving Voice Recognition Ability to Arduino 4. Soil Moisture Sensor and Arduino 5. How to Interface RFID with Arduino?

In this instruction, we will introduce you through the fun project of the Arduino 2 Wheel Drive Ultrasonic Robot Kit. Get your Arduino board kit. Let’s get started! 2. Getting started: Programming the arm robot using Arduino UNO 2.1. What is Arduino? Arduino is an open-source electronics platform based on easy-to-use hardware and software .

arduino’s analog pin 4 (SDA). And the pin labelled as SCL on the MPU 6050 to the arduino’s analog pin 5 (SCL). And that’s it, you have finished wiring up the Arduino MPU 6050. Step 2: Uploading the code and testing the Arduino MPU 6050 To test the Arduino MPU 6050, first download the arduino library for MPU 6050, developed by Jeff Rowberg.

3. Then, use the Arduino IDE to write code to send to Arduino. Once a code is sent to the Arduino, it lives on the Arduino Uno. Any future edits to that code on the computer will not be sent to the Arduino unless it is manually uploaded to the Arduino Uno. When using the Arduino

Lung anatomy Breathing Breathing is an automatic and usually subconscious process which is controlled by the brain. The brain will determine how much oxygen we require and how fast we need to breathe in order to supply our vital organs (brain, heart, kidneys, liver, stomach and bowel), as well as our muscles and joints, with enough oxygen to carry out our normal daily activities. In order for .