embeded/arduino(genuino)2017. 10. 26. 14:30

홈페이지 만드는거 따윈 포기하고

역시 땜질이 최고지(?) ㅋㅋ


블루투스 이어폰 잘라놓은거 한번 만들어 보고

릴레이로 무언가 좀 장난질 좀 쳐봐야지(아.. 남는 멀티탭이 있으려나? ㅠㅠ)



Posted by 구차니
embeded/arduino(genuino)2017. 10. 26. 13:48

예전에는 그냥 GPIO로 제어만 해서

실제로 AC나 DC를 물리지 않았던 지라..

한번 선풍기/전기장판 이런거 제어해볼가 하고 일단 구매하려고 하는데..


AC는 두개를 모두 릴레이로 따로 제어해주어야 하나?

하나의 선만 하면되려나? 헷갈리네?


[링크 : http://deneb21.tistory.com/222]

[링크 : http://bbangpan.tistory.com/79]

[링크 : http://blog.naver.com/yunks4001/220029836358]


[링크 : http://rabbitmax.com/files/SONGLE-SRD-05VDC-SL-C.pdf]


일단은.. 그냥 NC-COM 연결하면 되는거 같긴한데..

[링크 : http://howtomechatronics.com/tutorials/arduino/control-high-voltage-devices-arduino-relay-tutorial/]


NO에 연결하면 LOW 일때 스위치가 연결되는 듯?

그럼.. NC에 하면 LOW 일때 스위치가 끊어지려나?

digitalWrite(RELAY1,LOW); // Turns ON Relays 1

Serial.println("Light ON");

delay(2000); // Wait 2 seconds

digitalWrite(RELAY1,HIGH); // Turns Relay Off

Serial.println("Light OFF");

delay(2000); 

[링크 : http://www.instructables.com/id/Controlling-AC-light-using-Arduino-with-relay-modu/]


A접점(arbeit contact)은 전기적으로 릴레이에 전류가 흐르면 동작하여 닫히는(ON) 접점

(normally open contact). 

 

B접점(break contact)은 전기전으로 릴레이에 전류가 흐르면 동작하여 접점이 열리는(OFF) 접점.

상시폐접점(normally closed contact).


C접점(change-over contact)은 a, b접점부를 공유, 트랜스퍼 접점(transfer contact) 이라고도 함.


A접점=NO(Normally open)

B접점=NC(Normally closed)

C접점=Transfer contact

[링크 : http://blog.naver.com/hjhmsshs/50190270118]



+

2020.03.07

전원선 끊어서 NO(normal open, 전원 차단시 꺼짐) - COMMON에 연결하면 된다.

[링크 : http://makeshare.org/bbs/board.php?bo_table=arduinoetc&wr_id=14]

[링크 : https://studyingandsuccess.tistory.com/18]

Posted by 구차니
개소리 왈왈/독서2017. 10. 26. 09:32

책도 작은데, 글씨 있는 부분은 더 적어서 아주 빠르게 읽은 책


이전 세대와 많이 달라졌고 힘드니까

어떤 깊이있는 내용이라던가 어떻게 하라는게 아닌 토닥토닥 이라는 느낌


[링크 : http://kyobobook.co.kr/product/detailViewKor.laf?barcode=9791195581436]

Posted by 구차니
Programming/C Win32 MFC2017. 10. 25. 16:36

대부분의 툴들이..

USB 시리얼 뽑으면 먹통이 되는 경우가 많은데

그거 해결용으로 검색중..


[링크 : https://stackoverflow.com/.../identify-disconnect-event-with-a-windows-usb-virtual-com-port]


FTDI의 경우에는 이렇게 보내는 주는 듯?

class CAboutDlg : public CDialog

{

void CD2XXNotifyDlg::OnPaint();

BOOL CD2XXNotifyDlg::OnDeviceChange(UINT EventType, DWORD dwData);

protected:

DECLARE_MESSAGE_MAP()

};

void CAboutDlg::DoDataExchange(CDataExchange* pDX){}

BEGIN_MESSAGE_MAP(CD2XXNotifyDlg, CDialog)

ON_WM_PAINT()

ON_WM_DEVICECHANGE()

END_MESSAGE_MAP()

void CD2XXNotifyDlg::OnPaint()

{}

BOOL CD2XXNotifyDlg::OnDeviceChange(UINT EventType, DWORD dwData) {}

[링크 : http://www.ftdichip.com/.../AN_152_Detecting_USB_%20Device_Insertion_and_Removal.pdf]



MFC 클래스 위저드에는 WM_DEVICECHANGE가 없는데 afxmsg.h 에는 존재한다.

#define ON_WM_DEVICECHANGE() \

{ WM_DEVICECHANGE, 0, 0, 0, AfxSig_bwl, \

(AFX_PMSG)(AFX_PMSGW) \

(static_cast< BOOL (AFX_MSG_CALL CWnd::*)(UINT, DWORD_PTR) > ( &ThisClass :: OnDeviceChange)) }, 


    case WM_DEVICECHANGE:
    {
        //
        // This is the actual message from the interface via Windows messaging.
        // This code includes some additional decoding for this particular device type
        // and some common validation checks.
        //
        // Note that not all devices utilize these optional parameters in the same
        // way. Refer to the extended information for your particular device type 
        // specified by your GUID.
        //
        PDEV_BROADCAST_DEVICEINTERFACE b = (PDEV_BROADCAST_DEVICEINTERFACE) lParam;
        TCHAR strBuff[256];

        // Output some messages to the window.
        switch (wParam)
        {
        case DBT_DEVICEARRIVAL:
            msgCount++;
            StringCchPrintf(
                strBuff, 256, 
                TEXT("Message %d: DBT_DEVICEARRIVAL\n"), msgCount);
            break;
        case DBT_DEVICEREMOVECOMPLETE:
            msgCount++;
            StringCchPrintf(
                strBuff, 256, 
                TEXT("Message %d: DBT_DEVICEREMOVECOMPLETE\n"), msgCount);
            break;
        case DBT_DEVNODES_CHANGED:
            msgCount++;
            StringCchPrintf(
                strBuff, 256, 
                TEXT("Message %d: DBT_DEVNODES_CHANGED\n"), msgCount);
            break;
        default:
            msgCount++;
            StringCchPrintf(
                strBuff, 256, 
                TEXT("Message %d: WM_DEVICECHANGE message received, value %d unhandled.\n"), 
                msgCount, wParam);
            break;
        }
        OutputMessage(hEditWnd, wParam, (LPARAM)strBuff); 

} 

[링크 : https://msdn.microsoft.com/en-us/library/windows/desktop/aa363432(v=vs.85).aspx]


뽑으면 0x0007->0x8004 순서로 발생하고

꼽으면 0x0007->0x0007->0x8000->0x0007 으로 발생한다.

(근데 뽑는건 꼽는거에 비해서 반응이 많이 느리거나 안될때도 있음)

DBT_DEVNODES_CHANGED 0x0007

DBT_DEVICEARRIVAL 0x8000

DBT_DEVICEREMOVECOMPLETE 0x8004 

[링크 : https://msdn.microsoft.com/en-us/library/windows/desktop/aa363480(v=vs.85).aspx]


+

여긴 일단 .net 쪽

[링크 : https://stackoverflow.com/.../usb-serial-port-unplugged-but-still-in-the-list-of-ports]

[링크 : https://stackoverflow.com/.../com-port-disappears-when-unplugging-usb]

'Programming > C Win32 MFC' 카테고리의 다른 글

CEdit 내용 지우기와 메모리 사용량  (0) 2017.10.26
CEdit 길이 제한  (0) 2017.10.26
MFC 다이얼로그에 웹브라우저 넣기  (0) 2017.10.24
한글 코드 페이지  (0) 2017.10.23
CSliderCtrl OnHScroll() 주의사항  (0) 2017.10.20
Posted by 구차니
개소리 왈왈/독서2017. 10. 24. 19:17

특이하게도 인도출신 박사인 듯?

아무튼 수 많은 인지가 어떤식으로 작동을 하는지


환상지 현상과 공감각 무시환자(시야의 절반만을 받아 들이는)

등의 특이한 경우를 통해 뇌의 인지구조를 파악하는 내용이다.


뇌과학에 대해서 약간의 지식이 있는 사람이라면 좀 지루할 수도 있는 내용들이지만,

인도의 신들이 인지 과정에서 '과장/왜곡'이 주는 미적감각의 동서양적인 차이는

상상하지 못했던 깨달음을 주었다.



[링크 : http://www.kyobobook.co.kr/product/detailViewKor.laf?barcode=9788955618686]



펜필드 호문쿨루스 라는 단어를 알게 된게 유일한 수확이려나?

[링크 : https://en.wikipedia.org/wiki/Wilder_Penfield]


엄밀하게는 와일드 펜필드의 호문쿨루스 혹은

코르티칼 호문쿨루스 인가?

[링크 : https://en.wikipedia.org/wiki/Cortical_homunculus]


Posted by 구차니
Programming/C Win32 MFC2017. 10. 24. 16:32

원래 원하는건.. 워드처럼

각종 서식을 넣는 디버그 창인데.. 혹시나 해서 일단 검색을 해둠..


[링크 : http://shaeod.tistory.com/537]

[링크 : http://purelab.net/zbxe/guruin/108736]

'Programming > C Win32 MFC' 카테고리의 다른 글

CEdit 길이 제한  (0) 2017.10.26
MFC USB 시리얼 제거 탐지하기 OnDeviceChange()  (0) 2017.10.25
한글 코드 페이지  (0) 2017.10.23
CSliderCtrl OnHScroll() 주의사항  (0) 2017.10.20
MFC 슬라이더 사용시 주의사항  (0) 2017.10.19
Posted by 구차니

그냥 가장 싸게 가는걸로 현재 결론


8000원 주고 산 녀석이 일주일도 안되서 초음파 쏴대서 일단 분해 해버렸고

[링크 : http://www.coupang.com/vp/products/35440009?vendorItemId=3276622943]


자전거 핸드폰 거치대를 재활용하고(요즘 자전거 봉인모드...)

(오프라인에서 구매한거라 모델을 모르겠음)


스피커 쪽에 소리를 앞으로 빼내기 위해서 다이소 제 1000원짜리 문닫힘 방지 패드를 사서 대충 끼워주고 해결!

[링크 : http://www.daisomall.co.kr/shop/goods_view.php?id=0000077798]



비주얼은 구린데

의외로 나름 소리가 앞을 향해서 잘 나오는 것 같아서

8천원 짜리 일주일도 못간 녀석 보다는 백만배 나은듯



마음은.. 1.4만 주고 블루투스 스피커 사는건데

걍 이정도에서 일단은 만족해야 할 듯 (지갑이 운다 ㅠㅠ)

Posted by 구차니

탄핵되서 인간 이하 취급 당하고 있다고

누가 의뢰했는지도 모르고, 변호해야 할 대상을 만나보지도 않은채 변호하려 한다는

MH 그룹의 정체에 대해서 기사가 나오기 시작하는데

[링크 : http://www.hani.co.kr/arti/international/globaleconomy/814993.html]


MH 그룹 홈페이지 라는데 정보가 없다.

[링크 : http://www.mhgrpllc.com/MH_Group.html]


 QUERY:mhgrpllc.com

   Domain Name: MHGRPLLC.COM

   Registry Domain ID: 1928412378_DOMAIN_COM-VRSN

   Registrar WHOIS Server: whois.godaddy.com

   Registrar URL: http://www.godaddy.com

   Updated Date: 2017-05-13T14:25:17Z

   Creation Date: 2015-05-12T21:35:53Z

   Registry Expiry Date: 2018-05-12T21:35:53Z

   Registrar: GoDaddy.com, LLC

   Registrar IANA ID: 146

   Registrar Abuse Contact Email: abuse@godaddy.com

   Registrar Abuse Contact Phone: 480-624-2505

   Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited

   Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited

   Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited

   Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited

   Name Server: NS19.DOMAINCONTROL.COM

   Name Server: NS20.DOMAINCONTROL.COM

   DNSSEC: unsigned

   URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/

>>> Last update of whois database: 2017-10-24T00:19:17Z <<<


For more information on Whois status codes, please visit https://icann.org/epp


NOTICE: The expiration date displayed in this record is the date the

registrar's sponsorship of the domain name registration in the registry is

currently set to expire. This date does not necessarily reflect the expiration

date of the domain name registrant's agreement with the sponsoring

registrar.  Users may consult the sponsoring registrar's Whois database to

view the registrar's reported date of expiration for this registration.


TERMS OF USE: You are not authorized to access or query our Whois

database through the use of electronic processes that are high-volume and

automated except as reasonably necessary to register domain names or

modify existing registrations; the Data in VeriSign Global Registry

Services' ("VeriSign") Whois database is provided by VeriSign for

information purposes only, and to assist persons in obtaining information

about or related to a domain name registration record. VeriSign does not

guarantee its accuracy. By submitting a Whois query, you agree to abide

by the following terms of use: You agree that you may use this Data only

for lawful purposes and that under no circumstances will you use this Data

to: (1) allow, enable, or otherwise support the transmission of mass

unsolicited, commercial advertising or solicitations via e-mail, telephone,

or facsimile; or (2) enable high volume, automated, electronic processes

that apply to VeriSign (or its computer systems). The compilation,

repackaging, dissemination or other use of this Data is expressly

prohibited without the prior written consent of VeriSign. You agree not to

use electronic processes that are automated and high-volume to access or

query the Whois database except as reasonably necessary to register

domain names or modify existing registrations. VeriSign reserves the right

to restrict your access to the Whois database in its sole discretion to ensure

operational stability.  VeriSign may restrict or terminate your access to the

Whois database for failure to abide by these terms of use. VeriSign

reserves the right to modify these terms at any time.


The Registry database contains ONLY .COM, .NET, .EDU domains and

Registrars.

Domain Name: MHGRPLLC.COM

Registrar URL: http://www.godaddy.com

Registrant Name: Registration Private

Registrant Organization: Domains By Proxy, LLC

Name Server: NS19.DOMAINCONTROL.COM

Name Server: NS20.DOMAINCONTROL.COM

DNSSEC: unsigned


For complete domain details go to:

http://who.godaddy.com/whoischeck.aspx?domain=MHGRPLLC.COM


The data contained in GoDaddy.com, LLC's WhoIs database,

while believed by the company to be reliable, is provided "as is"

with no guarantee or warranties regarding its accuracy.  This

information is provided for the sole purpose of assisting you

in obtaining information about domain name registration records.

Any use of this data for any other purpose is expressly forbidden without the prior written

permission of GoDaddy.com, LLC.  By submitting an inquiry,

you agree to these terms of usage and limitations of warranty.  In particular,

you agree not to use this data to allow, enable, or otherwise make possible,

dissemination or collection of this data, in part or in its entirety, for any

purpose, such as the transmission of unsolicited advertising and

and solicitations of any kind, including spam.  You further agree

not to use this data to enable high volume, automated or robotic electronic

processes designed to collect or compile this data for any purpose,

including mining this data for your own personal or commercial purposes. 


Please note: the registrant of the domain name is specified

in the "registrant" section.  In most cases, GoDaddy.com, LLC 

is not the registrant of domain names listed in this database.

[링크 : https://whois.kisa.or.kr/kor/whois/whois.jsp]


WHOIS search results

Domain Name: MHGRPLLC.COM

Registry Domain ID: 1928412378_DOMAIN_COM-VRSN

Registrar WHOIS Server: whois.godaddy.com

Registrar URL: http://www.godaddy.com

Update Date: 2017-05-13T14:25:16Z

Creation Date: 2015-05-12T21:35:53Z

Registrar Registration Expiration Date: 2018-05-12T21:35:53Z

Registrar: GoDaddy.com, LLC

Registrar IANA ID: 146

Registrar Abuse Contact Email: abuse@godaddy.com

Registrar Abuse Contact Phone: +1.4806242505

Domain Status: clientTransferProhibited http://www.icann.org/epp#clientTransferProhibited

Domain Status: clientUpdateProhibited http://www.icann.org/epp#clientUpdateProhibited

Domain Status: clientRenewProhibited http://www.icann.org/epp#clientRenewProhibited

Domain Status: clientDeleteProhibited http://www.icann.org/epp#clientDeleteProhibited

Registry Registrant ID: 

Registrant Name: Registration Private

Registrant Organization: Domains By Proxy, LLC

Registrant Street: DomainsByProxy.com

Registrant Street: 14455 N. Hayden Road

Registrant City: Scottsdale

Registrant State/Province: Arizona

Registrant Postal Code: 85260

Registrant Country: US

Registrant Phone: +1.4806242599

Registrant Phone Ext:

Registrant Fax: +1.4806242598

Registrant Fax Ext:

Registrant Email: MHGRPLLC.COM@domainsbyproxy.com

Registry Admin ID: 

Admin Name: Registration Private

Admin Organization: Domains By Proxy, LLC

Admin Street: DomainsByProxy.com

Admin Street: 14455 N. Hayden Road

Admin City: Scottsdale

Admin State/Province: Arizona

Admin Postal Code: 85260

Admin Country: US

Admin Phone: +1.4806242599

Admin Phone Ext:

Admin Fax: +1.4806242598

Admin Fax Ext:

Admin Email: MHGRPLLC.COM@domainsbyproxy.com

Registry Tech ID: 

Tech Name: Registration Private

Tech Organization: Domains By Proxy, LLC

Tech Street: DomainsByProxy.com

Tech Street: 14455 N. Hayden Road

Tech City: Scottsdale

Tech State/Province: Arizona

Tech Postal Code: 85260

Tech Country: US

Tech Phone: +1.4806242599

Tech Phone Ext:

Tech Fax: +1.4806242598

Tech Fax Ext:

Tech Email: MHGRPLLC.COM@domainsbyproxy.com

Name Server: NS19.DOMAINCONTROL.COM

Name Server: NS20.DOMAINCONTROL.COM

DNSSEC: unsigned

URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/

>>> Last update of WHOIS database: 2017-10-24T0:00:00Z <<< 


For more information on Whois status codes, please visit https://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en


The data contained in GoDaddy.com, LLC's WHOIS database,

while believed by the company to be reliable, is provided "as is"

with no guarantee or warranties regarding its accuracy. This

information is provided for the sole purpose of assisting you

in obtaining information about domain name registration records.

Any use of this data for any other purpose is expressly forbidden without the prior written

permission of GoDaddy.com, LLC. By submitting an inquiry,

you agree to these terms of usage and limitations of warranty. In particular,

you agree not to use this data to allow, enable, or otherwise make possible,

dissemination or collection of this data, in part or in its entirety, for any

purpose, such as the transmission of unsolicited advertising and

solicitations of any kind, including spam. You further agree

not to use this data to enable high volume, automated or robotic electronic

processes designed to collect or compile this data for any purpose,

including mining this data for your own personal or commercial purposes. 


Please note: the registrant of the domain name is specified

in the "registrant" section. In most cases, GoDaddy.com, LLC 

is not the registrant of domain names listed in this database. 

[링크 : https://www.godaddy.com/whois/results.aspx?domain=mhgrpllc.com...udzeY0VJcAX280R8]


구글로 해당 전화번호 찾아보니, 대행업체로 전화번호 다 돌려 버린듯?

[링크 : https://www.ozbargain.com.au/node/184681]


년 16.49$ 싸다면 싸고 비싸다면 비싼데..

[링크 :https://kr.godaddy.com/domainaddon/private-registration.aspx]

Posted by 구차니
개소리 왈왈/독서2017. 10. 23. 21:34

신간도서에서 보다가 우리집 개복이가 생각나서 빌려본 책


머.. 역자주에도 나오지만

어떤 과학적인 내용을 기대한다면 기대이하

어쩌면 과학자인 저자가 자신의 개를 조금은 더 잘 알아가는 과정에

과학이 끼어있을 뿐인 정도?


기르던 개가 죽고

새로운 개를 데려오고, 또 키워가는 도중에 도대체 얘는 무슨생각일까? 라는 생각이 들고

그러한 의문을 해소하기 위해 fMRI 에 멍멍이를 넣기 위해 훈련을 시키고

1차 실험이 끝나갈때 기르던 다른 강아지와의 이별을 맞게 되는데

이 대목에서 문득 우리집에 있는 똥개가 나이도 되었고 죽고 나서는 난 어떨까 라는 생각이 들어 울쩍해졌다.


아무튼

내용만 따지자면, 개들도 뇌가 있고(응?) 생각도 있고, 마음도 있고

늑대에서 분리되어 개가 되었다고 하지만

분리의 과정에서 인간과의 소통을 위해 관찰력을 지닌 분류는 개가 되었고

그러길 바라지 않고, 그러지 못한 쪽은 늑대로 남게 되지 않았을까 이런 추측과

그 과정에서 내가 알지 못했던 떠나보낸 아이와의 동영상 사진들 속에

저 아이에게 얼마나 내가 소홀히 했던가

그 아이는 항상 날 바라보며 나의 반응을 지켜보고 그거에 반응해왔을텐데.. 라는 아쉬움이 잔뜩이고


개에게 사랑이라는 감정이 있을지는 좀더 조사를 해봐야 하고

이제 그 시작을 끊었을 뿐이다 라는 결론?



[링크 : http://www.kyobobook.co.kr/product/detailViewKor.laf?barcode=9788997743216]

Posted by 구차니

제작년에는 U-2가 오더니

이번년도에는 B-1B가 지나갔따고 하고

다행히도(?) 드론의 테러 없이 F-22 에어쇼를 진행한듯 한데


난 못감 ㅠㅠ

'개소리 왈왈 > 2017 에어쇼' 카테고리의 다른 글

adex 2019  (2) 2019.10.15
ADEX 2017 일정  (0) 2017.06.22
Posted by 구차니