이것 대신 /var/log/Xorg.log 에서 0x 로 검색 framebuffer의 주소를 알아내서
$ v4l-conf /dev/video1 -a 0xfb000000
이런식으로 설정을 해주고 xawtv를 실행하니,
프레임 버퍼는 맞는지 화면이 이상하게 출력되면서 시스템 다운 ㄱ-
Basically, you figure out which PCI bus:slot.function your device is,
then look in your /sys/bus/pci/devices/0000:<that
bus:slot.function>/resource file. That will list all memory ranges
that your video card has reserved.
DGA is short for Direct Graphics
Access and is a means for a program to bypass the X server
and
directly modifying the framebuffer memory. Technically spoken this
happens
by mapping the framebuffer memory into the memory range of your process.
This is allowed by the kernel only if you have superuser privileges. You
can get these either by logging in as root
or by setting the SUID bit on the
MPlayer executable (not
recommended).
리눅스에서 심심해서 한번 꼽아봤더니 인식을 한다.
아직, xawtv를 쓸줄을 몰라서 제대로 구동은 하지 못하고 있지만, 제대로 돌아만 간다면 쓸만할 것으로 보인다.
설정이 문제인지, 조금만 건드리면 바로 segmentation fault가 뜨며 xawtv가 죽는다.
vlc 역시 디바이스를 열자마자 죽는 현상이 발생하고 있다.
아래는 리눅스 상의 인식 내용이다.
$ lsusb
Bus 002 Device 003: ID 0768:0006 Camtel Technology Corp. Camtel Technology USB TV Genie Pro FM Model TVB330
# dmesg
[ 159.360021] usb 2-1: new full speed USB device using uhci_hcd and address 3
[ 159.846752] usb 2-1: configuration #1 chosen from 4 choices
[ 159.894129] usbvision_probe: Camtel Technology USB TV Genie Pro FM Model TVB330 found
[ 159.894354] USBVision[0]: registered USBVision Video device /dev/video1 [v4l2]
[ 159.894450] USBVision[0]: registered USBVision Radio device /dev/radio0 [v4l2]
[ 159.894531] USBVision[0]: registered USBVision VBI device /dev/vbi0 [v4l2] (Not Working Yet!)
[ 159.896748] usbcore: registered new interface driver usbvision
[ 159.898295] USBVision USB Video Device Driver for Linux : 0.9.10
[ 160.234368] saa7115 5-0025: saa7113 found (1f7113d0e100000) @ 0x4a (usbvision #1)
[ 161.473870] tuner 5-0061: chip found @ 0xc2 (usbvision #1)
[ 161.529521] tuner-simple 5-0061: creating new instance
[ 161.529529] tuner-simple 5-0061: type set to 17 (Philips NTSC_M (MK2))
$ v4l-conf -c /dev/video1
v4l-conf: using X11 display :0.0
dga: version 2.0
WARNING: No DGA direct video mode for this display.
mode: 1024x768, depth=24, bpp=32, bpl=4096, base=unknown
/dev/video1 [v4l2]: no overlay support
$ xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-23-generic)
looking for available devices
port 164-195
type : Xvideo, image scaler
name : NV05 Video Blitter
/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : DC10plus[0]
flags: overlay capture
/dev/video1: OK [ -device /dev/video1 ]
type : v4l2
name : Camtel Technology USB TV Genie
flags: capture tuner
BT878 계열의 TV 수신칩을 제어가능한데, 그 외에 몇가지 칩도 지원을 한다.
아무튼, Pinnacle DC10 plus 라는 녀석을 검색해보면 아래와 같이 v4l2를 지원한다는데
VLC에서 나오지 않아 xawtv에서 출력을 하지만, 창의 크기를 바꾼다던가 하면 나오지 않는 문제가 발생했다.
$ xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-23-generic)
looking for available devices
port 164-195
type : Xvideo, image scaler
name : NV05 Video Blitter
/dev/video0: OK [ -device /dev/video0 ] type : v4l2
name : DC10plus[0]
flags: overlay capture
참고사항으로, xawtv는 ssh를 통해서는 아래와 같이 도움말 조차도 볼수가 없다. (X11 Tunneling 하면 되려나?)
$ xawtv --help
xdpyinfo: unable to open display "".
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-23-generic)
Error: Can't open display:
$ xawtv --help
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.32-23-generic)
usage: xawtv [ options ] [ station ]
options:
-h -help print this text
-v -debug n debug level n, n = [0..2]
-remote assume remote display
-n -noconf don't read the config file
-m -nomouse startup with mouse pointer disabled
-f -fullscreen startup in fullscreen mode
-(no)dga enable/disable DGA extention
-(no)vm enable/disable VidMode extention
-(no)randr enable/disable Xrandr extention
-(no)xv enable/disable Xvideo extention altogether
-(no)xv-video enable/disable Xvideo extention (for video only,
i.e. XvPutVideo() calls)
-(no)xv-image enable/disable Xvideo extention (for image scaling
only, i.e. XvPutImage() calls)
-(no)gl enable/disable OpenGL
-b -bpp n color depth of the display is n (n=24,32)
-o -outfile file filename base for snapshots
-c -device file use <file> as video4linux device
-C -dspdev file use <file> as audio (oss) device
-vbidev file use <file> as vbi device
-joydev file use <file> as joystick device
-shift x shift display by x bytes
-fb let fb (not X) set up v4l device
-parallel n use n compression threads
-bufcount n use n video buffers
-hwscan print a list of available devices.
station:
this is one of the stations listed in $HOME/.xawtv
Check the manual page for a more detailed description.
캐패시터 별로 주파수 특성이 있다고 해서
어떤걸 달아야 하나 고심을 하고 있었는데, 솔찍히 안달아도 상관은 없고
세라믹 / 전해 / 탄탈 캐패티서가 1uF 용으로 추천된다고 되어있다.
세라믹 / 탄탈 / 전해 / 마이카 / 마일러
Instead of adding more
subjective specifications, I prefer to refer to the Maxim 232 datasheet.
It's rather clear in all regards, I think.
Quote:
The capacitor type used for C1–C4 is not critical
for proper operation. The MAX232E and MAX241E require 1µF capacitors,
although in all cases capacitors up to 10µF can be used without harm.
Ceramic, aluminum-electrolytic, or tantalum capacitors are suggested for
the 1µF capacitors.
When using the minimum recommended capacitor values, make sure the
capacitance value does not degrade excessively as the operating
temperature varies. If in doubt, use capacitors with a larger (e.g., 2x)
nominal value. The capacitors’ effective series resistance (ESR), which
usually rises at low temperatures, influences the amount of ripple on
V+ and V-.
Use larger capacitors (up to 10µF) to reduce the output impedance at V+
and V-. This can be useful when “stealing” power from V+ or from V-.
아무튼, 접지(그라운드)보다 저항이 높으면, 전류(?)는 접지로 흐르게 되고
이러한 특성을 이용하여 노이즈를 없애는데 이용될수 있다.(내가 이해한게 맞을려나?)
그런데 이번에는 출력측의 임피던스에 비교하여 입력측의
임피던스가 큰 경우.
이 경우는 전송 로스는 있지만 일단 신호의 주고 받음은 할 수 있다.
최악인 것은 출력측의 임피던스에
비교하여 입력측의 임피던스가 낮은 경우에
이 경우는 신호의 주고 받음이 매끄럽지 않아 신호가 일그러지거나 고역의 열화를 생긴다.
어떤 종류의 부품이 있나 기웃거리다가 보면 가장 헷갈리는 넘이 위의 세녀석이다.
가속도 센서 (Accelation)
자이로 센서 (gyro)
기울기 센서 (Tilt)
혼용되어 쓰기도 하고 그래서 헷갈리는데, 아무튼 대충 정리 하자면
기울기 센서는 응답속도가 가속도 센서 보다 느린편이고(제품마다 편차는 있겠지만)
가격은 자이로 센서가 우월하다.. (젠장 OTL)
그래도 전반적으로 가속도 센서가 기울기 보다는 많이 쓰이는 것으로 보인다.
(가격은 기울기 보다 약간 높은편이지만, 반응속도의 차이로 인한 것으로 추측됨)
자이로센서와 가속도센서의 차이는 자이로센서는 회전관성을 감지하는 센서이고 가속도센서는 가속도를 감지합니다.
그래서
자이로센서는 로봇이 회전할 때 회전각을 알 수 있을때 사용하므로 주로 항법장치에 많이 사용하고요,
가속도센서는 외부의
충격량과 방향을 감지합니다.
로봇이 외부로부터 충격을 받았을때 그 충격의 방향을 감지하여 대응할 수 있는 장치로 활용할
수 있습니다.
또한 외부의 충격이 없을때는 항상 중력방향을 감지하므로 기울기센서의 기능도 있습니다.
로봇이
쓰러져 있거나 비스듬한 곳에 있을때 로봇의 기울어진 방향과 정도를 알 수 있습니다.
아무래도 휴머노이드에는
가속도센서가 여러가지로 활용할 수 있겠죠.
로봇의 외부로 부터 공격을 받았을때나 바닥의 상태에 따라서 넘어질때
스
스로 중심을 잡을 수 있는 기능으로 프로그램할 때 가속도센서가 유용합니다
심심해서 만든거 치고는 한 3시간 걸린듯한 이 좌절감은.. OTL
아무튼, 웹캠에서 떼어낸 6개의 고휘도 LED와 자전거용 조명에서 떼어낸 5개의 LED
그 중에 한개씩 불량이 나서(아무래도.. 인두기의 열로 파괴된듯 ㅠ.ㅠ) 10개만으로 만들었다.
그래서 가장 아래 사진을 보면 밝기가 미묘하하게 다르다 ^^:
근데.. 자전거 어디에 달아야 하나..
앞으로 하기에는 생각보다 밝지는 않고, 눈만 부실텐데 흐음..