Frequently Asked Questions
Mon-Fri, 9am to 5pm
U.S. Mountain Time:
Chat With Us
April 26, 2012
Tutorial - GPS Shield Assembly Guide
about a year ago
what’s the little piece of adhesive foam for?
is it the “double-sided sticky tape” that you refer to for mounting the module to the board?
about a year ago
ahh… you’re getting this stuff from servo city?
might you please explain, or sell separately, the “potentiometer/feedback” shaft as seen here and in your videos?
about 2 years ago
lol - that looked a lot better when I pasted it!!!
as opposed to the example above, here’s some code that will get this working right-away in true quadrature fashion.
sorry if it is wrong to post this here, but it’s free to the world, have spark-fun!
// code start
[put pound sign here!]include "digitalWriteFast.h" // google this and install it
const byte pin_A = 2; // connect white wire here
const byte pin_B = 3; // connect black wire here
int A_set = 0;
int B_set = 0;
long pulses = 0;
digitalWrite(pin_A, HIGH); // enables pull-up resistor
digitalWrite(pin_B, HIGH); // enables pull-up resistor
A_set = digitalRead(pin_A);
B_set = digitalRead(pin_B);
attachInterrupt(0, encoderPinChange_A, CHANGE); // pin 2
attachInterrupt(1, encoderPinChange_B, CHANGE); // pin 3
A_set = digitalReadFast2(pin_A) == HIGH;
pulses += (A_set != B_set) ? +1 : -1;
B_set = digitalReadFast2(pin_B) == HIGH;
pulses += (A_set == B_set) ? +1 : -1;
about 3 years ago
I’ve had great success in narrowing the gap on these simply by gluing a piece of tubing on the LED side, the transistor side… or both.
No public wish lists :(
Forgot your password?
No account? Register one!