ผมจะเเปลงสัญญาณจาก สัญญาณ pluse เป็น bit ได้ไหม คับ คือผมต้องการหาว่าอัลตร้าโซนิคส่งข้อมูลให้กับอาดูโน่ กี่ bit อ่ะครับ

ลองดูโคดตัวอย่างนี้ครับ https://www.arduino.cc/en/Reference/AnalogWriteResolution

ผมลืมดู ฟังก์ชันนี้ไม่รองรับ arduino uno ครับ
analogWriteResolution() is an extension of the Analog API for the Arduino Due, Genuino and Arduino Zero and MKR1000.
ArduinoAll ขาย Arduino ซื้อ Arduino ทุกอย่าง เปลี่ยนชื่อเป็น AllNewStep