GithubHelp home page GithubHelp logo

seeed_grove_ultrasonic_ranger_g's Introduction

Grove_Ultrasonic_Ranger

Grove_Ultrasonic_Ranger

This Grove - ultrasonic sensor is a non-contact distance measurement module which works at 42KHz, suitable for projects that require middle distance measurement.

Note:

This library is used for Seeed graphical programming Project only.

Library Name:Grove_Ultrasonic_Ranger

API

/* 
 * Function Name: UltrasonicRangerRead 
 * Input: PinName, pin to connect 
 * Return: distance in cm   
 */ 
int UltrasonicRangerRead(int PinName); 

Test Case

Get data from then sensor per 100ms, and print to Serial monitor.   
// test for seeed graphical programming project 
// loovee @ 2015-8-4 
 
#include "Ultrasonic.h" 
 
Ultrasonic ultrasonic; 
const int pin = 2;          // ultrasonic connect to D2 
 
void setup() 
{ 
    Serial.begin(115200); 
    Serial.println("test for Seeed Graphical programming project"); 
    Serial.println("Ultrasonic"); 
} 
 
void loop() 
{ 
    int dist_cm = ultrasonic.UltrasonicRangerRead(pin);         // read data from ultrasonic ranger 
    Serial.println(dist_cm);                                    // display it 
    delay(100); 
}

This software is written by Loovee for for Seeed Technology Inc. and is licensed under The MIT License. Check License.txt/LICENSE for the details of MIT license.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed is a hardware innovation platform for makers to grow inspirations into differentiating products. By working closely with technology providers of all scale, Seeed provides accessible technologies with quality, speed and supply chain knowledge. When prototypes are ready to iterate, Seeed helps productize 1 to 1,000 pcs using in-house engineering, supply chain management and agile manufacture forces. Seeed also team up with incubators, Chinese tech ecosystem, investors and distribution channels to portal Maker startups beyond.

Analytics

seeed_grove_ultrasonic_ranger_g's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.