Friday, May 26, 2017

Angle Encoder Pin Translation








The angle encoder sends a series of ones and zeros depending on what direction the encoder is turning. The above two images allow us to translate the numbers to a direction - either clockwise or counterclockwise.

***Note: The following example uses specific values in order to demonstrate how to use the charts. These values are shown in orange on the images at the bottom of this page.

Looking at the first image, if you take the first two numbers for both pins A and B and if you read them from left to right you will have PA = 0, PB = 0, CA = 0, and CB = 1.  0001 translates to a clockwise rotation on the second image. Referring back to the top right of the first image, our result of clockwise is confirmed. You are able to repeat this process for any of these combinations and translate the encoder's pin values to what direction it's actually rotating in.






Wednesday, May 24, 2017

Vernier Rotary Motion Sensor & Logger Pro

Using the rotary motion sensor, lab quest, logger pro, and a bunch of cords, I was able to plot the angle (radians) and the velocity (rad/s) that the motion sensor was being turned at. You can also plot the graph for the acceleration of the motion sensor. 

The VRMS goes into the Digital 1 port on the lab quest and then the lab quest is connected to a laptop with a USB cord (pictured below). 

You can also just use the lab quest to plot the graphs and analyze them if you don't want to use a computer.





Monday, May 22, 2017

Vernier Rotary Motion Sensor Arduino code

Day 1 - May 22, 2017
Nico Carello

By plugging in the Vernier Rotary Motion Sensor (VRMS) to Digital 1 of the Vernier sensor interface shield, which is attached to an Arduino Uno, I ran the code found here:
https://www.vernier.com/engineering/arduino/digital-sensors/rotary-motion/

This code prints the current angle that the VRMS is reading. The serial monitor of the arduino ide will look like this:

This is the final setup: 

MIT Haystack  Small Radio Telescope Documentation

http://www.haystack.edu/edu/undergrad/srt/index.html
Arduino / Vernier

http://www.vernier.com/engineering/arduino/