RSS

CNC with arduino

My project right now is a arduino controlled CNC mill.
I have´t started building the machine yet, only the power supply and control box.
Waiting for all the parts to get home, will update more as soon as i start building the machine.

cnc1

cnc2

 
2 Comments

Posted by on 28 June, 2013 in arduino, CNC, Hardware, project

 

Video on my robot moving

Here is a little video on my robot moving and avoiding objects closer then 20cm, i have some
adjustments left and i will do something about all the cables, usb cable will be removed and use 5v from battary pack.
I may make a more good looking body also.

 
1 Comment

Posted by on 24 June, 2013 in Hardware, project, robot

 

Making progress

Have a little time playing at the moment, but i almost got to prototype stage with my bot.
Sharing a photo at easter time :)

IMG_20130330_154852

OK i know, not pretty but i´m getting there ;)

 
Leave a comment

Posted by on 30 March, 2013 in project

 

Tags: , , ,

Robot project

Today i started to write some code for a simple “robot”.
I will use two DC motors to control my tank treads.
I will also use a ultrasonic range finder to check if any objects is in its way
and turn if so is the case.
And for last thing i will put an LCD display to show distance to any object.
I may add some extra stuff later like RF on/off switch.

Updates are coming on this as soon there is any progress on this project, hopefully this weekend :)

 
1 Comment

Posted by on 20 March, 2013 in project, robot

 

Tags:

Arduino LCD

LCD_1602LCD

I got this LCD from ebay yesterday, tried it with this simple code below:

Parts:

Sample code 1:

#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Addr, En, Rw, Rs, d4, d5, d6, d7, backlighpin, polarity

void setup()
{
    lcd.begin(16,2);
    lcd.backlight();
    lcd.setCursor(0, 0);
    lcd.print("Hello world!");
    lcd.setCursor(0, 1);
    lcd.print("Row number: ");
    lcd.setCursor(12, 1);
    lcd.print("2");
}
void loop()
{

}

Sample code 2:

#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Addr, En, Rw, Rs, d4, d5, d6, d7, backlighpin, polarity

void setup()
{
lcd.begin(16,2);
lcd.backlight();
lcd.setCursor(0, 0);        //First column, first row
lcd.print("Hello world!");
lcd.setCursor(0, 1);        //First column, second row
lcd.print("Row number: ");
lcd.setCursor(12, 1);       //12th column, second row
lcd.print("2");
lcd.blink();                //start blinking cursor
delay (3000);               //delay 3 seconds
}
void loop()
{
demoDisplay();
}
void demoDisplay()
{
lcd.clear();              // clear display, set cursor position to zero
lcd.setBacklight(HIGH);        // Backlight on
lcd.setCursor (0,0);           //col 0 of line 1
lcd.print("Boot sequence");
lcd.setCursor (0,1);           // go col 0 of line 2
lcd.print("starting.");
lcd.noBlink();                 //stop blinking cursor
delay(1000);                   //delay 1 second
wipeLines();                   //run function wipeLines
}

void wipeLines() {
for (int y = 0; y < 4; y++) {
for (int x = 0; x < 20; x++) {
lcd.setCursor (x,y);
lcd.print(" ");
delay(10);
}
}
}
 
21 Comments

Posted by on 16 March, 2013 in code, Hardware

 

Tags: , , ,

Tested my SG90 servo today

My new Tower Pro SG90 9g servos was tested today and worked great.
I used Arduino IDE sample code for the test.
servo

Sample code from Arduino´s IDE
Red = +5v
Brown = GND
Orange = Signal (pin 9 for this code)


 // Sweep
 // by BARRAGAN <http://barraganstudio.com>
 // This example code is in the public domain.


 #include <Servo.h>

 Servo myservo;  // create servo object to control a servo
                 // a maximum of eight servo objects can be created

 int pos = 0;    // variable to store the servo position

 void setup()
 {
   myservo.attach(9);  // attaches the servo on pin 9 to the servo object
 }


 void loop()
 {
   for(pos = 0; pos < 180; pos += 1)  // goes from 0 degrees to 180 degrees
   {                                  // in steps of 1 degree
     myservo.write(pos);              // tell servo to go to position in variable 'pos'
     delay(15);                       // waits 15ms for the servo to reach the position
   }
   for(pos = 180; pos>=1; pos-=1)     // goes from 180 degrees to 0 degrees
   {
     myservo.write(pos);              // tell servo to go to position in variable 'pos'
     delay(15);                       // waits 15ms for the servo to reach the position
   }
 }
 
2 Comments

Posted by on 13 March, 2013 in Uncategorized

 

My servos arrived!

sg90-9g-servo

Today my new TowerPro SG90 9g servos arrived, i ordered four of them from Ebay.

I will update later with some photos/video.

 
Leave a comment

Posted by on 12 March, 2013 in Hardware

 

Tags: ,

 
Follow

Get every new post delivered to your Inbox.