l298n motor controller - Raspberry Pi Forums


i got 1 of these off ebay, dont realy know how use , bit wary of tutorials out there since saw mention motor controller video wrong , mess pi. used 1 of these before , know how works?

are using brushed dc motor (simpler) or stepper?

i'm guessing it's commonly seen square pcb. there 2 h-bridges, control inputs grouped bridge {ena, in1, in2} , bridge b {enb, in3, in4} corresponding outputs {out1, out2} & {out3, out4}.

commonly, brushed dc motor, you'd have pwm on ena input set speed, , set direction taking either in1 or in2 high. can control 2 brushed dc motors board.

can achieve braking setting in1 & in2 same logic level, either both 0 or both 1. full braking pwm @ 100%.


raspberrypi



Comments