{{ 'fb_in_app_browser_popup.desc' | translate }} {{ 'fb_in_app_browser_popup.copy_link' | translate }}

{{ 'in_app_browser_popup.desc' | translate }}

商品諮詢報價|歡迎加入@LINE

你的購物車是空的
{{ (item.variation.media ? item.variation.media.alt_translations : item.product.cover_media.alt_translations) | translateModel }} {{ (item.variation.media
                    ? item.variation.media.alt_translations
                    : item.product.cover_media.alt_translations) | translateModel
                }}
{{ 'product.bundled_products.label' | translate }}
{{ 'product.bundle_group_products.label' | translate }}
{{ 'product.buyandget.label' | translate }}
{{ 'product.gift.label' | translate }}
{{ 'product.addon_products.label' | translate }}
{{item.product.title_translations|translateModel}}
{{ field.name_translations | translateModel }}
  • {{ childProduct.title_translations | translateModel }}

    {{ getChildVariationShorthand(childProduct.child_variation) }}

  • {{ getSelectedItemDetail(selectedChildProduct, item).childProductName }} x {{ selectedChildProduct.quantity || 1 }}

    {{ getSelectedItemDetail(selectedChildProduct, item).childVariationName }}

{{item.variation.name}}
{{item.quantity}}x NT$0 {{ item.unit_point }} 點
{{addonItem.product.cover_media.alt_translations | translateModel}}
{{ 'product.addon_products.label' | translate }}
{{addonItem.product.title_translations|translateModel}}
{{addonItem.quantity}}x {{ mainConfig.merchantData.base_currency.alternate_symbol + "0" }}
ColorPAL 顏色感測器

ColorPAL 顏色感測器

貨號:SSO0012


NT$819
{{shoplineProductReview.avg_score}} {{'product.product_review.stars' | translate}} | {{shoplineProductReview.total}} {{'product.product_review.reviews' | translate}}
{{amazonProductReview.avg_rating}} {{'product.product_review.stars' | translate}} | {{amazonProductReview.total_comment_count}} {{'product.product_review.reviews' | translate}}
數量 組合數量
加入追蹤清單
一次最大商品購買數量限制為 99999
該數量不適用,請填入有效的數量。
售完

商品存貨不足,未能加入購物車

您所填寫的商品數量超過庫存

{{'products.quick_cart.out_of_number_hint'| translate}}

{{'product.preorder_limit.hint'| translate}}

每筆訂單限購 {{ product.max_order_quantity }} 件

現庫存只剩下 {{ quantityOfStock }} 件

若想購買,請聯絡我們。
加入追蹤清單
商品描述
了解更多
送貨及付款方式
顧客評價

【產品簡介】


ColorPAL是一種小型的顏色和光感測器,透過它的RGB LED,亦可作為辨識色彩時的產生器。

當檢測顏色時,ColorPAL使用其LED照亮樣本;一種色彩元素組成的時候,會隨著產生一種譜光,轉換到電壓轉換器來測量反射回來的光。

從樣本反射的光量,分成紅色(R),綠色(G)和藍色(B)三原色 來確定樣本的顏色。本ColorPAL工作於非瑩光的反射面,最好是接觸在它的LED光罩。 

 

【產品規格】


  • 電源要求:5.0V
  • 通訊:Serial 1-Wire (asynchronous serial, open drain)串列單接口
  • 尺寸:44 × 23 × 17mm 

 

【文件下載】


 

補充資料

Arduino Code:


 
/* ColorPal Sensor Example for Arduino
  Author: Martin Heermance, with some assistance from Gordon McComb
  This program drives the Parallax ColorPAL color sensor and provides
  serial RGB data in a format compatible with the PC-hosted
  TCS230_ColorPAL_match.exe color matching program.
*/

#include <SoftwareSerial.h>

const int sio = 2;            // ColorPAL connected to pin 2
const int unused = 255;         // Non-existant pin # for SoftwareSerial
const int sioBaud = 4800;
const int waitDelay = 200;

// Received RGB values from ColorPAL
int red;
int grn;
int blu;

// Set up two software serials on the same pin.
SoftwareSerial serin(sio, unused);
SoftwareSerial serout(unused, sio);

void setup() {
  Serial.begin(9600);
  reset();                  // Send reset to ColorPal
  serout.begin(sioBaud);
  pinMode(sio, OUTPUT);
  serout.print("= (00 $ m) !"); // Loop print values, see ColorPAL documentation
  serout.end();              // Discontinue serial port for transmitting

  serin.begin(sioBaud);            // Set up serial port for receiving
  pinMode(sio, INPUT);
}

void loop() {
  readData();
}  

// Reset ColorPAL; see ColorPAL documentation for sequence
void reset() {
  delay(200);
  pinMode(sio, OUTPUT);
  digitalWrite(sio, LOW);
  pinMode(sio, INPUT);
  while (digitalRead(sio) != HIGH);
  pinMode(sio, OUTPUT);
  digitalWrite(sio, LOW);
  delay(80);
  pinMode(sio, INPUT);
  delay(waitDelay);
}

void readData() {
  char buffer[32];

  if (serin.available() > 0) {
    // Wait for a $ character, then read three 3 digit hex numbers
    buffer[0] = serin.read();
    if (buffer[0] == '$') {
      for(int i = 0; i < 9; i++) {
        while (serin.available() == 0);     // Wait for next input character
        buffer[i] = serin.read();
        if (buffer[i] == '$')               // Return early if $ character encountered
          return;
      }
      parseAndPrint(buffer);
      delay(10);
    }
  }
}

// Parse the hex data into integers
void parseAndPrint(char * data) {
  sscanf (data, "%3x%3x%3x", &red, &grn, &blu);
  char buffer[32];
  sprintf(buffer, "R%4.4d G%4.4d B%4.4d", red, grn, blu);
  Serial.println(buffer);
}

這個商品沒有更多資訊。

送貨方式

  • 郵寄掛號 (未滿一千元須加運費60元;會員滿千免運)
  • 順豐速運 (運費100元)
  • 7-11 取貨付款 (運費60元)
  • 7-11 純取貨 (運費60元)
  • 全家 取貨付款 (運費60元)
  • 全家 純取貨 (運費60元)
  • 面交自取

付款方式

  • 銀行轉帳/ATM (請於3日內匯款完成)
  • 信用卡 (金額需要滿三千元才能使用)
  • 全家 取貨付款
  • 7-11 取貨付款
  • 面交付款
{{'product.product_review.no_review' | translate}}