2017년 2월 16일 목요일

Project Two – Digital Input



Project Two – Digital Input

Introduction

The purpose of this project is to demonstrate two forms of digital input – using the button and the tilt switch . Pressing either of the buttons will light the respective LED, and activating the tilt-switch will light both LEDs.
  1. Connect the LED to the D1/D2 Digital I/O jack, like it was in Projects 1 and
  2. Arduino Pin D1 powers the Red LED on the Grove’s D1 connector, and Arduino Pin D2 powers the Green LED on the Grove’s D2 connector.
  3. Connect the Tilt Switch to the D5/D6 Digital I/O jack.
  4. The Tilt Switch Grove’s D1 connector sends a high or low signal to the Arduino’s D5 digital input.
  5. Connect the Twin Button Grove to the D7/D8 input jack (on the second row.)
  6. The Twin Button Grove’s red button uses the D1 connector to send a signal to the Arduino’s D7 digital input, and the green button uses the D2 connector to send a signal to the Arduino’s D8 digital input. 7.
Now upload the following Arduino sketch:
// Project Two - Digital Inputs // void setup() { pinMode(1, OUTPUT); pinMode(2, OUTPUT); pinMode(5, INPUT); pinMode(7, INPUT); pinMode(8, INPUT); } void loop() { if (digitalRead(5)==HIGH) { digitalWrite(1, HIGH); digitalWrite(2, HIGH); delay(100); digitalWrite(1, LOW); digitalWrite(2, LOW); } if (digitalRead(7)==HIGH) { digitalWrite(1, HIGH); delay(200); digitalWrite(1, LOW); } if (digitalRead(8)==HIGH) { digitalWrite(2, HIGH); delay(200); digitalWrite(2, LOW); } }

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Project Two - Digital Input v1.0b



Project Two - Digital Input v1.0b

Introduction

The purpose of this project is to demonstrate two forms of digital input – using the button Grove and the tilt switch Grove . Pressing the button will light the LED, and activating the tilt-switch will light the LED.
Wiring it:
  1. Connect the LED Module to the D1/D2 Digital I/O jack, like it was in Projects 1.
  2. Arduino Pin D1 powers the LED on the Grove’s SIG connector, and Arduino Pin D2 connect to the LED Grove’s NC connector.
  3. Connect the Tilt Switch Grove to the D5/D6 Digital I/O jack.
  4. The Tilt Switch Grove’s SIG connector sends a high or low signal to the Arduino’s D5 digital input.
  5. Connect the Button Module to the D7/D8 input jack (on the second row.)
  6. The Button Grove uses the SIG connector to send a signal to the Arduino’s D7 digital input.
Now upload the following Arduino sketch:
// Project Two - Digital Inputs // void setup() { pinMode(1, OUTPUT); pinMode(5, INPUT); pinMode(7, INPUT); } void loop() { if (digitalRead(5)==HIGH) { digitalWrite(1, HIGH); delay(100); digitalWrite(1, LOW); } if (digitalRead(7)==HIGH) { digitalWrite(1, HIGH); delay(200); digitalWrite(1, LOW); } }

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Project Three – Analog Input v1.0b



Project Three – Analog Input v1.0b

Introduction

The purpose of this sketch is to demonstrate a form of analog input using the potentiometer Grove. We will use this to set the delay for our blinking LEDs from project one.
Connect the LED module to the D1/D2 Digital I/O jack, like it was in Projects 1 and 2. Arduino Pin D1 powers the LED Grove’s SIG connector, and Arduino Pin D2 connect to the LED Grove’s NC connector.
Connect the Potentiometer module to the Analog A0/A1 input jack.
The Potentiometer module produces an analog voltage on its SIG output, which is connected to Arduino A0 analog input on the A0/A1 input jack.
Now upload the following Arduino sketch:
// Project Three - Analog Input // void setup() { pinMode(1, OUTPUT); } void loop() { digitalWrite(1, HIGH); delay(analogRead(0)); digitalWrite(1, LOW); delay(analogRead(0)); }
The maximum delay value is 1023, as this is the upper limit of the value returned by the analogRead() function. You could use mathematical functions to increase or scale down the range of the delay.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Project Six – LCD Demonstration



Project Six – LCD Demonstration

Introduction

Now it is time to demonstrate the LCD module and matching Grove units. With the LCD you can display data or messages within the two line, eight-character display. For this example, connect the wires from the following LCD sockets to the Grove Base Shield:
  • right-bottom to D1/2;
  • bottom-left to D3/4;
  • bottom-right to D5/6;
Now upload the following Arduino sketch:
// Project Six - LCD demonstration // #include <LiquidCrystal.h> LiquidCrystal lcd(1,2,3,4,5,6); void setup() { lcd.begin(8,2); } void loop() { lcd.clear(); lcd.setCursor(0,0); lcd.print("01234567"); lcd.setCursor(0,1); lcd.print("ABCDEFGH"); delay(65000); }
The lcd.clear() functions blanks the LCD screen; lcd.setCursor() moves the cursor to (column, row); and lcd.print(“”); writes text to the cursor position on the LCD.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Project Seven - Temperature



Project Seven - Temperature

Introduction

Next on our Grove journey is the temperature sensor . It is an analog form of input, and as described earlier returns a voltage potential relative to the ambient temperature. We measure this voltage using an analog pin, and convert it to a temperature.
Connect the Temperature Sensor to the Analog A0/A1 input jack. The Grove unit produces an analog voltage on its D1 output, which is connected to Arduino A0 analog input on the A0/A1 input jack.
Now upload the following Arduino sketch:
// Project Seven - temperature // int a; int del=1000; // duration between temperature readings float ctemperature; float ftemperature; int B=3975; float resistance; void setup() { Serial.begin(9600); } void loop() { a=analogRead(0); resistance=(float)(1023-a)*10000/a; ctemperature=1/(log(resistance/10000)/B+1/298.15)-273.15; ftemperature=ctemperature*9/5+32; Serial.print(ctemperature); Serial.write(186); Serial.print("C "); Serial.print(ftemperature); Serial.write(186); Serial.println("F"); delay(del); }
You can copy and paste the lines above to add temperature capability to your own sketches.
After you have uploaded the sketch, open the serial monitor window in the Arduino IDE, and you should be presented with a box similar to this:

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Project One - Double Blink



Project One - Double Blink

Introduction

The purpose of this project is to demonstrate a simple digital-out display using the LED Grove. Connect your equipment as shown in the image below: Connect the LED Grove to the D1/D2 Digital I/O jack on the Grove Shield. Arduino Pin D1 powers the Red LED on the Grove’s D1 connector, and Arduino Pin D2 powers the Green LED on the Grove’s D2 connector.
Now upload the following Arduino sketch:
// Project One - Double Blink // int del=500; // adjust for blink rate void setup() { pinMode(1, OUTPUT); pinMode(2, OUTPUT); } void loop() { digitalWrite(1, HIGH); digitalWrite(2, LOW); delay(del); digitalWrite(1, LOW); digitalWrite(2, HIGH); delay(del); }
As you can see, it is quite simple. The two LEDs alternately blink, with the delay between the two set by the variable del. However, in doing so you can experience for yourself how simple the Grove system is to use.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Project One - Blink



Project One - Blink

Introduction

The purpose of this project is to demonstrate a simple digital-out display using the LED twig. Connect your equipment as shown in the image below: Connect the LED Twig to the D1/D2 Digital I/O jack on the Grove Shield. Arduino Pin D1 powers the Green LED on the Twig’s SIG connector.
Now upload the following Arduino sketch:
// Project One - Double Blink // int del=500; // adjust for blink rate void setup() { pinMode(1, OUTPUT); } void loop() { digitalWrite(1, HIGH); delay(del); digitalWrite(1, LOW); delay(del); }
te simple. The LED alternately blink, with the delay between the two set by the variable del. However, in doing so you can experience for yourself how simple the Grove system is to use.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Project Four – Noise Maker



Project Four – Noise Maker

Introduction

The purpose of this sketch is to use the piezo buzzer to make a beeping noise. The potentiometer is used again as an analog input to vary the delay time. As you adjust the potentiometer, the speed of the beeps will change. The picture is incorrect - you need to Connect the Potentiometer to the Analog A0/A1 input jack, like it was in Project 3. The Potentiometer produces an analog voltage on its D1 output, which is connected to Arduino A0 analog input on the A0/A1 input jack. Connect the Buzzer to the D6/D7 Digital I/O Jack. The sketch uses Arduino Pin D6 to send power to the Buzzer on its D1 input.
Now upload the following Arduino sketch:
// Project Four - Noise maker // void setup() { pinMode(6, OUTPUT); } void loop() { digitalWrite(6, HIGH); delay(analogRead(0)); digitalWrite(6, LOW); delay(analogRead(0)); }
As you can see, the piezo can be used as another form of digital output. When using this Grove unit, don’t forget to set the output pin connected to the Grove back to LOW when you want the sound to turn off.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Project Five – Relay Control



Project Five – Relay Control

Introduction

In this project we will demonstrate using the relay . Using the button , button one will turn the relay on, and button two turns it off. As noted earlier, the relay can handle a peak voltage capability of 250V at 10 amps.
Even though you may be capable with low voltages and microelectronics, if you are not qualified for working with mains voltages, consult a licensed electrician to complete the work.
Connect the Twin Button to the D1/D2 input jack.
The Twin Button Grove’s red button uses the D1 connector to send a signal to the Arduino’s D1 digital input, and the green button uses the D2 connector to send a signal to the Arduino’s D2 digital input.
Connect the Relay to the D6/D7 input jack.
The Arduino’s D6 pin sends a signal to the Relay on the D1 connector. The Relay Grove’s red light indicates whether the relay is on or off, and the relay makes a clicking sound when it switches.
Now upload the following Arduino sketch:
// Project Five - Relay Control // void setup() { pinMode(1, INPUT); pinMode(2, INPUT); pinMode(6, OUTPUT); } void loop() { if (digitalRead(1)==HIGH) { digitalWrite(6, HIGH); delay(100); } if (digitalRead(2)==HIGH) { digitalWrite(6, LOW); } }
When using this with an XBee Carrier, please be aware that you should set output 16 low to ensure that the mosfet on the XBee carrier provides enough power to reliably pull in the relay
The reason for the delay function after setting the relay high or low is to allow the sketch to pause – in doing so ignoring the buttons for one tenth of a second. This is more commonly known as ‘software de-bouncing”. Although doing so may not seem necessary in this particular example, doing so is a good habit to start with.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Project Eight - Thermostat



Project Eight - Thermostat

Introduction

The final project in our series may seem complex, but is quite simple. We use the potentiometer to allow user input of a temperature value, and using the temperature sensor – if the ambient temperature rises above the value set via the potentiometer the relay is activated.
  1. Connect the Temperature Sensor to the Analog A0/A1 input jack, like it was in Project 7.
  2. The Grove produces an analog voltage on its D1 output, which is connected to Arduino A0 analog input on the A0/A1 input jack.
  3. Connect the Potentiometer to the Analog A4/A5 input jack.
  4. The Potentiometer produces an analog voltage on its D1 output, which is connected to Arduino A4 analog input on the A4/A5 input jack. Connect the Relay to the D2/D3 input jack.
  5. The Arduino’s D2 pin sends a signal to the Relay on the D1 connector. The Relay’s red light indicates whether the relay is on or off, and the relay makes a clicking sound when it switches.
Now upload the following Arduino sketch:
// Project Eight - Thermostat // int a,c,d; int z=3975; int relaypin=2; float b, q, resistance, temperature; void setup() { pinMode(relaypin, OUTPUT); } void loop() { a=analogRead(4); b=0.0488*a; c=int(b); q=analogRead(0); resistance=(float)(1023-q)*10000/q; temperature=1/(log(resistance/10000)/z+1/298.15)-273.15; d=int(temperature); if (d>=c) { digitalWrite(relaypin, HIGH); delay(500); } if (d<c) { digitalWrite(relaypin, LOW); delay(500); } }
Try turning the potentiometer to the right and left and see if the relay turns on or off.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking

Nose LED Kit



Nose LED Kit

Introduction

How To Assembly

How to solder battery terminals

How To put batteries

How to Hack

Please,see original Version of Nose LED(hanahotaru)’s manual
Nose LED Kit’s pin layout is different from Hanahotaru’s one.Please see following URL.

schematic

PR movie

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:
  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.
An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.
Happy hacking