Powered by Blogger.

Followers

C meter จาก Arduino

by Volk-69  |  at  10:11 PM

ขอบคุณ
http://wordpress.codewrite.co.uk/pic/2014/01/21/cap-meter-with-arduino-uno/

const int OUT_PIN = A2;
const int IN_PIN = A0;

//Capacitance between IN_PIN and Ground
//Stray capacitance is always present. Extra capacitance can be added to
//allow higher capacitance to be measured.
const float IN_STRAY_CAP_TO_GND = 24.48; //initially this was 30.00
const float IN_EXTRA_CAP_TO_GND = 0.0;
const float IN_CAP_TO_GND  = IN_STRAY_CAP_TO_GND + IN_EXTRA_CAP_TO_GND;
const int MAX_ADC_VALUE = 1023;

void setup()
{
  pinMode(OUT_PIN, OUTPUT);
  //digitalWrite(OUT_PIN, LOW);  //This is the default state for outputs
  pinMode(IN_PIN, OUTPUT);
  //digitalWrite(IN_PIN, LOW);

  Serial.begin(115200);
}

void loop()
{
  //Capacitor under test between OUT_PIN and IN_PIN
  //Rising high edge on OUT_PIN
  pinMode(IN_PIN, INPUT);
  digitalWrite(OUT_PIN, HIGH);
  int val = analogRead(IN_PIN);

  //Clear everything for next measurement
  digitalWrite(OUT_PIN, LOW);
  pinMode(IN_PIN, OUTPUT);

  //Calculate and print result

  float capacitance = (float)val * IN_CAP_TO_GND / (float)(MAX_ADC_VALUE - val);

  Serial.print(F("Capacitance Value = "));
  Serial.print(capacitance, 3);
  Serial.print(F(" pF ("));
  Serial.print(val);
  Serial.println(F(") "));

  while (millis() % 500 != 0)
    ;    
}

Stepstick จาก ebay

by Volk-69  |  at  10:12 PM

Stepstick ตัวนี้จะโดนลิมิตกระแสไว้ที่ 1 A  (แต่ตัว IC A4988 รองรับได้ 2A)
สามารถทำการแก้ไขให้จ่ายกระแสเพิ่มขึ้นเป็น 1.5A โดยทำการเปลี่ยน Rsense ทั้งสองตัว 
(ที่ 2 A ควรเป็น PCB 4 layer อ่าน Datasheet เพิ่มเติม)

สูตร ในการหากระแส
ITripMAX = VREF / ( 8 x RSense)

เปลี่ยนกระแสเป็น 1.5A
http://reprap.org/wiki/StepStick#Building_stepsticks_with_a_1.5A_limit

ทดสอบระหว่าง 4 layer และ 2 layer
http://reprap.org/wiki/StepStick#4-Layer_PCB_StepSticks

อ่านเพิ่มเติมๆด้ที่ http://reprap.org/wiki/StepStick
datasheet http://www.allegromicro.com/Products/Motor-Driver-And-Interface-ICs/Bipolar-Stepper-Motor-Drivers/A4988.aspx

ค่าจัดส่งสินค้าจาก Farnell และ RS components

by Volk-69  |  at  9:04 PM
http://th.element14.com/
มากกว่า 1000 บาทส่งฟรี
ต่ำกว่า 1000 บาท  ค่าจัดส่ง 100 บาท ต่างจังหวัด 236 บาท

http://thailand.rs-online.com/
มากกว่า 2500 บาทส่งฟรี
ต่ำกว่า 2500 บาท  ค่าจัดส่ง 100 บาท


เครื่องส่ง FM แบบง่าย

by Volk-69  |  at  4:59 PM



Arduino CNC Shield – 100% GRBL Compatable

by Volk-69  |  at  6:09 PM
สำหรับผู้ที่ต้องการเอา arduino ไปใช้กับงาน CNC ครับ (GRBL)
*ต้องการ stepper drivers x 3 ตัว 



http://blog.protoneer.co.nz/arduino-cnc-shield/

Proudly Powered by Blogger.