2 hours later…
9:43 AM
1 hour later…
10:55 AM
2 hours later…
12:40 PM
1 hour later…
1:45 PM
Now I have written a very basic test function to run the N20 motor for four seconds. Next step is modifying this function to run the motor at specified speed (duty cycle) for a specific time (as small as a millisecond).
# L298N Config/Functions l298nEnblPinNum = 20 l298nIn1PinNum = 21 l298nIn2PinNum = 22 def l298nDsblDriver(enblPinNum): enblPin = gpOutPinDict[str(enblPinNum)] setGpOutPinLow(enblPin) return def l298nSetDirCcw(in1PinNum, in2PinNum): in1Pin = gpOutPinDict[str(in1PinNum)] in2Pin = gpOutPinDict[str(in2PinNum)] setGpOutPinLow(in1Pin) setGpOutPinHigh(in2Pin) return def l298nSetDirCw(in1PinNum, in2PinNum): in1Pin = gpOutPinDict[str(in1PinNum)] in2Pin = gpOutPinDict[str(in2PinNum)]
« first day (1 day earlier) ← previous day next day → last day (25 days later) »
Transcript for
Mar5
Mar '226
Mar7
Discussion between tlfong01 and Justi…
Imported from a comment discussion on raspberrypi.stackexchang...