วันพฤหัสบดีที่ 5 มกราคม พ.ศ. 2555

Starting "Mini CNC" Project

Spec
Maximum job dimensions : 1000 mm x 600 mm
Maximum Z-Axis stroke : 200mm

Axis Long Dimension : X-Axis 1250mm
                          Y-Axis 675mm
                          Z-Axis 400mm

Purchase


X-Axis

1.  Ball Screw 1 piece. Price 3500฿
     Spec : Length 1200mm
               Screw Length 1100mm
               Pitch 5mm
               Dimeter 19mm
   
2. Linear Slide 2 piece. Price 4,000฿
    Spec : Rail Size  23x24mm
               Long 1273mm
               Number of blocks 2blocks/rail


3. Stepping Motor Price 650฿.
    Spec : Vexta C9244-9212K
              Coil 2 Phase 5.7V 1.6A
              Step 2.8Deg/Step



Y-Axis
1.  Ball Screw 1 piece. Price 1900฿
     Spec : THK KX 61053
               Length 770mm
               Screw Length 707mm
               Pitch 10mm
               Dimeter 20mm

2. Linear Slide 2 piece. Price 2,300฿
    Spec : Rail Size  23x24mm
               Long 740mm
               Number of blocks 2blocks/rail

3. Stepping Motor 3 piece. Price 650฿/Piece. Total 1,950฿
    Spec : Vexta C9244-9212K
              Coil 2 Phase 5.7V 1.6A
              Step 2.8Deg/Step

Z-Axis
1.  Ball Screw 1 piece. Price 1300฿
     Spec : THK KX 61053
               Length 42mm
               Screw Length 34mm
               Pitch 10mm
               Dimeter 15mm


2. Linear Slide 2 piece. Price 2700฿
    Spec : NSK Bar size 15mm. long 340mm.
                        Block 2piece/Bar

3. Stepping Motor Price 650฿.
    Spec : Vexta C9244-9212K
              Coil 2 Phase 5.7V 1.6A
              Step 2.8Deg/Step

    *** Now I changed stepper motor to 3 of Snavu Denki 3A stepper motor Total price 1,000฿. I'm plan for use it in parallel coil (6A) bipolar for many torque

Other
1.    Body Price -฿
2.    Drive IC Price -฿
       2.1    Interface
       2.2    Power Drive
3.    Coupling (Moto to Ball Screw)  Price -฿
4.    Router  Price -฿
5.    Nut and Bolt

Design
1. This is my CNC plan V2.

2. This is my CNC plan V2-new.

3. This is my CNC plan V3.

4. This is my CNC plan V5



what's plan do you like?
Now! I'm Change materials to aluminium because I don't have any machine (eg. Milling ,Late) and change for supports it's.

Tips.
1.  Hole dimension for tapping using screw_size x 0.85
    1.1  3.2mm for M4
    1.2  4.2mm for M5
    1.3  5.1mm for M6

วันพุธที่ 7 ธันวาคม พ.ศ. 2554

How to repair hidden folder that hidden by virus.

1. Start -> Run -> cmd <-|
2. Go to drive by command drive_letter: for example g: <-|
3. Type  attrib -s -h -r /s /d <-|


Comment
   arrtib = attribute command
         /s  = file
         /d = directory
         -s = system file
         -h = hidden file
         -r = read only file


Story by http://hpitcha.wordpress.com/2010/12/02/shortcut-virus/

วันศุกร์ที่ 26 สิงหาคม พ.ศ. 2554

cxGrid : How to create a Level/View programmatically at runtime

// Delphi code
var
  Grid: TcxGrid;
  Level: TcxGridLevel;
  View: TcxGridDBTableView;
...
  // Creates a Grid instance
  Grid := TcxGrid.Create(SomeOwner);
  Grid.Parent := SomeParent;
  // Creates a Level
  Level := Grid.Levels.Add;
  Level.Name := 'SomeLevelName';
  // Creates a View
  View := Grid.CreateView(TcxGridDBTableView) as TcxGridDBTableView;
  View.Name := 'SomeViewName';
  // ... and binds it to the Level
  Level.GridView := View;
  // Hooks up the View to the data
  View.DataController.DataSource := SomeDataSource;
  // ... and creates all columns
  View.DataController.CreateAllItems;
end;


Copy from :  http://www.devexpress.com/Support/Center/KB/p/A295.aspx

วันอาทิตย์ที่ 14 สิงหาคม พ.ศ. 2554

SQL Command Reference

SQL INNER JOIN
      The INNER JOIN keyword return rows when there is at least one match in both tables.

SQL INNER JOIN Syntax

      SELECT column_name(s)
      FROM table_name1
      INNER JOIN table_name2
      ON table_name1.column_name=table_name2.column_name

PS: INNER JOIN is the same as JOIN.

--------------------------------------------------------------------------------------------------------------
SQL LEFT JOIN Keyword

      The LEFT JOIN keyword returns all rows from the left table (table_name1), even if there are no matches in the right table (table_name2).

SQL LEFT JOIN Syntax
      SELECT column_name(s)
      FROM table_name1
      LEFT JOIN table_name2
      ON table_name1.column_name=table_name2.column_name

PS: In some databases LEFT JOIN is called LEFT OUTER JOIN.


--------------------------------------------------------------------------------------------------------------
SQL RIGHT JOIN Keyword

      The RIGHT JOIN keyword returns all the rows from the right table (table_name2), even if there are no matches in the left table (table_name1).

SQL RIGHT JOIN Syntax
      SELECT column_name(s)
      FROM table_name1
      RIGHT JOIN table_name2
      ON table_name1.column_name=table_name2.column_name

PS: In some databases RIGHT JOIN is called RIGHT OUTER JOIN.


--------------------------------------------------------------------------------------------------------------
SQL FULL JOIN Keyword

      The FULL JOIN keyword return rows when there is a match in one of the tables.

SQL FULL JOIN Syntax
      SELECT column_name(s)
      FROM table_name1
      FULL JOIN table_name2
      ON table_name1.column_name=table_name2.column_name


--------------------------------------------------------------------------------------------------------------

Source : http://www.w3schools.com/sql/default.asp

Delphi Trick

Hot Key
F12 : switch before Code and Design work space.
CTRL + F9 : Compile Source Code.

Variable
Char Type : use single Quote ' '
                  #number for get char from int or chr(number) function

Component
cxGrid : show Nevigator Tools Bar => OptionView->Navigator
cxGrid : Show Detail Tab Level => Properties -> RootLevelOptions -> DetailTabPosition
cxButton : Picture Button => Glyph

Programer Trick
Property : prop_name : type read func_name write proced_name;

วันอังคารที่ 2 สิงหาคม พ.ศ. 2554

FreeBSD Apache,PHP,MySQL UTF-8 support

httpd.conf:
=============
AddCharset UTF-8 .utf8
AddDefaultCharset UTF-8

php.ini
===============
default_charset = "utf-8"

my.cnf
================
character-set-server=utf8
default-collation=utf8_unicode_ci


ที่มา : http://www.thaibsd.com/webboard/show.php?Category=thaibsd&No=16348

วันพุธที่ 8 มิถุนายน พ.ศ. 2554

กู้ Grub Loader เมื่อ Grub Menu ไม่ขึ้น

1.  Boot Ubuntu Live CD
2.  Open Terminal
3.  sudo -i
4.  mount /dev/your_ubuntu_partition /mnt
5.  grub-install --root-directory=/mnt/ /dev/your_HDD_Device
6.  shutdown -r now
7.  if your menu doesn't correct
     go to synaptic and then install grub-pc for reconfig your boot menu again
     and restart for finish.
8.  if you have BSD OS. /boot/grub/grub.cfg require editing. see example on referlink


referlink : http://www.gggcomputer.com/index.php?topic=2388.0;wap2