rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi

DOCX 3 pages 523.9 KB Free download

Page preview (3 pages)

Scroll down 👇
1 / 3
topshiriq maqsadi: rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi const int pingpin = 7; const int red=11; const int blue=10; int green=9; void setup() { // initialize serial communication: serial.begin(9600); pinmode(red,output); pinmode(blue,output); pinmode(green,output); } void loop() { // establish variables for duration of the ping, and the distance result // in inches and centimeters: long duration, inches, cm; // the ping))) is triggered by a high pulse of 2 or more microseconds. // give a short low pulse beforehand to ensure a clean high pulse: pinmode(pingpin, output); digitalwrite(pingpin, low); delaymicroseconds(2); digitalwrite(pingpin, high); delaymicroseconds(5); digitalwrite(pingpin, low); // the same pin is used to read the signal from the ping))): a high pulse // whose duration is the time (in microseconds) from the sending of the ping // to the reception of its echo off of an object. pinmode(pingpin, input); duration = pulsein(pingpin, high); // convert the time into a distance inches = microsecondstoinches(duration); …
2 / 3
we // take half of the distance travelled. return microseconds / 29 / 2; } image1.png image2.png image3.png
3 / 3
rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi - Page 3

Want to read more?

Download all 3 pages for free via Telegram.

Download full file

About "rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi"

topshiriq maqsadi: rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi const int pingpin = 7; const int red=11; const int blue=10; int green=9; void setup() { // initialize serial communication: serial.begin(9600); pinmode(red,output); pinmode(blue,output); pinmode(green,output); } void loop() { // establish variables for duration of the ping, and the distance result // in inches and centimeters: long duration, inches, cm; // the ping))) is triggered by a high pulse of 2 or more microseconds. // give a short low pulse beforehand to ensure a clean high pulse: pinmode(pingpin, output); digitalwrite(pingpin, low); delaymicroseconds(2); digitalwrite(pingpin, high); delaymicroseconds(5); digitalwrite(pingpin, low); // the same pin is used to read the signal from the ping))): a high pulse //...

This file contains 3 pages in DOCX format (523.9 KB). To download "rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi", click the Telegram button on the left.

Tags: rgb-yorug‘lik diodi. impuls ken… DOCX 3 pages Free download Telegram