Changes between Version 4 and Version 5 of MiniBotDrive
- Timestamp:
- Jul 17, 2017, 9:55:17 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MiniBotDrive
v4 v5 7 7 Note that in all cases, power to the motors is supplied by the battery through the motor controller and *not* by the !PiBotZero power supply. 8 8 9 The !PiBot Image libraries include an [http://wiki.team2537.com/browser/pibot/trunk/src/java/com/tenetics/pibot/L298.java L298 motor control class] that is similar to the motor control classes offered byWPILib.9 The !PiBot Image libraries include an [http://wiki.team2537.com/browser/pibot/trunk/src/java/com/tenetics/pibot/L298.java L298 motor control class] and a [http://wiki.team2537.com/browser/pibot/trunk/src/java/com/tenetics/pibot/Servo.java Servo control class] that are similar to the classes offered in WPILib. 10 10 11 11 The Raspberry Pi can also be used for motor control in limited fashion without a !PiBotZero; the Pi Zero has 2 hardware-supported PWM outputs on GPIO18, GPIO19: [http://circuitdigest.com/microcontroller-projects/raspberry-pi-pwm-tutorial Pi PWM Tutorial] [https://www.npmjs.com/package/raspi-pwm PWM via WiringPi] through some clever programming, additional hardware-assisted PWM can be implemented via DMA: [https://pythonhosted.org/RPIO/pwm_py.html PWM via DMA]. However, note that the PWM outputs of the raspberry Pi are at 3.3 volt levels which may not be suitable for most motor controllers.