Write a sumo robot c program

Assignment Help C/C++ Programming
Reference no: EM13166613

Write a sumo robot c program for an aduino board, using 2 motors. 2 phototransistors and 2 Led sensors( sensors 2 for the front and 2 for the back ) which are going to be responsible for keping the robot in the sumo ring, making sure the robot comes back into the ring when ever the sensors see the white boundry line.In addition add the code for 2 Sharp IR sensors(mounted to the front) which are going to be responsible for searching for the other robot by turning clockwise and driving towards it.

pseudocode:

  • //scanner code

if sharp IR detects object

    scanning IR turns left

else //no object detected

    scanning IR turns right

//robot motion code

if scanner is pointing far left

    robot turns left

else if scanner is pointing far right

    robot turns right

else //scanner pointing forward

    robot drives straight

Note: Assume any pins for the sensors example A0,A1,A2

Reference no: EM13166613

Questions Cloud

State step-wise mechanism for the acid catalyzed dehydration : Give the complete, step-wise mechanism for the acid catalyzed dehydration of 2-methyl-1-butanol. Account for the formation of all products
Calculate the molar mass of the biomolecule : Calculate the molar mass of the biomolecule. for carbon tetrachloride, the boiling-point constant is 5.03 degrees C x kg/mol, and the boiling point of pure carbon tetrachloride is 76.50 degrees C.
The quad procedure : What is the largest value of X that can be used with the QUAD procedure (see page 172)? Hint: At no time may any temporary result exceed 65535
State what is the molar concentration : A solution of H2SO4(aq) with a molal concentration of 5.25 m has a density of 1.266 g/mL. What is the molar concentration of this
Write a sumo robot c program : Write a sumo robot c program for an aduino board, using 2 motors. 2 phototransistors and 2 Led sensors( sensors 2 for the front and 2 for the back ) which are going to be responsible for keping the robot in the sumo ring, making sure the robot com..
Allows the user to enter a temperature and whether : Write a program that allows the user to enter a temperature and whether the temperature is stated in Celsius or Fahrenheit...or whethe
Php mysql insertion form that will insert name in customer : php mysql insertion form that will insert name in customer table and have product field that will be a dropdown menu getting product names from the product table database. When inserted it will save student name and product name in relational table. ..
Compute the number of units in ending inventory : Compute cost of goods available for sale and the number of units available for sale and compute the number of units in ending inventory.
You should use pure recursive calls : You should use pure recursive calls completely and count the number of calls the program makes. You should count how many times recursive calls were made.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  An integer on this system is 4 bytes long

Assume the following for the program below. An integer on this system is 4 bytes long. The memory address where the array "a[]" was created begins at location 8000. a. #include

  Input parameters, and returns nothing

Write a function called ten2one(), that takes no input parameters, and returns nothing (void). The body of the function must include a loop that counts from 10 down to 1, printing the count value each time in the loop. The output should look like (no..

  Searching f and removing certain states from the hash table

use the class hashT, ''Hashing: Implementation Using Quadratic Probing,'' which uses quadratic probing to resolve collision, to create a hash table to keep track of each state's information. Use the state's name as the key to determine the hash addre..

  Write a c++ program that prompts the user for a double

Write a C++ program that prompts the user for a double that should be between 0 and 100. If the value entered is outside of the interval the program will print an error message. The program should continue to repeat until the user enters an appropria..

  Calculate and display the number of units of electricity

The manager of PG&E wants a program that calculates a customer's electric bill. He will enter the current and previous meter readings.

  Create a class called point3d

Create a class called Point3D to represent 3D point in space, a class called Sphere and a class called Cylinder. The sphere is characterized by its center point and the radius while the Cylinder can be characterized by its center point, radius and he..

  Develop a simple poker game

Develop a simple poker game

  In psuedocode, design an application

In psuedocode, design an application that has an array of at least 20 integers. It should call a module that uses the sequential search algorithm to locate one of the values

  . write a segment of code that prints the number of elements

Assuming the array x has been defined as: int x[n]; for some n and that values have been assigned to all the elements. Write a segment of code that prints the number of elements between (but not including) the largest and smallest values in the array..

  Linked list in c++

If the following C++ code is valid, show the output. If it is invalid, explain why.

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel ..

  For the employee class make

For the Employee class make sure that no person is underage or too old (less than 16 or greater than 80). Do nothing for the set function if the person's age is out of range.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd