The motor and the L298N
Section 7: Motors and the carLesson 7.1 · ⏱ 8 min
The Arduino can't run a big motor on its own, so we use the L298N board, which takes orders from the Arduino and gives the two motors the battery's power.

📌 Note
Speed from 0 to 255: 100 is slow, and 255 is the fastest.
📌 Another example: faster
Speed 255 (top speed) instead of 200.


✍️ Practise
Watch the motor's speed.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
✍️ Practise
The car goes forward, then back.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
The car goes backward.
👀 Show the solution🙈 Hide the solution


Result: it goes backward.
Medium
A slow speed: 100.
👀 Show the solution🙈 Hide the solution


Result: it moves slowly.
Hard
It moves for two seconds, then stops.
👀 Show the solution🙈 Hide the solution


Result: it stops after two seconds.

