Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

敲擊感應電路相關問題 #16

Open
HellbroWDR opened this issue Feb 27, 2024 · 4 comments
Open

敲擊感應電路相關問題 #16

HellbroWDR opened this issue Feb 27, 2024 · 4 comments

Comments

@HellbroWDR
Copy link

作者您好,我參考了您的文檔搭建了使用橋式整流器的電路。使用的板子是arduino leonardo,橋式整流器使用的是DB105(店家DB107缺貨),電阻使用100k歐姆。
目前遇到的問題是,沒有裝橋式整流器的話,敲擊可以感測到,但是有裝的話就感應不到敲擊。想請問作者有遇到這種狀況嗎?

@ShikyC
Copy link
Owner

ShikyC commented Feb 29, 2024

Please first check the output of the rectifier (with a multimeter or an oscilloscope) to verify it's working. Also, please note although the input polarity doesn't matter, the output DOES. You should connect + to an analog input pin and - to the ground. Can you show me a picture of your circuit?

@HellbroWDR
Copy link
Author

HellbroWDR commented Feb 29, 2024

84B95A0F-4188-4349-8314-853CA7C5CDD7
棕線接analog input,黑線接GND

然後想問一下作者,模擬器的部分您是用TJAP還是TNDE?我之前試,這兩個模擬器對Keyboard.print跟Keyboard.write沒反應,要Keyboard.press一定時間才有反應

@ShikyC
Copy link
Owner

ShikyC commented Mar 1, 2024

Can you test the direct output of the rectifier with a multimeter? Using voltage mode, measure the value between + and - while you hit the drum. Although not accurate, you should be able to see a value change. If not, the rectifier chip might not work for you.
You can also remove the resistors and connect + directly to the analog input of your Leonardo board (unlike ESP32, ATmega32 boards measure analog inputs from 0 to 5V so you don't need to scale down the input voltage) to ensure that it wasn't the issue of the resistors.

@HellbroWDR
Copy link
Author

測完發現接上橋式整流器後敲擊沒反應。打算直接用作者您設計的pcb了。
如果之後作者測leonardo有成功的話,再麻煩您分享電路,感謝您。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants