![]() # Initializing the Camera device () cam = (" /dev/video0", (640, 480)) // Here declare the arduino port home_dir = getenv('HOME') Import serial import pygame import pygame.camera from os import getenv from pygame.locals import * from datetime import datetime as dt Python program is used for getting the input signal from sensor via arduino, so that it can capture the obstacle according to the sensor detection. In this project i am using web camera that capture the image based on the detection. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button Arduino UNO. For reference you need more information about ultrasonic visit this link Ultrasonic.Īrduino is an open-source prototyping platform based on easy-to-use hardware and software.There are different types of arduino board available as per our requirements we select the boards in this project i am choosing the arduino UNO is a microcontroller board based on the ATmega328 (Datasheet). Ultrasonic sensor converts sound wave into electrical signal, they do both transmitting and receiving the signal, It will act like as an Transducer.Ultrasonic generates high frequency sound waves so the echo is received back to the sensor in between the transmit time and receiving time is calculated by the arduino and it will give the input to python.
0 Comments
Leave a Reply. |