Hello. We would like to ask for help with a school assignment that they have received

The professor gave us this assignment and does not want to explain anything to us except that the cart must follow the black lines through an obstacle course. That is all we were told.

I started the assignment by buying the components that were written on the board:

  • H-BRIDGE / MOST L298
  • Arduino Mega 2560 Rev
  • HC-SR04 Ultrasonic sensor
  • 5 Channel IR Infrared TCRT5000 Line Detection
  • Switch
  • Electric motor N30 dc 12V
  • Fuse 1 ampere
    I would be very grateful if someone could send me how to connect these components. I am in the first year of high school and this is all new to me because I have never dealt with this before.
    Thank you.

Have you tried to google this?
There is millions of examples there.

Do not expect us to do your homework. We are here to help you...

How will you steer your robot?
You need either 2 motors or one motor and one servo...

Your teacher could tell you to buy this kit (Fig-1) and learn things while assembling it.


Figure-1:

or

this one (Fig-2).


Figure-2:

I looked at it and tried to do it as it was supposed to be done, but the chip burned out. And I'm already on my third one. I'm asking this to get some advice on how to do it. I didn't have another option. I apologize.

1. Learn the operation of Arduino MEGA by showing Hello message on the Serial Monitor and blinking onboard LED. An d ten ...

2. Learn how to connect your Motor wit MEGA via L298 Motor Driver. show the piture of your Motor and Motor Driver. and ten...

3. Learn how to program HC-SR04 Ultrasonic sensor. and then...

4. etc.

I sincerely apologize, I will delete the post as it seems I offended you

The teacher said we shouldn't buy them. We should make them ourselves.

I have four electric motors.

You need basic structure which you cannot make at home. Can you make Motor? Can you make wheel? So, talk with you teacher aout buying the addition stuff (Fig-1, 2 of post #4) for the project.

I was not offended.
It seemed from your first post that you did not do any effort.
Please post your efforts so far.
What did you build? (Picture, schematic).
What failed?
What code did you use.
If we have that, we can find out why you have burnt 3 chips so far.
We will be more than happy to help you further.
Basic hint: start small!
Let one motor run forward and backward...
Add another motor...
Add a sensor...
Make the sensor control the motors..
Etc.




That's all I've done so far. Batteries and fuses are not shown in the pictures.

always start at Arduino Project Hub

search for “line following robot”

Thank you for the advice. It was really good.

Very neat. Well done!

But, if this is all you have done so far, how come you burnt 3 chips???

How did you burn the chip instead of the fuse?

What chip?

You have L298N which can drive two motors.
You have two 12vdc motors.

Do you have a 12vdc~14vdc power supply?

Test each motor by applying power supply voltage to see the motors run, before connecting the motors to the L298N.

The L298N will distribute power from the power supply to the two motors, as well as 5vdc to power your Arduino.

Search "arduino L298N 12v motors" for how to connect and code.