找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 6105|回復(fù): 2
收起左側(cè)

FDC2214的Arduino源碼+原理圖PCB圖+封裝庫等資料下載

[復(fù)制鏈接]
ID:376190 發(fā)表于 2018-7-20 20:28 | 顯示全部樓層 |閱讀模式
0.png

Altium Designer畫的FDC2214原理圖和PCB圖如下:(51hei附件中可下載工程文件)
0.png

FDC2214封裝庫:
0.png


資料列表:

1.基于Arduino程序(測試通過)\
FDC2214-OLED測試程序
FDC2214串口測試程序
fdc-on-serialplot-noise.PNG
fdc-on-serialplot-signal.PNG

2.原理圖&PCB圖(AD10可以打開-根據(jù)官方優(yōu)化-改為兩層板)\
參考電路圖\
官方修改版本-兩層板.PcbDoc

3.技術(shù)手冊(重要內(nèi)容中文翻譯)\
MK_FDC2214-技術(shù)手冊.pdf


4.WEBENCH教程(設(shè)計必備技能)\
5.官方資料(經(jīng)過整理的)\

FDC2214-技術(shù)手冊.pdf
FDC2214增強板子資料.pdf
FDC2214官方評估板說明.pdf
FDC2214計算器.xlsx

6.封裝庫\
FDC2214.IntLib


FDC2214的arduino串口測試程序:

  1. // FDC2x1x hardware configuration:
  2. // Component value as in default circuit form datasheet. (18uH inductor and 33pF cap)
  3. //
  4. // SD and ADDR pins tied to GND
  5. // INTB pin not used
  6. //
  7. // ARDUINO <--> FDC
  8. // A4 <-------> SDA
  9. // A5 <-------> SCL
  10. //
  11. // !!!!!! Arduinos are mostly 5V. FDC chips are 3.3V, so either use 3.3V version of Arduino, like pro mini, or use level shifter on I2C bus.
  12. //

  13. // ### FDC
  14. #include <Wire.h>
  15. #include "FDC2214.h"
  16. FDC2214 capsense(FDC2214_I2C_ADDR_0); // Use FDC2214_I2C_ADDR_1

  17. // ###
  18. void setup() {
  19.   
  20.   // ### Start I2C
  21.   Wire.begin();
  22. //  Wire.setClock(400000L);
  23.   
  24.   // ### Start serial
  25.   Serial.begin(115200);
  26.   Serial.println("\nFDC2x1x test");
  27.   
  28.   // ### Start FDC
  29.   // Start FDC2212 with 2 channels init
  30.   bool capOk = capsense.begin(0x3, 0x4, 0x5); //setup first two channels, autoscan with 2 channels, deglitch at 10MHz
  31.   // Start FDC2214 with 4 channels init
  32.   //bool capOk = capsense.begin(0xF, 0x4, 0x5); //setup all four channels, autoscan with 2 channels, deglitch at 10MHz
  33.   if (capOk) Serial.println("Sensor OK");  
  34.   else Serial.println("Sensor Fail");  

  35. }

  36. // ### Tell aplication how many chanels will be smapled in main loop
  37. #define CHAN_COUNT 2

  38. // ###
  39. void loop() {
  40.   unsigned long capa[CHAN_COUNT]; // variable to store data from FDC
  41.   for (int i = 0; i < CHAN_COUNT; i++){ // for each channel
  42.     // ### read 28bit data
  43.     capa[i]= capsense.getReading28(i);//  
  44.     // ### Transmit data to serial in simple format readable by SerialPlot application.
  45.     Serial.print(capa[i]);  
  46.     if (i < CHAN_COUNT-1) Serial.print(", ");
  47.     else Serial.println("");
  48.   }
  49.   // No point in sleeping
  50.   //delay(100);
  51. }
復(fù)制代碼

全部資料51hei下載地址:
FDC2214資料.zip (15.5 MB, 下載次數(shù): 102)



回復(fù)

使用道具 舉報

ID:386837 發(fā)表于 2018-8-18 11:57 | 顯示全部樓層
感謝,非常有用
回復(fù)

使用道具 舉報

ID:378717 發(fā)表于 2019-8-11 17:46 | 顯示全部樓層
no matching function for call to 'FDC2214::begin(int, int, int)'
下載了文件,上傳示例程序
出現(xiàn)這種錯誤是怎么回事呢?
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復(fù) 返回頂部 返回列表