오실로스코프에 대충 연결하고
파워서플라이에서 3.3V 100mA 만들어서 넣음
1채널 노란색(프로브 노란색) - CLK(보라색)
2채널 파란색(프로브 빨간색) - DT(파란색)

시계방향(CW)로 돌리니 CLK가 먼저 반응하고

반시계방향(CCW)로 돌리니 DT가 먼저 반응한다.

위치에 따라서는 falling이 될수도 rising이 될수도 있긴한데..
이걸 어떻게 해석해야 한 틱 옮겨지고, 갑자기 방향이 바뀌는지 알 수 있을까?
오실로스코프에 대충 연결하고
파워서플라이에서 3.3V 100mA 만들어서 넣음
1채널 노란색(프로브 노란색) - CLK(보라색)
2채널 파란색(프로브 빨간색) - DT(파란색)

시계방향(CW)로 돌리니 CLK가 먼저 반응하고

반시계방향(CCW)로 돌리니 DT가 먼저 반응한다.

위치에 따라서는 falling이 될수도 rising이 될수도 있긴한데..
이걸 어떻게 해석해야 한 틱 옮겨지고, 갑자기 방향이 바뀌는지 알 수 있을까?
stm32f103 으로 인터럽트 통해서 처리하려고
rising / falling edge에서 하게 해놨더니, 도대체 어떻게 뜨는건지 모르게 많이 뜬다.
물론 귀차니즘으로 usb cdc를 통해 그냥 바로 출력하게 해놔서 놓치는게 있을 것 같기도 하지만
high가 연속 두번 뜨지 않나 먼가.. 놓치는 느낌인데
| USB CDC TEST 1528 5H 4H 5H USB CDC TEST 1529 USB CDC TEST 1530 4H 5L 5L 4L USB CDC TEST 1531 USB CDC TEST 1532 5L 4H USB CDC TEST 1533 USB CDC TEST 1534 4H 5L 4H USB CDC TEST 1622 USB CDC TEST 1623 5L 5H 4H 4H 5L USB CDC TEST 1624 USB CDC TEST 1625 4L USB CDC TEST 1626 |
A,B,C 모두 내부 풀업으로 하고 있는데, 외부 풀업과 0.1uF 을 달아줘서 해봐야겠다.

[링크 : https://retromakers.tistory.com/29] 하드웨어 채터링 방지
[링크 : https://blog.naver.com/kiatwins/221087863980] 하드웨어 채터링 방지
[링크 : https://eteo.tistory.com/138] sw 디바운스
ttyACM 이라는 장치명으로 붙길래 ACM의 약자가 궁금해서 검색
| Communication Device Class (Abstract Control Model) |
[링크 : https://www.keil.com/pack/doc/mw/usb/html/group__usbh__cdcacm_functions.html]
[링크 : https://docs.oracle.com/cd/E19253-01/819-0360/gevsx/index.html]
CDC의 서브클래스라고 해야하나.. 아무튼 CDC에 ACM과 ECM이 있는데
그러면 usb to ethernet 들은 ECM 클래스인가? 조사를 나중에 해봐야겠네
| 3) Communication Device Class(CDC) USB to Serial, USb to ethrenet 등 usb 포트에 연결하여 통신하는 디바이스들이 주로 사용하는 class이다. CDC는 통신 방법에 따라 ACM, ECM, EEM, NCM, OBEX 등의 다양한 subclass를 사용한다. ACM(Abstract Control Model Class) USB to Serial에 주로 사용되는 subclass ECM(Ethernet Networking Control Model) Usb to ethernet의 subclass. 주 목적은 ethernet packet을 전송하기 위한 class이다. |
[링크 : https://jeongzero.oopy.io/fad066a1-fe95-487e-a826-003aee42a0cc]
ECM - usb if에서 정의
rndis (remote ndis) - ms에서 개발한 독점 프로토콜
[링크 : https://codezoo.tistory.com/109]
[링크 : https://community.st.com/t5/stm32-mcus-products/stm32u5x-usb-ecm-demo-how-to-setup-host/td-p/631189]
| pc 쿨링팬 pwm 주파수 (0) | 2025.12.01 |
|---|---|
| bit banging (0) | 2025.05.08 |
| numa 와 smp (0) | 2025.05.07 |
| USB BOS - Binary Object Store (0) | 2024.07.14 |
| DDR3 pinout과 ECC (0) | 2024.04.01 |
대충 25khz?
[링크 : https://blog.naver.com/divenire_am/220489050085]
ATX 규격은 아니고 intel 팬에 대한 규격으로 있다고 ai 님께서 이야기 하신다.
| 4-Wire Pulse Width Modulation (PWM) Controlled Fans 2.3.1 PWM Output Signal The Hardware Monitor Devise is required to provide an open-drain or open-collector type output for the PWM signal on pin 4 (see Table 1 and Figure 8) with the following properties: Frequency: 25kHz nominal, 21-28kHz is acceptable Current sink capability: 5mA required, 8mA recommended Maximum voltage capability: 5.25V Maximum VOL: 0.8V Signal is not inverted, 100% PWM results in Max fan speed |
[링크 : https://glkinst.com/cables/cable_pics/4_Wire_PWM_Spec.pdf]
| usb cdc acm(Abstract Control Model) (0) | 2026.01.08 |
|---|---|
| bit banging (0) | 2025.05.08 |
| numa 와 smp (0) | 2025.05.07 |
| USB BOS - Binary Object Store (0) | 2024.07.14 |
| DDR3 pinout과 ECC (0) | 2024.04.01 |
순방향 전압강하가 적고 어쩌구 하고, 고속정류(교류->직류)에 유리하다고
하지만 역 누설전류가 많다는데 그게 어떤걸 의미하는지 감이 안왔었는데...
[링크 : https://m.blog.naver.com/giriffing/220911910493]
[링크 : https://m.blog.naver.com/haneham/221266444757]
말 그대로 전류가 역류해서 왜 전원이 생겨나지(멘붕) 이런 사태가 발생해버림..
그 와중에 온도에 따른 영향도 크다

천천히 읽어 봐야지..
단순하게 2개 채널의 출력값으로 회전 방향과 회전수를 재는줄 알았는데\
UVW 3개 채널로 나오는 녀석도 존재하나보다.
[링크 : https://blog.naver.com/3lastbaek5/221742506275]
[링크 : https://blog.naver.com/3lastbaek5/222027952013]
초음파를 쏴서 전 대역에 재밍거는 방법과 백색 소음을 전대역에 재밍거는 방법이 있다는데
일단 초음파를 쓰면 line of sight에서만 작동하는 듯.
[링크 : https://www.isecus.com/audio-recording-jammer-comparison/]
| 쇼트키 다이오드 (0) | 2025.11.24 |
|---|---|
| 엔코더 관련글 (0) | 2025.10.28 |
| pwm 화음 출력 (0) | 2025.08.06 |
| 힐베르트 변환포락선 인벨로프 (0) | 2025.06.27 |
| ntc r/t-tol (0) | 2025.04.29 |
얼굴을 어떻게 인식하나 해서 찾아보는 중
코드에서 아래의 내용이 있어 보니 cosine similarity 라고 나오는데
| def get_similarity(self, face_a, face_b): """Finds the similarity between two masks This is done by taking the vectors in the face mask and finding the cosine similarity between them. The formula to find this is: f(a[n] * b[n]) sim (a[],b[]) = ----------------------------------- sqrt(f(a[n]^2)) * sqrt(f(b[n]^2)) where: - a[] and b[] both represent the array of values of a single face mask - f(n) is the sum of values where n is 0 through the length of a[] minus 1 - a[] and b[] have equal lengths and equal indexes map to the same points on the face mask The idea behind this method is that vectors that have smaller vectors between them (independent of magnitude) should in theory be similar. """ dot = 0 a_sum = 0 b_sum = 0 for count in range(128): dot = dot + (face_a[count] * face_b[count]) a_sum = a_sum + (face_a[count] * face_a[count]) b_sum = b_sum + (face_b[count] * face_b[count]) sim = dot / (np.sqrt(a_sum) * np.sqrt(b_sum)) return sim |
대충 검색해보니 취향을 찾기로도 써먹기도 한다고
[링크 : https://wikidocs.net/24603]
[링크 : https://benn.tistory.com/62]
[링크 : https://snu-eng.kr/html/2403/SS46_23_special.php]
face_recognition 라이브러리에서는 face_encodings로 특징점을 추출하고
compare_faces라는 함수로 유사도를 계산해주는 듯.
| import face_recognition known_image = face_recognition.load_image_file("biden.jpg") unknown_image = face_recognition.load_image_file("unknown.jpg") biden_encoding = face_recognition.face_encodings(known_image)[0] unknown_encoding = face_recognition.face_encodings(unknown_image)[0] results = face_recognition.compare_faces([biden_encoding], unknown_encoding) |
| retinex 알고리즘 (0) | 2022.01.20 |
|---|---|
| jpeg 헤더 (0) | 2020.12.01 |
| 영상처리 관련 링크 기술 (0) | 2017.04.19 |
| HDRi / HDRI (High dynamic range imaging) (0) | 2011.04.29 |
| BDF - Bitmap Distribution Format (0) | 2011.04.28 |
문득 pwm 으로 소리를 내다보니
과거에 사운드카드들이 어떻게 소리를 내었나 DAC이 아닌 방법으로 낼수 있나 궁금해져서 검색
요건.. pic로 구현된.. 일종의 midi 합성기?
[링크 : https://blog.naver.com/eziya76/221634889533]
예를 들어 1khz와 2khz를 동시에 재생하려면
1khz(빨강) + 2khz(파랑) 가 "녹색"의 파장으로 출력되게 된다.

gemini 왈
1. 가장 편한건 다중 채널 pwm 출력을 하나로 묶어서 하면 된다.
2. 채널합성을 통해서 소리의 크기는 duty로, 주파수는 time tick에 계산하여(부하가 걸리지만) 열심히 cpu를 갈궈서 출력하면 됨
정도로 요약된다.
물론 pwm을 duty로 한다고 해서 피에조 스피커에서 소리크기가 달라지지 않았는데
low pass filter를 RC 필터로 구성하면 된다는데.. 그러고 보니 저 시정수 계산기는 좀 찾아봐야겠네
[링크 : https://m.blog.naver.com/ann_arbor/221359192492]
[링크 : https://gammabeta.tistory.com/3660]
150 ohm / 220uF

| 엔코더 관련글 (0) | 2025.10.28 |
|---|---|
| 오디오 녹음 재머 (0) | 2025.09.15 |
| 힐베르트 변환포락선 인벨로프 (0) | 2025.06.27 |
| ntc r/t-tol (0) | 2025.04.29 |
| 전자로드 사용법 (0) | 2025.04.28 |
https://en.wikipedia.org/wiki/Hilbert%E2%80%93Huang_transform
https://angeloyeo.github.io/2019/08/09/Hilbert_Transform.html
https://blog.naver.com/thegoldman/30034353702
https://driz2le.tistory.com/366
| 오디오 녹음 재머 (0) | 2025.09.15 |
|---|---|
| pwm 화음 출력 (0) | 2025.08.06 |
| ntc r/t-tol (0) | 2025.04.29 |
| 전자로드 사용법 (0) | 2025.04.28 |
| 합성저항, 목표저항 계산 (0) | 2025.01.07 |