หน้าแรก ดูโปรเจกต์ทั้งหมด
Expert

โปรเจกต์ DIY Arduino Oscilloscope

อุปกรณ์ Digital ที่แสดงผลภาพ Analog signal

โปรเจกต์ DIY Arduino Oscilloscope

รายการอุปกรณ์และเครื่องมือ

รายละเอียดและวิธีทำ

Arduino PC oscilloscope ที่เป็นพื้นฐานและสร้างได้ง่ายมาก

คุณสมบัติ:

  • 50K samples/second (จริงๆ แล้วสามารถไปได้ถึง 110K แต่สัญญาณจะมี Noise รบกวน)
  • Auto trigger
  • Frequency counter
  • การอ่านค่าแรงดันไฟฟ้าที่แม่นยำพอสมควร (ขึ้นอยู่กับความแม่นยำของ Resistors ที่ใช้สำหรับ Voltage Dividers)
  • ตัวเลือกเสริม: สามารถเลือกย่านแรงดัน (Voltage Range) ได้: 5V, 6.6V, 10V, 20V

อุปกรณ์ที่คุณต้องใช้:

  • Arduino Leonardo หรือ Arduino Micro
  • สายปากคีบ (Crocodile Clamps) 2 อัน
  • Capacitor ขนาด 0.1µF (ตัวเลือกเสริม)
  • Zener Diode ขนาด 5.1V (ตัวเลือกเสริม)
  • คอมพิวเตอร์ที่ติดตั้งโปรแกรม Processing

สำหรับ Voltage Dividers (ตัวเลือกเสริม หากคุณต้องการวัดแรงดันที่มากกว่า 5V หรือต้องการเลือกย่านวัดได้):

  • สวิตช์แบบ Two-pole Dual Throw 2 ตัว
  • Resistors ขนาด 3K สองตัว
  • Resistors ขนาด 1.5K สองตัว
  • Resistor ขนาด 1K หนึ่งตัว
  • Perfboard ขนาดเล็กหรือ Breadboard

หากคุณต้องการวัดแรงดันสูงสุดเพียง 5V คุณสามารถข้ามส่วน Voltage Dividers และเชื่อมต่อโพรบเข้ากับ GND และ A1 ได้โดยตรง โดยคุณจะต้องแก้ไข Code เล็กน้อย:

ใน Code ของ Arduino ให้แทนที่:

ADMUX =  B00000000;         // select external reference and port 5 (A0)

ด้วย:

ADMUX =  B01000000;         // select internal reference (Vcc - 5V) and port 5 (A0)

ใน Code ของ Processing ให้แทนที่:

// read switch position & set voltage range boolean switch1=((buffer[writeIndex*2]&(byte)8)==8);                                                  boolean switch2=((buffer[writeIndex*2]&(byte)4)==4); if (!switch1&&!switch2) voltageRange=20; if (!switch1&&switch2) voltageRange=10; if (switch1&&!switch2) voltageRange=6.64; if (switch1&&switch2) voltageRange=5;

ด้วย:

voltageRange=5;

Code

🔒 ปลดล็อก Code

สนับสนุนเพื่อรับ Source Code หรือแอปพลิเคชันสำหรับโปรเจกต์นี้

รหัสอ้างอิงโปรเจกต์: diy-arduino-oscilloscope-56d4c0
1999 บาท
PromptPay QR Code