Show Posts
Pages: [1]
1  Community / Exhibition / Gallery / Arduino + Bluetooth + Android = Telemetry on: October 21, 2011, 06:53:51 pm
Hi
I want to show you my last project.


let me know what do you think.
:)Thanks
2  Community / Exhibition / Gallery / Re: DIY Plotter (again :) ) on: April 18, 2011, 10:15:54 pm
If you are interested here is the source code:
http://ezio.ovh.org/pliki/plotter.zip
3  Community / Exhibition / Gallery / DIY Plotter (again :) ) on: February 17, 2011, 02:38:19 pm
Finally I had some time to finish my new plotter.

To build it I have used parts from one old scanner (x and y belt drive) and head holder from old printer. To up and down a pen one servo is used.

The "brain" is of course an Arduino and motor shield.

I also have written a software to control it. The software imports HPGL (plt) files, generates preview and controls the plotter.

Everything can be powered from usb but for higher speeds I use external power supply.

I will release source code when it works as I want.

4  Forum 2005-2010 (read only) / Exhibition / Re: Plotter - 3 servos on: March 04, 2010, 01:37:31 pm
hello again.
my xy table works !
it is slow but it works.
[media]http://www.youtube.com/watch?v=GWJ0BXim9gk[/media]

and the pc software:
[media]http://www.youtube.com/watch?v=L9yno3p55Pw[/media]

this time PC sends only x , y coordinates and arduino does all calculations.
5  Forum 2005-2010 (read only) / Exhibition / Re: Plotter - 3 servos on: February 23, 2010, 01:21:34 am
the "arm" is dremelholder:
http://www.duanesplanes.com.au/images/P/2222a.jpg

and the part on the end of "arm" - this is a tool which has came with bed from IKEA  :smiley
6  Forum 2005-2010 (read only) / Exhibition / Re: Plotter - 3 servos on: February 17, 2010, 07:07:34 pm
I've started new project.
This time it is a xy table, moved by steppers motors. It is working but I have to write better software.

7  Forum 2005-2010 (read only) / Exhibition / Re: Plotter - 3 servos on: February 15, 2010, 06:08:05 pm
I thought servo.read() only returned what angle you'd set it to - the servo doesn't have any way of returning it's actual physical position. Or am I wrong?

Andrew

yes you are right. I've used servo.read() to not create other variables and save some ram. There is no feedback form servos. The program sends position and then wait for a moment. Servos are quite fast and the program sends values which are +-1 degree compare to the last position so it takes very small amount of time to set the servos on the right position.
 


I'm confused as well. Can you kindly explain again from where do you get the measurement of the servo angle...when it doesn't have any feedback.

for calibration I've measured angles manually.


new link: http://www.ezio.ovh.org/pliki/arm_plotter_v2.rar


P.S.
you can have the feedback from servos if you connect potentiometer from servo to the arduino's analog pin, but I haven't tried this.
8  Forum 2005-2010 (read only) / Exhibition / Re: Plotter - 3 servos on: February 12, 2010, 07:56:01 am
Arduino sends one byte to confirm that it is ready for next position.

Full arduino code is here: http://ezio.ovh.org/pliki/arm plotter v2.rar

hope this helps

  if (inProgress==true && servo1.read()==s1 && servo2.read()==s2 && servo3.read()==s3)
    {
      Serial.print(1,BYTE);
      inProgress=false;
    }


appearance of the arm -
hmm well this is not very useful project. And this is only proof of concept. Servos are not very precise.
9  Forum 2005-2010 (read only) / Exhibition / Re: Plotter - 3 servos on: February 02, 2010, 06:14:29 pm
I've updated the software.
here is new version.
http://ezio.ovh.org/pliki/arm plotter v2.rar

 It has better resolution. And I added excel sheet to calibrate servos outputs.

[media]http://www.youtube.com/watch?v=YYttzcBl_EM[/media]
[media]http://www.youtube.com/watch?v=hYDu0YdoYg8[/media]
10  Forum 2005-2010 (read only) / Exhibition / Re: Plotter - 3 servos on: January 19, 2010, 07:41:58 pm
I can't make a picture (my camera doesn't work) so I've made some drawings.

draw 1:

draw 2:


Important:
-When arm is setted as shown on draw 2, servos have to be in their middle positions (90 degree)
-distance between servo 1 and servo 2 has to be the same as distance between servo 2 and servo 3
-length of the parts is not very important


I think that everyone here know how to connect servos to the arduino so I will not describe it.



Arduino code:
Code:
#include <Servo.h>

#define led0 13
#define Servo1Pin 17
#define Servo2Pin 18
#define Servo3Pin 19

Servo servo1;
Servo servo2;
Servo servo3;

byte s1=90;
byte s2=90;
byte s3=90;

byte DELAY=10;
boolean inProgress=false;

//#include <LiquidCrystal.h>
//LiquidCrystal lcd(12, 8, 7, 6, 5, 4, 2);

void setup()
{
   // lcd.begin(16,2);
  Serial.begin(9600);
  pinMode(led0,OUTPUT);
  attachServos();
}

void loop()
{

  digitalWrite(led0,inProgress);

  if(Serial.available())
  {

    if (Serial.read()==0xAA)
    {
      do{
      }
      while(Serial.available()<=4);
      //serwa
      s1=Serial.read();
      s2=Serial.read();
      s3=Serial.read();
      DELAY=Serial.read();
      inProgress=true;
    }
  }

 
    if (servo1.read()>s1) servo1.write(servo1.read()-1);
    if (servo1.read()<s1) servo1.write(servo1.read()+1);

    if (servo2.read()>s2) servo2.write(servo2.read()-1);
    if (servo2.read()<s2) servo2.write(servo2.read()+1);

    if (servo3.read()>s3) servo3.write(servo3.read()-1);
    if (servo3.read()<s3) servo3.write(servo3.read()+1);


    if (inProgress==true && servo1.read()==s1 && servo2.read()==s2 && servo3.read()==s3)
    {
      Serial.print(1,BYTE);
      inProgress=false;
    }

    delay(DELAY);
    
    /*
        lcd.clear();
        lcd.print(servo1.read(),DEC);
        lcd.print("-");
        lcd.print(s1,DEC);
        lcd.print(" ");
        lcd.print(servo2.read(),DEC);
         lcd.print("-");
        lcd.print(s2,DEC);
        lcd.setCursor(0,1);
        lcd.print(servo3.read(),DEC);
         lcd.print("-");
        lcd.print(s3,DEC);
        lcd.print(" ");
        lcd.print(DELAY,DEC);
        lcd.print(" ");
*/
  
}





/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void attachServos()
{
  
  servo1.attach(Servo1Pin);
  servo2.attach(Servo2Pin);
  servo3.attach(Servo3Pin);
}





and finally the PC software is here:
http://ezio.ovh.org/pliki/arm_plotter.rar

There is a file "settings.txt". You can set up and down limit of the servos to avoid destroy your arm.

[media]http://www.youtube.com/watch?v=8IS1pGwm_00[/media]
11  Forum 2005-2010 (read only) / Exhibition / Re: Plotter - 3 servos on: January 18, 2010, 10:04:29 pm
Tomorrow will send the software and instructions on how to build it.
12  Forum 2005-2010 (read only) / Exhibition / Plotter - 3 servos on: January 18, 2010, 06:14:47 pm
Hi
This is my first post here.
I want to show you my simple "plotter".
it is not very precise because of the servos. But it works.
The software reads plt files (eg Corel Draw).
Software and source code I will send soon.

[media]http://www.youtube.com/watch?v=sGTdJ2Mnzj4[/media]
[media]http://www.youtube.com/watch?v=CBEa8y97hJc&feature=related[/media]

13  Forum 2005-2010 (read only) / Exhibition / Re: Game with a laser pointer and an 8x8 LED matrix on: April 14, 2010, 08:25:34 pm
brilliant
14  Forum 2005-2010 (read only) / Exhibition / GPS Navigation and GPS Simulator on: March 03, 2009, 09:14:01 pm
Hi.
I wrote a simple code for the Arduino to GPS navigation. And "simulation environment" to test it.
This is my first Arduino code so probably contains some errors. I have not yet tested the navigation in the real world.
Waiting for comments.

The code and the simulator are here: ezio.ovh.org/programy/index.php?strona=gps

Thanks
Pages: [1]