Skip to content

Deadshot0x7/sonic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Sonic

An Arduino Libary for Ultrasinic Module that help to find the value in three different things

  1. Centimeters
  2. Inches
  3. foot And has Serial Monitor to display the things distance covered by the Echopin in the respectivey Units

Feture's

  1. Centimeters (cm):
  • Description: Centimeters are a part of the metric system and are widely used for precise distance measurements. In the context of Arduino and sensors, measurements in centimeters offer high accuracy, which is essential for projects that require fine details. This unit is particularly favored in scientific and engineering applications where metric measurements are the standard.
  1. Inches (in):
  • Description: Inches are a key unit in the imperial system, commonly used in the United States and other countries for a variety of applications. When distance is measured in inches using an Arduino setup, it caters to projects or applications where imperial measurements are preferred or required. This can be particularly relevant in robotics, carpentry, or installations that align with U.S.-based standards.
  1. Feet (ft):
  • Description: Feet, another imperial unit, are used for measuring larger distances. In an Arduino project, displaying distance in feet can be helpful in applications like room mapping, obstacle navigation for larger robots, or any situation where distance is more practical to express in a larger unit than inches or centimeters. It's especially useful in construction or interior design projects where measurements are commonly given in feet. Each of these units serves a specific pu

Usage/Examples

#include<sonic.h>
 
int trigpin=11 , echopin=12 ;
int budrate=9600;
long duration;
int distance;
void setup() 
{
pinMode(trigPin, OUTPUT); 
pinMode(echoPin, INPUT);
Serial.begin(9600); 
}
void loop()
 {

b=cms(trigpin,echopin,9600)
println(b)

}

Like

Give our repository a little love! 🌟 Click that star button to show your appreciation. Your support means the world to us! 🚀💖

License

GPL

🔗 Links

linkedin twitter