

- #L298N MOTOR DRIVER SPECIFICATION RASPBERRY PI SOFTWARE DOWNLOAD#
- #L298N MOTOR DRIVER SPECIFICATION RASPBERRY PI DRIVERS#
Making a self driving car is not that easy, you will need to use Cameras, Lidars, GPS Trackers, etc to make a fully functional autonomous or self driving car. You can also make the cheapest version of the same project using Arduino Uno or Arduino Nano. So, this is basically a Line follower robot car, you simply draw black lines and then the Autonomous car follows these lines, you don’t have to give commands to control this car, this makes this car as the self driving car.
#L298N MOTOR DRIVER SPECIFICATION RASPBERRY PI SOFTWARE DOWNLOAD#
Here you can download the Python programs: L298N software download Technical description – L298N H-bridge The module for controlling the H-bridge as well as an example program for controlling the module are available for download on my site. The function “exit()” has no input parameter and ends the program cleanly by setting the GPIO outputs to False and releasing them again. With the input parameter “power” the direction of rotation (+/-) and the speed (0 – 1) is transferred. setMotorLeft(power) / setMotorRight(power) The second input parameter “mode” defines the direction of the selected motor. The first input parameter “motor” determines whether the left or right motor should be addressed. Within the program the individual functions are further explained in the source code. The Python module has the following functions for controlling the motors: With this program, which you integrate as a module into your main program, it is possible to control two motors of the robot. Python program – L298N H-bridgeįor the control of the L298N motor driver I have developed a Python program. With the pulse width modulation PWM it is possible to control the speed of the motors per channel. This motor driver is sufficient for the small DC motors in the robot cars built here. I often use this type of motor driver in my robot cars. The following motor driver is an inexpensive model which has no LEDs to show the status of the individual channels. L298N Dual H-Bridge DC motor driver modules for Arduino and Raspberry Pi For strong high performance brushless motors from RC model making special speed controllers are required. For small robots DC motors with a voltage of 3V to 24V and a current of 0.3A to 2A are used and for these an H-bridge as shown here is sufficient.

#L298N MOTOR DRIVER SPECIFICATION RASPBERRY PI DRIVERS#
There are different types of L298N motor drivers which are dependent on the used motors (DC motors, stepper motors, brushless motors etc.). A stepper motor operates with a current of 400mA to 1.2A at a voltage of 12V. A classic DC motor, on the other hand, works with voltages from 3V to 24V and a current of 600mA to 4A. Normally an SBC operates with voltages of 3.3V or 5.0V and a very weak current of about 30 mA. A Single Board Computer (SBC) like the Raspberyy Pi does not have the power to supply DC motors or stepper motors with sufficient energy. The logic of the Raspberry Pi computer cannot handle this task directly and therefore a motor driver is required. A L298N motor driver or dual H-Bridge / H-Bridge is used to control the direction and speed of motors.
