tag:blogger.com,1999:blog-36833652325822587792024-03-19T20:07:21.695+08:00GROBOGCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.comBlogger127125tag:blogger.com,1999:blog-3683365232582258779.post-24690636810450479692020-04-08T16:21:00.002+08:002020-06-11T14:07:30.837+08:00MSP430G2 Geiger Counter and True Random Number Generator(TRNG)清個庫存把MSP430G2433消耗掉做個蓋格計數器跟物理亂數產生器,如果有核種可以找露營燈紗(瓦斯燈芯, 汽化燈燈芯)含釷的可以加快亂數產生,製作時如果電錶調整到1000VDC檔位內阻在10M(查文件)則調整VR1測量蓋格管的電壓為250v實際電壓就大概是400v了,我測試J321βγ和M4011沒問題,但這兩個管子拿強光手電筒照會有Event做輻射測量需要防光,相關資訊都在下面連結。
Github
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-77727524993327169512019-11-25T11:32:00.000+08:002020-06-26T22:15:58.450+08:00ESP32-CAM MJPEG Stream Decoder and Control Library
半年前在做自己的Computer Vision Board採買材料時,無意間知道ESP32-CAM這東西,買來放一段時間後,上週末有空拿出來測試這東西挺讓我驚艷,相見恨晚,主要是150NTD的價格加上已經有現成的Arduino相容範例,直接搞定SCCB設定跟DCMI Data還有一個4M PSRAM作為Frame Buffer,收到的MJPEG Stream在 UXGA 1600x1200解析度可以約10FPS每個JPEG 100Kb左右。
就整體來說這東西在Wi-Fi環境感覺上非常具有淺力,一些多Camera Computer Vision的應用可以配合Raspberry Pi運算,或者簡單的Robot需要Computer Vision然後輔以別的控制器以UART通訊控制(GPIO扣掉SCCB+DCMI和SDIO只剩UART...)都是不錯的選擇。
&GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-44851690944392323402019-11-09T23:23:00.002+08:002019-11-17T11:53:14.249+08:00Atrial Fibrillation Detection Blood Pressure Monitor Oscillometric Method
This project is electronic blood pressure monitor research platform with Oscillometric method, include SBP and DBP estimate algorithm, Atrial Fibrillation detection algorithm, calibration curve, GUI tool for fine-tune BP algorithm...etc, ofcourse, this is research use only.
Github
OSHWA CERTIFIED
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-56691550629023917982019-09-29T00:45:00.002+08:002020-06-11T14:16:46.048+08:00Enable STM32F4 FPU1. ./Libraries/CMSIS/Device/ST/STM32F4xx/Include/stm32f4.h -> add
#include <arm_math.h>
2. ./system_stm32f4xx.c -> in "void SystemInit(void)" add
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
SCB->CPACR |= ((3UL <<10*2)|(3UL <<11*2));/* set CP10 and CP11 Full Access */
#endif
3.main.c add
#define __FPU_PRESENT
#define __FPU_USEDGCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-7170636518349781532019-09-29T00:35:00.001+08:002019-09-30T17:31:03.415+08:00wxECGAnalyzer - cross platform ECG signal process toolDetection of abnormal rhythm morphologies is more difficult than normal beat, therefore, we need to collect abnormal rhythm signals in clinical practice to improve the detection of QRS-complex.
This project is for Electrocardiogram(ECG) signal algorithms design and validation, include preprocessing, QRS-Complex detection, embedded system validation, ECG segmentation, label your machine GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-21299499625031075912019-07-21T21:08:00.002+08:002019-07-21T21:14:40.177+08:00Cross-Platform Serial Port LibraryThis is cross-platform(build passing High-Sierra and Win10) serial port library written in C++ , and for demo application wxTerm.
SerialPortLibrary in more detail : Github
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-72318017657784566242019-06-21T17:15:00.002+08:002019-06-21T17:15:34.430+08:00CSR64215 + PCM5102 + PreAMP(Dual OPA227)
SW4 = Play/Stop
SW3 = Vol+
SW2 = Vol-
SW1 = On/Off
Download:
Github
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-10245462101126307022019-01-13T21:20:00.002+08:002019-01-13T22:31:21.364+08:00STM32F4 PCA9685 Driver For Servo Motor
In this case, period 0.5ms~2.5ms, and maximum angle 180 ,if SetPWNFreq = 50Hz, 1000ms/50 = 20ms
Github
Reference :
https://cdn-shop.adafruit.com/datasheets/PCA9685.pdf
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-67092174876873311172018-12-20T20:26:00.000+08:002018-12-22T14:34:35.583+08:00Pulse Oximeter with MAX3010X在同一波長下針對Hb和HbO2的吸收(extinction coefficient or absorption coefficient)有差異,而如果要求SPo2量測兩個不同波長的吸收就可以求解一個未知數。
因為光對於動脈微血管血液的變化(隨著心率)會有交流訊號,而其他的組織(吸收散射反射)則是直流成分,因此將兩波長反射量變化正規化後的結果作為R-Ration(SPo2為非線性),利用經驗公式A, B係數可得一SPo2曲線,例如660nm/940nm = 1, SPo2 = 85%,例如A - B = 110 - 25 斜率。
具體實現只要動態的將直流成分除去,並且將兩波長光直流水平控制在一範圍(SPo2都有類似PGA的功能),得到的兩波長交流訊號RMS比值即可推算SPo2。
以下Github包含STM32F4 Driver forGCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-84758787393737008552018-10-04T00:16:00.002+08:002019-02-22T12:20:48.906+08:00Continuous Non Invasive Blood Pressure Research Platform (ECG and PPG) Pulse Arrival Time BasedThis project is cuffless cNIBP research platform with ECG(two-electrode) and PPG
In cuffless non-invasive blood pressure monitor field, we with the accurate calibration of PAT to BP, beat-to-beat BP can be estimated from PAT. On the basis of the theoretical relationship between PAT and BP and their experimental or empirical relationship, various models that correlate PAT with BP have been GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-1079440896574003482018-09-21T12:28:00.000+08:002018-09-21T12:28:58.188+08:00Xcode 10.0 update problem of wxWidgets (g++)
ld: warning: /System/Library/Frameworks//...
try dylib to TBD files:
https://github.com/EOSIO/eos/issues/5418
and
http://sd.jtimothyking.com/2018/07/26/stub-file-and-library-file-out-of-sync/
if the problem remains unsolved:
1. sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.old
2. sudo rm -rf /Library/Developer/CommandLineTools.old
3. Download GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-67327509299324475132018-09-09T00:20:00.001+08:002018-09-10T12:38:59.743+08:00wxNixieClock
wxNixieClock is time sync tool for Nixie Clock project.(Only MAC-OS-X)
g++ -o2 -o wxnixieclock.app wxnixieclock.cpp serialport.cpp connectargsdlg.cpp `wx-config --cxxflags --libs` -m64
1. Pair BT of MAC and Nixie Clock.
2. Open wxNixieClock.app to select tools -> Connect Device -> cu.BT device driver
3. Click SyncTime button
4. Done!
Install wxWidgetsGCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-25557405238795297182018-09-07T10:58:00.001+08:002018-09-07T11:00:04.305+08:00STM32F407-MG996R and MAC OS X GUI testerSTM32F407 with PWM to control MG996R, and GUI tester for MAX OS X
1.
make STM32F407 project, and burn to board.(0.5ms~2.5ms)
2.
build GUI
g++ -o2 -o wxservotester.app wxservotester.cpp serialport.cpp connectargsdlg.cpp `wx-config --cxxflags --libs`
3.
wxservotester.app -> Tools -> ConnectDevice
4.
Test your servo motor!
GITHUB
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-1027567599612322172018-07-08T14:37:00.002+08:002018-07-09T14:00:01.057+08:00Real-Time wxSignalProcess with Serial Port(VCP) for MAC OS X
一個C++ MAC OS X的範例從/dev/tty.* or /dev/cu.* device driver取得Virtual COM Port的資料並且顯示在GUI,Framework用wxWidgets 3.0以及MRPT修改版的wxMathPlot 0.1.2,和修改以前Linux POSIX API的Class組合,多增加ioctl讀取,以及一個STM32F4的DMA+ADC的Example可供測試。
過去同性質不同平台的軟體參考:
Wndows版本(wxArduino)
Linux版本(wxArduino)
wxMathPlot
GitHub
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-74159466926035111152018-04-16T21:46:00.000+08:002018-04-16T21:47:13.634+08:00STM32F4xx - SSD1306 OLED Driver
STM32F4xx I2C SSD1306 OLED Driver
GITHUB
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-16645745122237279462017-08-01T10:10:00.003+08:002017-09-01T09:29:58.819+08:00Nixie Clock
C1,C2 如果不裝18650電池就用1000uF以上的電容,R15可以選擇5k~18k 1/4w以上的電阻。Github上有IN-12B與IN-14不過只是管子不同,IN-14的有加NEO-6M-0-001不過校時還沒寫,因為DS3231一年誤差一分鐘而已。
anoderescalc
5v to 180v FP5138 Module
Github
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-89989566154323640442017-03-16T23:42:00.001+08:002017-03-16T23:43:15.351+08:00wxSignalProcess with wxMathPlot 最近需要用Plot功能,找到wxMathPlot用起來還不錯,簡單易用執行上也還可以,我做了一個處理Signal的Example供往後參考。
github
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-35102138159331643792016-10-04T19:06:00.003+08:002016-10-04T19:07:18.180+08:00ER-OLED 0.49 breakout board這款比LD7032 0.5" OLED test board好搞...可以直接焊在FPC上
github
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com2tag:blogger.com,1999:blog-3683365232582258779.post-8493244321005611092016-09-24T22:54:00.003+08:002018-02-24T13:16:09.659+08:00Firework Controller V2
"中秋節放煙火 XD"
中的裝置新版本,因為Android -Bluetooth太短所以改用2.4G RF控制,加進去火焰偵測和人體紅外線,code for Energia MSP430G2XX3由於PCB在中秋前一天才到所以code離預設的完成度不高不過也不打算再改了,而且今年也沒有機會放到煙火XD相關資料在以下
Github
Eagle PCB File and Energia Code
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-28796558232406646682016-08-18T23:45:00.002+08:002018-02-24T13:17:31.299+08:00LD7032 0.5" OLED test board
LD7032的測試版上面放了ATMega328與MSP430FR5739,OLED要吃一個15v的電壓與Drive IC吃5v兩個電壓,15v升壓可以參考下面電路。基本上與對岸出的demo board一樣,這東西唯一麻煩的是connector不是普通的FPC而且超難焊很容易融化...插拔幾次後金手指就接觸不良了...,
Connector datasheet
Datasheet
Eagle PCB file
Eagle PCB library
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-65601558944903993082016-05-18T20:30:00.004+08:002018-02-24T13:19:37.744+08:00 MSP430FR5739 Mini
/* Blink
The basic Energia example.
Turns on an LED on for one second, then off for one second, repeatedly.
Change the LED define to blink other LEDs.
Hardware Required:
* LaunchPad with an LED
This example code is in the public domain.
*/
// most launchpads have a red LED
#define LED 30
 GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-845564969952385382016-05-17T13:44:00.003+08:002018-02-24T13:20:46.906+08:00Three-lead ECG
記得自己用software做filter
Download
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-90115365423999390772016-04-24T19:42:00.002+08:002016-09-27T14:38:11.584+08:00MiniDAC
PCM2706 + PCM5102A 32Bit 384KHz OTG,做給女朋友的生日禮物。
Github
=============2016/09/24===============
重新洗一板白色的比較好看
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-60299927695908395662016-03-23T01:06:00.003+08:002016-05-18T20:31:11.817+08:00最近實驗用
5v to 12v
Analog Switch TS3A5017
藉由控制IN1 IN2來決定D連結到S1 S2 S3 S4
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0tag:blogger.com,1999:blog-3683365232582258779.post-47923641359582669202016-02-02T17:21:00.003+08:002016-02-18T03:18:58.030+08:00CP2102-USB-RS232
焊接QFN零件最好先上一層錫,接著用吸錫線把PAD吸平,然後零件擺好用風槍吹,重點是吹的時候每五秒左右拉高一兩秒然後反覆幾次直到零件焊上,最後再用烙鐵從四邊刷過去補錫即可,每個階段的步驟最好都把助焊劑去除,如果可以USB四線可以都串0R電阻。
github
GCYhttp://www.blogger.com/profile/10437553478494758257noreply@blogger.com0