The first step in a robotics project is to get a motor spinning. Once you've done that you quickly learn that not all motors go the same speed, even if they are the same part number! There are always variations that relate to voltage, environment, and manufacturing changes. So, the second step is to figure out how fast its going! Turns out that's not so easy, but the best way to get started is to add an encoder wheel and an optical or magnetic counter. As the motor turns, the attached encoder wheel spins, causing the counter to detect each passing spoke and that lets your microcontroller count and determine speed.
If you want to do one better, add a second counter, and now you can tell direction as well as speed! All this wiring is kind of a pain, so that's why this motor is really nice! It has a magnetic wheel and two hall effect sensors already attached. Using this motor is a breeze, and its a nice strong motor as well
Provide 7V DC nominal to the brown and yellow wires - these connect to your motor driver, and can be PWM'd for speed adjustment and direction by using an H-bridge.
Connect the black wire to your microcontroller ground pin, and the red wire to 3-5VDC (we tried both, works fine). Then you can read the hall effect outputs on the white and green wires. We have an example sketch here for Arduino, it can be adapted to other languages - basically you just want to interrupt on one of the encoder pins, use count the time since the last interrupt, and multiply the count time by 12-counts-per-revolution and the 1:20 gear ratio.
- Dimensions (excluding shaft): 47.3mm x 24.8mm
- Wire length: approx 14.5cm
Pre-Orders! Here's how it works:
- You place your order as usual, all pre-order products are clearly marked as such
- We then import the stock you have requested in our next supplier shipment (Currently every Wednesday)
- As soon as the stock arrives in our warehouse, we will ship your full order to you (usually within 7-10 working days, but this can be longer!)
Item Specific Notes:
- The Official Raspberry Pi Beginner's Book - With Raspberry Pi Zero! - Stock is in, we're just waiting for some packaging! Expected to ship 12th Dec 2017
Payment & Accreditations
Your payment information is processed securely. We do not store credit card details nor have access to your credit card information.