Joy-it SEN-IR01 Manual de Usario

Lee a continuación 📖 el manual en español para Joy-it SEN-IR01 (6 páginas) en la categoría No categorizado. Esta guía fue útil para 2 personas y fue valorada con 4.5 estrellas en promedio por 2 usuarios

Página 1/6
www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
INFRARED DISTANCE SENSOR
SEN IR01-
1. GENERAL INFORMATION
Dear customer,
thank you very much for choosing our product.
In following, we will introduce you to what to observe while starting up
and using this product.
Should you encounter any unexpected problems during use, please do
not hesitate to contact us.
Note that for the full range of the sensor, it can only be measured ac-
curately with a reflective object, such as white paper.
www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
2. USAGE WITH ARDUINO
1. Connection
Arduino SEN IR01 -
5 V Vcc
GND GND
A0 Data
2. Code example
We provide the following code example to test your infrared distance
sensor. In this code example the distance to the next object is displayed
on the serial monitor. Note, that you have to set your serial monitor to a
baud rate of 9600 to be able to see this output.
To run this code example, copy the following code into your Arduino IDE
and upload it to your Arduino using the button.Upload
www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
// Declaration of the variables
int IRPin = A0; // Pin of the IR sensor
float IRDistance = 0;
void setup() {
(9600);Serial.begin
}
float get_Distance(){
// Calculation of the distance
value = (IRPin);int analogRead
voltage = (value, 0, 1024, 0, 5000) / 1000.0;float map
IRDistance = 28.153 * (voltage, 1.175);pow -
IRDistance;return
}
void loop() {
// Output of the distance
Serial.print("Distance: ");
(get_Distance()); Serial.print // Calling the get_Distance method
);Serial.println(" cm"
);Serial.println(" "----------------------
(1000); delay // 1 second interruption
}
3. USAGE WITH RASPBERRY PI
1. Connection

Especificaciones del producto

Marca: Joy-it
Categoría: No categorizado
Modelo: SEN-IR01

¿Necesitas ayuda?

Si necesitas ayuda con Joy-it SEN-IR01 haz una pregunta a continuación y otros usuarios te responderán




No categorizado Joy-it Manuales

No categorizado Manuales

Últimos No categorizado Manuales