2015/12/24

MakerNTP - A Low Cost Arduino Mega2560 GPS-based Stratum 1 NTP Server

My homebrew low locst (not more than 120 USD for retail) MakerNTP is now in operation for about one month without any problem in my home environment. The features of MakerNTP are:

Protocol: SNTP V4
Performance: 40 requests/second
Ethernet Port: 1
Default IP: 192.168.1.123
Power Supply: 9V (recommended) / 5V (USB)
Enclosure: ABS
Application: home automation, security surveillance ......

NOTE: Most SNTP clients will generally sync your system time to within 100 milliseconds of the correct time - often within 10 milliseconds. Of course, the accuracy is highly dependent on the accuracy of the server that it is connecting to.

Photos



2015/11/03

Convert Millisecond (Decimal Fraction) to 32-bits Binary Using Arduino

The function millis2bin() can be used to convert millisecond to Network Time Protocol (NTP) timestamp fraction (32-bits unsigned long) used by both NTP servers and clients.

Code

/*
  Program for convert millisecond (decimal fraction) to 32-bits binary 
  By Befun Hung on Nov. 2, 2015
 */

void setup() {   
  
  Serial.begin(115200);
  
  int i;
  unsigned long tempval=1;
  for (i=0;i<32;i++) {
    Serial.print(i);
    Serial.print(" ");
    Serial.print(tempval << (31-i));
    Serial.print(" ");
    tempval = 1;
    Serial.println(tempval << (31-i),BIN);
  }
  for (i=0;i<1000;i++) {
    Serial.print(i);
    Serial.print(" ");
    Serial.println(millis2bin((float) i/1000),BIN);
    // millis2bin((float) i/1000);
  }
}

unsigned long millis2bin( float fraction) {
  int j=0;
  unsigned long return_value = 0;
  unsigned long one = 1;
  
  while (fraction != 0 && j < 32) {
    fraction = fraction * 2.0;
    if (fraction >= 1.0) {
      return_value = return_value | (one << (31 - j));
      fraction = fraction -1;
    }
    j++;
  }
  // Serial.print(return_value);
  // Serial.print(" ");
  // Serial.println(return_value,BIN);
  return return_value;
}

// the loop routine runs over and over again forever:
void loop() {
}

Serial Monitor Output


2015/04/26

Parts List of Shapeoko 2 Compatible MakerCarve Mechanical Kit

The parts list of Shapeoko 2 compatible MakerCarve mechanical kit is listed with quantity as follows:

1. MDF x 2
2. X/Y Axis Rail Extrusion x 4
3. Z-Axis Rail Extrusion x 1
4. 20x20x527mm Extrusion x 2
5. Motor Mount Plate x 4
6. End Plate x 4
7. Z-Axis Motor Mount Plate x 2
8. Spindle Mount Plate x 1
9. Z-Axis Shim Plate x 1
10. Universal Spindle Mount And Mount Strap x 2
11. Delrin V-Wheel x 20
12. Smooth Idler Wheel x 6
13. M5 Shim Washer x 26
14. 5x16x5 Bearing (625-2RS) x 52
15. Eccentric Nut x 10
16. M5 Flat Washer x 108
17. Delrin Lead Nut x 1
18. M8x200mm Threaded Rod x 1
19. 8x22x7 Flange Bearing (F608-ZZ) x 1
20. M3x12mm, SHCS x 3
21. M3 Flate Washer x 3
22. Wave Disc Spring x 1
23. 3x8mm Nylon Spacer x 6
24. 5x10mm Nylon Spacer x 4
25. Z-Axis Coupler 5mm-8mm x 1
26. M3x50mm Standoff Spacer x 3
27. M3x10mm, Set Screw x 3
28. Fiberglass Belt Clip x 6
29. 3/8"x5/16" #12 Spacer x 10
30. 3/8"x1" #12 Spacer x 6
31. 3/8"x1-1/4" #12 Spacer x 6
32. M5x10mm, BHCS x 4 (Z-Axis Extrusion)
33. M5x12mm, BHCS x 38
34. M5x20mm, BHCS x 18 (Motor Mount Carriage V-Wheel x 12 + Z Assembly Carriage V-Wheel x 4 + Z-Axis Motor Mount x 2)
35. M5x30mm, BHCS x 10 (Motor Mount Carriage Idler x 6 + Spindle Carriage V-Wheel x 4)
36. M5x8mm, SHCS x 6 (Belt Clip)
37. M5x45mm, SHCS x 4 (Universal Spindle Mount Strap)
38. M5x70mm, SHCS x 6
39. M5 Flat Nut x10 (Z-Axis Extrusion x 4 + Belt Clip x 6)
40. M8 Flat Nut x 2 (M8 Threaded Rod)
41. M5 Hex Nut x 26
42. M5 T-Nut x 16 (20x20x527mm Extrusion - MDF And End Plate)
43. Spare Parts Pack x 1 (M5 Flat Washer x 12 + M5 T-Nut x 2)

Update (Jul. 25, 2015)  The following is the packing list of MakerCarve mechanical kit:

Update (Nov. 28, 2016) Shapeoko 2 Assembly Video

Shapeoko 2 Works Kit Tutorial - Desktop CNC 3D Carver Router by Inventables

https://www.youtube.com/watch?v=Yy6A3Mif0QY

2015/04/24

MakerCarve - A Shapeoko 2 Compatible CNC Router/Carving/Engraving Machine

MakerCarve is a Shapeoko 2 compatible machine with some modification listed bellow:

1. Mechanical Kit
A. Tapped SlideSlot aluminium rail extrusions are used instead of MakerSlide
B. All plates are made of aluminium
C. End plates are 5mm in thickness to increase stiffness
D. 2020 aluminium extrusions are 527mm in length

2. Electronic Kit
A. The grblShield is replaced by CNC Shield
B. Belt locking torsion springs are used

3. Software
A. GRBL Controller (G-Code Sender) is preferred to Universal-G-Code-Sender

To enable MakerCarve function well, the Arduino Uno R3 must be uploaded with grbl firmware (hex file) and properly configured. To upload grbl hex file, XLoader is used.
A. GRBL Homepage
B. Quick GRBL (Arduino G-Code Interpreter) Setup Guide For Windows
C. GRBL Configuration Page

To assembly, methods and tools used in Shapeoko Rebuild are recommended.

To engrave or to carve, the free open source F-Engrave is used.

2015/04/21

SlideSlot - An Aluminium Extrusion Combines MakerSlide And V-Slot As An Alternative To The Rail On Shapeoko 2

SlideSlot is an Aluminium Extrusion Combines MakerSlide and V-Slot, Both wheels used on MakerSlide and V-Slot can be used on SlideSlot.

The section and dimension of SlideSlot Aluminium Extrusion is illustrated below:



Here's the photo:



For fastening belt on MakerSlide based camera slider (dolly) or Shapeoko CNC router, M5 flat (thin) hex nut is used in the v-grooved rail. On the long side of the section, M5 hex nut is used for fastening.

2015/04/19

Shapeoko 2 Parts List

This is a memorandum about parts use in Shapeoko 2 (Out of Production). Inventables now sales Shapeoko 2 compatible X-Carve and Shapeoko sales Shapeoko 3.

1. Packing List (Included in the Full Kit Received)



2. Mechanical Kit




3. Full Kit





2015/04/17

Shapeoko 2 Quick Assembly Notes

I have bought and assembled a set of Shapeoko 2 kit. This is a memorandum for quick assembly.

Update: If you follow linked diagram to assembly MakerCarve, it's better to have the parts list of MakerCarve (posted on April 26, 2015) at hand to make sure which parts used in shapeoko 2 have been changed. As the MakerSlide is replaced with SlideSlot, the T-Nuts are changed to M5 flats nut and M5 nuts respectively.

0. Electronics Wiring

http://docs.shapeoko.com/content/sketches/electronics_layout.svg

1. V-Wheel Assembly

http://docs.shapeoko.com/content/tPictures/25203-02-100.svg

2. Idler Assembly

http://docs.shapeoko.com/content/tPictures/25197-02-100.svg

3. Motor Mount Carriage Assembly

http://docs.shapeoko.com/content/tPictures/PS20022-100.svg

4. Z-Axis Carriage Assembly

http://docs.shapeoko.com/content/tPictures/PS20021-100.svg

5. Spindle Carriage Assembly

http://docs.shapeoko.com/content/tPictures/PS20029-100.svg

Update: For delrin lead nut installation, follow the film on youtub 10:18 - 12:26.

6. Z-Axis Rail Assembly

http://docs.shapeoko.com/content/tPictures/PS20028-100.svg

7. Z-Axis Sub Assembly

http://docs.shapeoko.com/content/tPictures/PS20030-100.svg

8. Sub Gantry Assembly

http://docs.shapeoko.com/content/tPictures/PS20031-100.svg

9. X-Axis Assembly

http://docs.shapeoko.com/content/tPictures/PS20023-100.svg

10. Complete Gantry View

http://docs.shapeoko.com/content/tPictures/PS20025_16.png

11. Y-Axis Assembly

http://docs.shapeoko.com/content/tPictures/PS20026-100.svg

12. Work Area Assembly

http://docs.shapeoko.com/content/tPictures/PS20024-100.svg

13. Frame Assembly

http://docs.shapeoko.com/content/tPictures/Shapeoko_2_16.png