Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Hey For a machatronics class, we are building a line follower and I need help writing the code for the robot. Resistivity of photoresistors and

image text in transcribed

Hey For a machatronics class, we are building a line follower and I need help writing the code for the robot.

Resistivity of photoresistors and electrical resistors is photo dependent, i.e., it varies as the intensity of light upon it varies. LEDs will be used in conjunction with photoresistors to create line detecting sensors. Light focused upon a white (or bright) surface is reflected at a different intensity than light reflected from a black surface. With LEDs as a light source, photoresistors will be used to detect this difference and thus detect the black line. You will be supplied with an Arduino Uno and a breadboard assembly (do not separate them) and the electrical components to construct your sensor system. You will use previous labs to aid in creating the LED/Photoresitor sensors circuitry. The microcontroller will obtain feedback from the sensor system and use the sensor information to control the robot. To accomplish this, the microcontroller will need to be programmed. Lab 2 supplies you with code containing basic functions for obtaining feedback from the photoresistors, generating signals to control the servos, a proportional control, etc. You will recall from Lab 2 that varying the input signal to continuous rotation servos varies the speed of rotation and that can be used to control the speed and direction of your robots. To achieve a robust control system, you'll need to complete a PID control to maximize the controllability of your robot. In addition, you'll need to design the mechanical chassis of the robot to house the components of the robot. Resistivity of photoresistors and electrical resistors is photo dependent, i.e., it varies as the intensity of light upon it varies. LEDs will be used in conjunction with photoresistors to create line detecting sensors. Light focused upon a white (or bright) surface is reflected at a different intensity than light reflected from a black surface. With LEDs as a light source, photoresistors will be used to detect this difference and thus detect the black line. You will be supplied with an Arduino Uno and a breadboard assembly (do not separate them) and the electrical components to construct your sensor system. You will use previous labs to aid in creating the LED/Photoresitor sensors circuitry. The microcontroller will obtain feedback from the sensor system and use the sensor information to control the robot. To accomplish this, the microcontroller will need to be programmed. Lab 2 supplies you with code containing basic functions for obtaining feedback from the photoresistors, generating signals to control the servos, a proportional control, etc. You will recall from Lab 2 that varying the input signal to continuous rotation servos varies the speed of rotation and that can be used to control the speed and direction of your robots. To achieve a robust control system, you'll need to complete a PID control to maximize the controllability of your robot. In addition, you'll need to design the mechanical chassis of the robot to house the components of the robot

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions