Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Python code for Raspberry Pi 3 to glow LED on detecting obstacle | Team MAST

  • Team MAST
  • 2019-03-18
  • 3903
Python code for Raspberry Pi 3 to glow LED on detecting obstacle | Team MAST
Raspberry piRaspberry pi 3Raspberry pi 3 BLEDIR sensorobstacle detectionpythoncodetutorialpython tutorialpython codepython code explanationpin out diagram of raspberry pimicrocontrollerraspberry pi 3 python tutorial
  • ok logo

Скачать Python code for Raspberry Pi 3 to glow LED on detecting obstacle | Team MAST бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Python code for Raspberry Pi 3 to glow LED on detecting obstacle | Team MAST или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Python code for Raspberry Pi 3 to glow LED on detecting obstacle | Team MAST бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Python code for Raspberry Pi 3 to glow LED on detecting obstacle | Team MAST

In video I show how to connect an LED with Raspberry Pi 3, also I explain the python code to perform task after an obstacle is detected by the IR obstacle sensor which too is connected to Raspberry Pi 3.

This video is basically the continuation of my previous video (in which I explained you how to connect IR obstacle sensor with Raspberry Pi). Here in this video I first explain you how to connect an LED with Raspberry Pi 3 i.e which wire of an LED is to be connected to which pin of Raspberry Pi.

After we are done with the connection, I explain you simple python code line-wise which would perform some tasks (would print "Obstacle detected..!!" on console and would glow the LED) whenever an obstacle is detected.

The python code which I wrote is as follows
------------------------------------------------------------------------
import RPi.GPIO as IO
IO.setwarnings(False)
IO.setmode(IO.BOARD)
IO.setup(8, IO.IN)
IO.setup(3, IO.OUT)

while 1:
if(IO.input(8) == False):
print("Obstacle detected !!")
IO.output(3, True)
else:
IO.output(3, False)
---------------------------------------------------------------------------

Note - Before just using the above code, make sure to establish the connections in the same way as I did, i.e to which pins of Raspberry Pi did I connect IR obstacle sensor and LED and so forth.

Go through my previous video first in which I explained you how to connect IR sensor to Raspberry Pi 3 :    • Connecting IR sensor to Raspberry Pi 3 | O...  

If you had any of these queries
raspberry pi 3 python programming tutorial
Connecting LED with Raspberry Pi 3 B
raspberry pi 3 python projects
raspberry pi 3 python programming
raspberry pi 3 python coding
raspberry pi 3 python gpio tutorial
How to Write and Run a Python Program on the Raspberry Pi
Start programming on Raspberry Pi with Python
Programming GPIO example
Getting Started with the Raspberry Pi
raspberry pi python gpio
raspberry pi coding for beginners
Building an Obstacle Avoiding Bot Using Raspberry PI
How to Make an Obstacle-Avoiding Robot With Raspberry Pi
Detecting obstacle with IR (Infrared) Sensor Raspberry Pi 3
Boom you have landed to the perfect place, as this video will guide you in the best way possible.

In case you have any queries or concerns you can get back to me via the comment section below.

Make sure to subscribe our channel Team MAST to never miss our new upload :    / teammast  

#RaspberryPi3 #PythonCode #LED #IRSensor #ObstacleSensor

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]