I am making some code for a robot i am trying to make (just a simple obstacle detection robot) and i couldent find anything for my specifacations, if you have seen any recources please tell me or give me a link to them!
9v battery (plugged into the +5 v source of the l298)
protrinket 5v usb
dc motors max 6v (i need these to just be 2 pwm pins)
motor driver l298 (4 output pins)
hc-sro4 ultrasonic sensor
if you cant find any code online for 2 motors just tell me if you find code for one motor and then from their i can modafiy the code!
i also just wanna add that littearly all i need is something detected about 5 inches from the sensor will trigger one or 2 motors.
anyways thanks for helping!