이론 관련/전기 전자2017. 8. 11. 19:33

릴레이도 AC용 DC용이 따로 있네


이유인 즉슨... DC용을 AC에 쓰면 자장이 바뀌면서(AC는 + -가 계속 바뀌니)

드르르르륵 떨리면서 스위치가 정상작동 하지 않는다고...

[링크 : http://tip.daum.net/question/67003170]

'이론 관련 > 전기 전자' 카테고리의 다른 글

RMS - Root Mean Square  (0) 2017.09.28
정현파 (sine wave) 한문으로...?!  (0) 2017.09.20
얼터네이터 / 제너레이터  (0) 2017.07.12
배터리 방전율 관련  (0) 2017.07.04
LVCMOS, LVTTL  (0) 2017.05.24
Posted by 구차니

시놀로지 절전모드 해두면

하드랑 전부 절전모드로 있다가 삼바 접속 시도하면 살아나도록 되어있는데

완전 꺼져있다 켜지는건 아니고

Suspend to RAM 에서 LAN은 살아있다가 깨어 나도록 설정하는 것이고


그게 APCI S3 모드 인듯?

$ aptitude install pm-utils

$ cd /usr/lib/pm-utils/sleep.d/

$ sudo vi 70wol

#!/bin/bash

ethtool -s eth0 wol pug

$ sudo chmod +x 70wol

$ sudo pm-suspend


[링크 : https://superuser.com/.../is-it-possible-to-wake-up-an-acpi-s3-suspended-linux-system-with-an-smb-packet]


The ACPI specification defines the following four global "Gx" states and six sleep "Sx" states for an ACPI-compliant computer system:[23][24]

  • G0 (S0), Working: The computer is running and the CPU executes instructions. "Awaymode" is a subset of S0, where monitor is off but background tasks are running.
  • G1Sleeping: Divided into four states, S1 through S4:
    • S1Power on Suspend (POS): Processor caches are flushed, and the CPU(s) stops executing instructions. The power to the CPU(s) and RAM is maintained. Devices that do not indicate they must remain on may be powered off.
    • S2: CPU powered off. Dirty cache is flushed to RAM.
    • S3, commonly referred to as Standby, Sleep, or Suspend to RAM (STR): RAM remains powered.
    • S4Hibernation or Suspend to Disk: All content of the main memory is saved to non-volatile memory such as a hard drive, and the system is powered down.
  • G2 (S5), Soft Off: G2/S5 is almost the same as G3 Mechanical Off, except that the power supply unit (PSU) still supplies power, at a minimum, to the power button to allow return to S0. A full reboot is required. No previous content is retained. Other components may remain powered so the computer can "wake" on input from the keyboard, clock, modemLAN, or USB device.
  • G3Mechanical Off: The computer's power has been totally removed via a mechanical switch (as on the rear of a PSU). The power cord can be removed and the system is safe for disassembly (typically, only the real-time clock continues to run using its own small battery). 

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

Posted by 구차니
embeded/AVR (ATmega,ATtiny)2017. 8. 11. 18:58

mcp6002 opamp를 이용

일종의 comparator로 사용하여 gpio 입력으로 받아 감지

[링크 : http://blog.naver.com/ivy1379/220504291815]


생각해보면

gpio 히스테리시스 값 이하로 떨어지면 0이 되니

저항이나 다이오드로 전압 강하하고 gpio에 넣어서

0으로 떨어지는 순간 탐지하거나

다이오드 직렬 연결해서 단계별로 경고 셧다운 시키는 것도 방법일듯


stm32

[링크 : http://www.st.com/.../reset-and-supervisor-ics/resets-and-voltage-detectors/stm1061.html]

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

avrdude -U 옵션  (0) 2017.11.13
USBasp 설치  (0) 2017.11.13
avr bod(Brown out Detect)  (0) 2017.08.11
avr pwm 관련  (0) 2017.04.19
IAR AVR은 start section 설정이 안되나?  (0) 2017.02.17
Posted by 구차니
embeded/AVR (ATmega,ATtiny)2017. 8. 11. 18:52

갑작스런 저전압이 들어왔을때 리셋하도록 하는건줄 알았는데

자세한 내용은 몰랐다가 문득 찾아 보니 좋은 자료 획득!



BOD는 MCU가 늦게 부팅이 되어야 하는, 즉 주변기기부터 리셋이 완료되고 나서 켜야 하는 시스템에서

저전압에 의한 리셋이 걸릴때도 늦게 부팅이 되어야 하니까

하드웨어 적으로 리셋을 늦게 주더라도 완전히 리셋이 걸리는게 아니니까

BOD 설정을 통해서 저전력 시에서도 주변기기 보다 늦게 켜지도록 해주는 설정


[링크 : http://cubloc.blog.me/220065808152]

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

USBasp 설치  (0) 2017.11.13
avr 저전압 감지  (0) 2017.08.11
avr pwm 관련  (0) 2017.04.19
IAR AVR은 start section 설정이 안되나?  (0) 2017.02.17
avr hex start addres 다시 설정이 가능할까?  (0) 2017.02.12
Posted by 구차니

많이 받는건 아니라고 생각했지만

어떤 아는 사람의 초임 급여를 듣고 좌절중

내가 잘 못 살아왔나..


[링크 : http://blog.naver.com/PostView.nhn?blogId=manadra&logNo=220773068971]

[링크 : http://www.slrclub.com/bbs/vx2.php?id=hot_article&no=97385]

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

도어 클로저 구매  (0) 2017.08.17
도어 클로저 검색..  (0) 2017.08.13
날씨 제대로 미쳤다 -_-  (0) 2017.08.05
왕 피곤 주말  (0) 2017.07.22
사무실용 천장등 안정기 교체?  (0) 2017.07.04
Posted by 구차니

으으으 이거 다 갈려면 돈이 ㅠㅠ

올해 썼더니 확연하게 누렇게 먼지가 달라붙은게 티가 나네

원래대로라면.. 하루 3시간 기준 3개월인가 그런데

초과 사용이긴 초과 사용인듯


마치 진공 청소기 필터 가득 차서 흡입력 약해진 그런 느낌 ㅋㅋ


왼쪽이 바깥쪽, 오른쪽이 안쪽


Posted by 구차니
개소리 왈왈2017. 8. 9. 17:09

엥? 우리동네에 박물관이 있었어 -ㅁ-???

공룡좋아하는 아내님 있으니 가보자 ㅋㅋ


[링크 : http://www.duksomuseum.com/]

'개소리 왈왈' 카테고리의 다른 글

파멸의 시작인가?  (0) 2017.09.03
개고기 '만' 앙대여?  (0) 2017.09.01
인터넷 뱅킹 이해할수 없는 백신 정책  (6) 2017.08.07
안녕 01410  (8) 2017.06.30
조현아 vs 탑  (0) 2017.06.09
Posted by 구차니
Programming/C Win32 MFC2017. 8. 8. 22:07
Posted by 구차니
Programming/C Win32 MFC2017. 8. 7. 19:09

쓰레드 사용법

[링크 : http://blog.naver.com/myrinoa8/140129819777] 다이얼로그 변수/함수 사용하기

[링크 : http://dosnipe.tistory.com/20] 쓰레드 생성 AfxBeginThread

[링크 : http://blog.naver.com/mincheol9166/220718941148] 쓰레드 종료 SuspendThread


쓰레드에서 UpdateData() 오류시

간단하게 설명(?)하면 그러면 안되니까 SendMessage를 쓰레드에서 다이얼로그로 던져서 처리하도록 해라~

[링크 : http://blog.naver.com/pointer98/150043664789]

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

unsigned char [] -> LPCSTR  (0) 2017.08.21
MFC 타이머  (0) 2017.08.08
MFC 창 상태 확인하기(SW_SHOW/SW_HIDE)  (0) 2017.08.07
MFC 다이얼로그 rich edit 사용하기  (0) 2017.08.07
MFC 모달리스(modaless) 다이얼로그  (0) 2017.08.01
Posted by 구차니
embeded/raspberry pi2017. 8. 7. 14:39

아내님 고전게임이 급 끌리신다고 하니

조이패드 하나 사야 할지도...


비행기용 조이스틱(내꺼)

자동차용 핸들(공용)

에 이은... 조이패드 인가?


[링크 : http://billnote.net/630]

[링크 : http://dahoon.net/]

   [링크 : http://dahoon.net/g06.html] 마메 설정법

'embeded > raspberry pi' 카테고리의 다른 글

ublox NEO-6M GPS  (0) 2017.09.01
부품 도착!  (0) 2017.09.01
rpi pwm markspace balanced mode waveform  (0) 2017.06.29
으아아아 태워먹었어 멘붕 ㅠㅠ  (0) 2017.03.25
라즈베리 파이 포트 요약  (0) 2017.03.25
Posted by 구차니