You are on page 1of 7

/*

ADXL3xx

Reads an Analog Devices ADXL3xx accelerometer and communicates the


acceleration to the computer. The pins used are designed to be easily
compatible with the breakout boards from Sparkfun, available from:
http://www.sparkfun.com/commerce/categories.php?c=80

http://www.arduino.cc/en/Tutorial/ADXL3xx

The circuit:
analog 0: accelerometer self test
analog 1: z-axis
analog 2: y-axis
analog 3: x-axis
analog 4: ground
analog 5: vcc

created 2 Jul 2008


by David A. Mellis
modified 30 Aug 2011
by Tom Igoe

This example code is in the public domain.

*/

// these constants describe the pins. They won't change:


const int groundpin = 18;

// analog input pin 4 -- ground

const int powerpin = 19;

// analog input pin 5 -- voltage

const int xpin = A3;

// x-axis of the accelerometer

const int ypin = A2;

// y-axis

const int zpin = A1;

// z-axis (only on 3-axis models)

void setup()
{
// initialize the serial communications:
Serial.begin(9600);

// Provide ground and power by using the analog inputs as normal


// digital pins. This makes it possible to directly connect the
// breakout board to the Arduino. If you use the normal 5V and
// GND pins on the Arduino, you can remove these lines.
pinMode(groundpin, OUTPUT);
pinMode(powerpin, OUTPUT);
digitalWrite(groundpin, LOW);
digitalWrite(powerpin, HIGH);
}

void loop()
{
// print the sensor values:
Serial.print(analogRead(xpin));
// print a tab between values:
Serial.print("\t");
Serial.print(analogRead(ypin));
// print a tab between values:
Serial.print("\t");
Serial.print(analogRead(zpin));
Serial.println();
// delay before next reading:
delay(100);
}
Screen-reader users, click here to turn off Google Instant.
Google
About 418,000 results (0.68 seconds)
Search Results
I need code to run to modified 360 degrees servo motors. - Page 2 ...
forum.arduino.cc/index.php?topic=107238.15
May 27, 2012 - Topic: I need code to run to modified 360 degrees servo motors. (Read 14482 times)
previous topic - next topic ...
I need code to run to modified 360 degrees servo motors.
24 May 2012
360 degree servos?
13 Mar 2012

360 degree addressable servo rotation possible?


12 Feb 2012
How do you turn a modded servo to turn 360?
16 Jun 2009
More results from forum.arduino.cc
Servo 360 rotation mod (Parallax) - Instructables
www.instructables.com/id/Servo-360-rotation-mod-Parallax/
This mod will help you to use the mod servo for robots that need a fully 360 rotation ... In this
instructurable I will expalin and show you how to make a Parallax servo rotate 360. ... Even though
Arduino wants you to use a PWM port, I've found you can use ANY digital port, and the Servo library will
still write in PWM to it.
Arduino and servo 360 degrees, help me please... | Let's Make Robots!
letsmakerobots.com Forums Specific system related Arduino / AVR
Sep 8, 2012 - I look for example code for Ardunio and a 360 servo for studying. Who can help? With
thanking greetings. Gerhard. Atmega 32 development ...
Arduino and Continuous Servo (360) Motor - YouTube
Video for arduino motor 360 code
2:54
https://www.youtube.com/watch?v=15y1ImY_XEQ
Apr 3, 2015 - Uploaded by pitface123
Continuous servo works different than a 180 servo motor For info and test code, see ...
Arduino 5 Minute Tutorials: Lesson 5 - Servo Motors - RobotShop Blog
www.robotshop.com/.../arduino-5-minute-tutorials-lesson-5-servo-motor...
Apr 25, 2012 - Tags: actuator Arduino Tutorials code lesson Motors Servo software ... @Mike The code
applies to either a 360 degree or a 180 degree servo ...
Servo Motors | Arduino Lesson 14. Servo Motors | Adafruit Learning ...
https://learn.adafruit.com/adafruit-arduino...servo-motors/servo-motors

Dec 18, 2012 - The position of the servo motor is set by the length of a pulse. The servo ... You can also
buy 'continuous' servos that can rotate through the full 360 degrees. ARDUINO CODE FOR 'KNOB' INSIDE
A SERVO. Last updated on ...
Arduino Code | Arduino Lesson 16. Stepper Motors | Adafruit Learning ...
https://learn.adafruit.com/adafruit-arduino-lesson...motors/arduino-code
Dec 20, 2012 - Try a value of about 500, this should cause the motor to turn through about 360 degrees.
Enter -500 and it will turn back in the reverse direction.
shinajaran: Arduino with servo (360deg)
shin-ajaran.blogspot.com/2010/04/arduino-with-servo-360deg.html
Apr 30, 2010 - Arduino with servo (360deg). arduino with servo motor (360 deg). There are some servo
code that came with arduino. File->examples->servo-> ...
GitHub - diegorys/arduino-example-servomotor-360: Sample code to ...
https://github.com/diegorys/arduino-example-servomotor-360
Sample code to control a servo motor 360 degrees. Contribute to arduino-example-servomotor-360
development by creating an account on GitHub.
motor - Controlling servo 360 degree(clockwise and anti clockwise ...
arduino.stackexchange.com/.../controlling-servo-360-degreeclockwise-a...
Jul 2, 2015 - ... to control my 360 degree servo motor using arduino by "if statement" and ... Do you
already have code that can make the servo motor rotate ...
Searches related to arduino motor 360 code

servo motor 360 degrees arduino

arduino motor shield code

arduino motor tutorial

arduino motor library

arduino motor sketch

arduino stepper motor

arduino motor shield r3

arduino motor control h-bridge


1
2

10

Next
Angeles, Pampanga - From your Internet address - Use precise location
- Learn more
Help Send feedback Privacy Terms

You might also like