目前分類:Arduino (40)

瀏覽方式: 標題列表 簡短摘要

This video shows how to use ChatGPT to implement Observer Pattern code in Arduino.

The content includes:

1. Install C++ STL for Arduino

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

 This Video shows how to use VS Code and PlatformIO to debug Arduino code in the ESP Wrover Kit with internal JTAG.

1. Introduce PlatformIO

2. Introduce how to setup JTAG on ESP Wrover Kit and install JTAG Driver

3. Install PlatformIO extension

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

This video shows the test procedure of the software debugger used in the Arduino IDE.

本視頻展示一個軟體偵錯器在Arduino開發環境中的測試過程。

This debugger provides set/clean break point and display data in the serial monitor. 

這個偵錯器可以提供設定/清除中斷點,以及將資料顯示在序列埠視窗中。

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

This example shows how read the raw data of MPU6050 by using Arduino Mega2560.

There are several steps:

1. Download and install MPU6050 library. (refer to: http://www.i2cdevlib.com/devices/mpu6050#source)

2. Introduce the source code.

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

 This video show the blinking of RGB LED controlled by Mega2560.

本影片展示用Mega2560控制RGB LED閃爍的狀況。

Next video will express how to implement it by editing the Arduino code in the VS Code.

下一個影片將說明如何使用VS Code來編寫Arduino code來實現這樣的控制。

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

This example shows how to install Arduino extension and edit Arduino code in the VS code.
這個範例說明如何在VS Code中安裝Arduino extension以及編輯Arduino程式碼。
 
1. Install Arduino extension in the VS code.
在VS code中安裝Arduino extension。
2. Set Arduino installation Path.
設定 Arduino的安裝路徑。
3. Ctrl+Shift+P to input command " Arduino: Examples".
使用  Ctrl+Shift+P去輸入"Arduino: Examples"指令。
4. Open Blinky example 
打開Blink的範例
5. Select COM port and board type "Mega2560".
選擇COM port, 以及Mega2560開發版。
6. Modify code and upload to Mega2560.
修改程式碼然後上傳到Mega2560上。

 
We will share more tutorial videos with people who want to learn LabVIEW and Python welcome to subscribe this channel.
未來會陸續更新影片,讓想學習LabVIEW和Python的朋友可以看影片學習,歡迎訂閱此頻道。
文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

Read A0, A1 and A15 analog input and transfer to voltage value. in Range function check if voltage is in the right range.

讀出A0, A1和A15的類比訊號,轉換成電壓訊號,
然後再用inRange函式判斷是否有在正確的範圍內。

fishark 發表在 痞客邦 留言(0) 人氣()

由於一段時間沒使用Arduino,於是裝了最新的Arduinon IDE 1.8.10,

沒想到在執行LabVIEW程式時一直出現error 5003,讓我一度以為Mega2560的板子壞了,

但用Arduino IDE寫code時功能卻又是正常的,我感到非常的不解,

於是google了一下,才發現Arduino IDE在1.8.5以上時會出現這個問題,

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

為了在Arduino上開發ESP32的開發版,我們需要在Arduino IDE上裝ES32 Add-On,

安裝Arduino IDE1.8.9 

1. 到 https://www.arduino.cc/en/Main/Donate 下載Arduino IDE,選just download即可。
2. 安裝Arduino IDE

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

I try to increase th resolution of the analog signal. I think there are two methods to fillfull it. One is the adjustment the analog reference which is provided in Mega boards, another is to use higher resolution Arduino boards such as DUE.

I had tried  these two methods and I wrote down some tips in the following:

 

After I tried Mega2560 and DUE, Mega2560 board can implement the function of analogReference(), but Due didn’t.

Due only has 3.3V analog reference. If you want to change AREF of DUE, external AREF and some hardware modification are required.

 

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

有時候會在網路上Download一些別人寫好的函式庫與範例,

在執行時會遇到:"WProgram.h: No such file or directory"訊息,

基本上我是在該函式庫的.cpp以及.h中,將原先的"WProgram.h" 改成 "Arduino.h",

下載的範例即可執行,

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()


由於網路上有很多寫好的Arduino函式庫,大部分都是用成ZIP下載,

我查了一些關於如何撰寫的資料,如果有興趣可以試著寫看看:

1. http://yehnan.blogspot.tw/2013/01/arduino.html

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

LabVIEW for Arduino中有提供Stepper motor的範例,

我們配合實際的步進馬達與驅動電路板來作一個操作,

實際使用的狀況可以依所選的步進馬達種類(五線,四線,單極,雙極等),以及所一次需要控制幾個步進馬達,步進馬達所需要的電壓等,來做設定上的調配。

我就手上有的,四線式的步進馬達,選用L298N的驅動板,作一些測試,

文章標籤

fishark 發表在 痞客邦 留言(5) 人氣()

最近在更深入研究如何控制步進馬達時,
看了Arduino範例的stepper.c,了解其運作原理,
但卻也意外地發現其網路上有人提到的bug。

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

前些剛好有一個血氧濃度的探頭,也不知道能不能使用,

便在網路上Google了一些使用Arduino量測血氧的文章,

有興趣可以參考:

1. 網址:

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

最近剛入手了Arduino Due,原因是因為是用Cortex-M3的MCU,想試一下這片板子的功能,

首先,來測是Due提供的DAC功能,分別有DAC0, DAC1兩個接腳可以使用,

經過一些搜尋,主要有幾點要注意:

1. You must use Arduino IDE 1.5 or later to program the Due-->要使用Arduino IDE 1.5以上的版本。

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

前些日子的忙碌剛好到一個段落,

最近拿了一顆藍芽BLE模組(藍芽4.0)想要嘗試將Arduino的訊號傳到Android手機,

雖然之前已經有用HC-06做過類似的事,

不過對BLE而言是不同的,在手機端是要寫Android程式,Java 物件導向相關,不像之前的藍芽範例是用App inventor寫的,

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

最近在使用Eagle PCB layout電路,除了學會自己要製作新的元件(Device, symbol, package),

也找了許多的網路資源的元件庫,

以下是連結的網址:

1. Ladyada/Adafruit's own Eagle CAD library: http://www.ladyada.net/library/pcb/eaglelibrary.html

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

74HC4067/74HCT4067類比多工器可以切換16個類比腳位,只要接到MCU的一個類比腳位,

MCU就可以靠一個類比腳位,切換讀取74HC4067/74HCT4067類比多工器上的16個類比腳位,

在74HC4067/74HCT4067類比多工器上,s1,s2,s3,s4控制Y0-Y15的類比輸入腳位切換到到Z,

而Z接到Mega25602的類比腳位(如A0),因此只要控制s1,s2,s3,s4,Mega2560的A0就可以切換地讀取16個類比訊號源,

文章標籤

fishark 發表在 痞客邦 留言(0) 人氣()

這一個範例是說明如何使用Mega2560與MCP23018作I2C通訊,

MCP23018為一個16通道的IO擴充IC,可以一口氣增加16個Digtal input 與 output,

在使用Arduino的通訊協定時,我們會用到Wire的函式庫,所以一開始要將Wire.h include進來,

我參考了一些網站來撰寫這個範例:

fishark 發表在 痞客邦 留言(0) 人氣()

1 2
Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼