rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi

DOCX 3 sahifa 523,9 KB Bepul yuklash

Sahifa ko'rinishi (3 sahifa)

Pastga aylantiring 👇
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

Ko'proq o'qimoqchimisiz?

Barcha 3 sahifani Telegram orqali bepul yuklab oling.

To'liq faylni yuklab olish

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

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 //...

Bu fayl DOCX formatida 3 sahifadan iborat (523,9 KB). "rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi"ni yuklab olish uchun chap tomondagi Telegram tugmasini bosing.

Teglar: rgb-yorug‘lik diodi. impuls ken… DOCX 3 sahifa Bepul yuklash Telegram