Skip to main content

Posts

L298N Motor Drive Controller - Reference Guide

Navigation - L298N Quick Reference Guide: IN1 and IN2 = Right Motors IN3 and IN4 = Left Motors ENA and ENB = controls the speed of the right and left motors via PWM. ENA or ENB IN1 or IN3 IN2 or IN4 Motor Action 0 X X Stop 1 0 0 Brake 1 0 1 Forward 1 1 0 Backward 1 1 1 Brake Connection on the Arduino:  Pin Connection L298N Arduino Microcontroller ENA 10 (~PWM) ENB 5(~PWM) IN1 9 IN2 8 IN3 7 IN4 6 Car Movement Directions vs. Wheels Rotation Car Moves Forward Car Moves Backward Car Stops Car Turns Left Car Turns Right Left Wheels\Motors Forward Back Stop Back Forward Right Wheels\Motors For...

Write a C Program to Determine the roots of the quadratic equation (ax^2 + bx + c = 0) [Code and Explanation]

Determine the roots of the quadratic equation Using the well-known quadratic formula Allow for the possibility that one of the constants has a value of zero, and that the quantity is less than or equal to zero. Test the program using the following sets of data:

Write a C Program That Requests an Integer Value from the User. (Code and Explanation)

Write a C program that requests an integer value from the user. If the value is between 1 and 100, print “OK;” otherwise, print “Out of range”.