Show Posts
Pages: [1]
1  Topics / E-Textiles and Craft / Re: Robotic Arm (Lilypad powering Servo) Project Help! on: March 26, 2013, 12:07:52 am
Worked perfectly with its own power supply smiley.. thank you so much for your help!
2  Topics / E-Textiles and Craft / Re: Robotic Arm (Lilypad powering Servo) Project Help! on: March 24, 2013, 01:17:09 am
Yeah, the lilypad is powering the servo as well.. I'm using a 3.7v battery with the lilypad. I've been trying to use a step up breakout to make the voltage 5v.... yet it is still not working >->.

I'll try giving the servo power from another source and see what that gives me... thanks for the reply!

3  Topics / E-Textiles and Craft / Robotic Arm (Lilypad powering Servo) Project Help! on: March 23, 2013, 08:40:47 pm
Hey there!

So I've been attempting to tackle a confusing issue today and have had no success thus far. I figure this is the best place to ask questions about the Lilypad Arduino. In essence I am working on a project to create a wearable robotic arm. The electronics are basic; it involves a flex sensor that controls the degrees of a medium servo motor (from 15 to 180 degrees).

I got my code to work perfectly well when using the Arduino UNO, the flex sensor controls the servo perfectly well. When I place the very same code on my Lilypad I get all sorts of odd results. It is fidgety and the servo motor constantly scrolls through 15-180 degrees rather than follows the data provided by the flex sensor.


#include <Servo.h>
Servo servo1;
const int flexpin = A2;

void setup() {



void loop() {

  int flexposition; // Input value from the analog pin.
  int servoposition; // Output value to the servo.

  flexposition = analogRead(flexpin);

  servoposition = map(flexposition, 300, 600, 15, 180);

  servoposition = constrain(servoposition, 15, 180);


  Serial.print("sensor: ");


  Serial.print("servo: /n");




Any idea what's going wrong here? Thanks in advance!!!
Pages: [1]