Search the Community
Showing results for tags 'encoder'.
-
Hallo guys, I am working on MSP430 and want to use incremental rotary encoder to control the menu, that I will later make. I decide to try to flicker the both LED first to see if I have the right programm to take input from the rotary encoder. I have the A_Output (CLK) and B_Output (DT) on Pins 2.1 and 2.2 #include "msp430g2553.h" char c_P2IN; void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P2OUT |= 0x07; P2REN |= 0x07; P1DIR |= 0x41; // Set P1.0 and P1.6 to output direction P2IE |= 0x07; // P2 (Bit0, Bit1 und Bit2) interrupt enabled
-
This is an Energia sketch designed to be used with a rotary encoder with push button. The difference is that input can be made coarser or finer by pushing the button. The need came about because I wanted to be able to adjust a frequency generator between 1 and 40 MHz with fine adjustment on the order of 1 Hz with a simple interface on the board. A potentiometer would not work due to low resolution and jitter. Buttons or a simple encoder might work but it would take a lot of button pushing or knob turning to get from 10 Hz to 10 MHz. I thought about a solution where the rate of turning
-
I had a lack of digital input pins for a pushbutton rotary encoder switch so I used an analog input. I wrote up my results here: https://analog10.com/posts/rotary_encoder_analog_input.html It works pretty well except for an occasional reverse tick but that's probably a flaw in my code.
-
anyone used a continuous rotation resistor for a dc motor for tracking position like this one from digikey: http://www.digikey.com/product-detail/en/3382G-1-103G/3382G-1-103GTR-ND/1944266 manufacturer is Bourns. I need to track rotation of motor, to linear motion, like a lead screw. motor is 6v, ~1500rpm. only need to track about 20 revolutions in either direction. anyone have any other cheap suggestions, that are relatively small in size.
- 5 replies
-
- encoder
- variable resistor
-
(and 3 more)
Tagged with:
-
What have you guys used for stepper motor position feedback? I'm aware of shaft encoders, hall effect sensors, magnet and reed switches... but haven't used any to actually get feedback/control. Code/Links appreciated (especially Energia sketches)! It's for use with a little open source 1000PSI hydraulic pump that I'm iterating. The stepper feedback is for accurate hydraulic flow measurement, which will help us zero in on hydraulic positioning (not an easy thing!) curious/interested (blogpost -no BS, no commercials): http://www.arduinoforgoodnotevil.blogspot.ca/2013/07/arduino-1000
- 11 replies
-
- hydraulics
- stepper
-
(and 2 more)
Tagged with:
-
I need to measure the speed of a encoder, which creates pulses approx. 4 times per second. I'm not sure whether the timer can do that, or how to code it. The encoder is connected to the MSP, and i get signals in the 'coolterm' for testing purposes, but i need to figure out a way to get the timer to measure the time (ms) between each pulse. Thanks in advance Jais