Simple motor circuit please help

hi can someone please help. I need to hand in my homework in less than a week, please someone give me the code and how to place the wire in the Arduino board.

I need to make a system whenever the infrared IR sensor detects an object, inactivates the motor and the temperature and humidity sensor. And the temperature and humidity sensor controls the speed of the motor. I only have a Arduino board, bread board, battery box, some wires and the two sensors. I don't have any resistors and transistors.

Please someone help, I beg u

Hello timlo151214

Post your sketch, well formated, with comments and in so called code tags "</>" and schematic to see how we can help.
Have a nice day and enjoy coding in C++.

the problem is, i don't know how to code, and also i don't have a sketch, im so sorry

Hello timlo151214

Run some tutorials for the hardware selected.
If you are happy with the results of the tutorials you can merge these to your project.

i have looked up a lot of tutorials, but they didn't help

Then likely you’re in a bit of trouble.

How did you go in the course prior to this?
Maybe your teacher can help you thorough the initial stages, and we can help get you along from there.

You’ll need a motor and driver or transistor and resistor to make the motor run.
(Read about PWM to control a simple DC motor)

You seem to have been lazy about starting this project.

I'm pretty sure that you didn't received this task on 22. December 2022 and have to do it over chrismas and be finished on 2nd January 2023.

I hope you have learned this lesson now:

If you get a task / project to do that is very new to you
hurry up to ask experts "how long does it usually take to finish such a project?"

If you can contact your teacher you should contact your teacher as soon as possible
Saying that you are sorry for beeing so lazy - if you can have 14 days to finish this project.

If you get this permission you have 13 days with each day 8 to 10 hours work to learn about electronics and learn about how to write code.

If you don't get this permission in my opinion you are worth receiving a bad grade for the failed project

depends very much on the sensors if it will work or not.

How should anybody even write code if it is totally unclear what kind of sensors you have??

The microcontroller-world is not superstandardised like USB-devices.
You have to take care of more than just "does the plug fit into the socket?"

Hurry up

  • writing the exact type of sensors that you have
    -writing the exact type of Arduino that you have (Arduino-Uno, Arduino-Mega, Arduino-Nano, Arduino-micro etc.)
    Post pictures of the sensors

To become able to post pictures proceed to trust-level one
Get to trust level 1 by…

  • Entering at least 5 topics
  • Reading at least 30 posts
  • Spend a total of 10 minutes reading posts

best regards Stefan

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.