Site Tools


tech:rccar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tech:rccar [2016/01/10 21:37] – [Capture] bullartech:rccar [2016/01/13 21:38] (current) – [RC Car] bullar
Line 1: Line 1:
-===== RC Car =====+====== RC Car ======
  
-====STOUT====+The RC-Car consists of:
  
-Connect the camera module (8-bit data interface) to STOUT (CN6: VIN0_camera I/F 34pin) and restart YOCTO.  +  * stout (H2 start.now) with OV10635 based camera module (8-bit I/F) 
- +  * PCB extension (RC mixer and Accel/Gyro chip) {{:tech:rc-car_pcb.pdf|}}  {{:tech:rc-car_sch.pdf|}} 
-====DMESG output==== +  * 4WD drive chassis (Reely On-Road Chassis, CONRAD order no.: 238011-62) 
-After boot the following messages could be find: +  * Steering servo (Modelcraft Standard-Servo 4519 Analog-ServoCONRAD order no.: 206464 62) 
-<code> +  * Speed controller (Modelcraft Carbon-Series Fahrtregler, CONRAD order no.: 207368 62
-[    2.971467] soc-camera-pdrv soc-camera-pdrv.0Probing soc-camera-pdrv.+  * LiPo 7.4V 2200mAh (for motor
-[    3.094623] ov10635 2-0030ov10635 Product ID a6 Manufacturer ID 35 +  * LiPo 14.8V 3000mAh (for electronic)  
-[    3.734729] soc-camera-pdrv soc-camera-pdrv.1Probing soc-camera-pdrv.1 +  Optional
-[    3.751281] ov10635 1-0030: Failed writing register 0x0103! +    Transmitter Turnigy TGY 9X 
-[    3.764290] soc-camera-pdrv soc-camera-pdrv.2Probing soc-camera-pdrv.2 +    Receiver Turnigy 9X8C-V2 8-channel 
-[    3.780825] ov10635 2-0031: Failed writing register 0x0103! +    WLAN EDIMAX EW-7811Un 
-[    3.793827] soc-camera-pdrv soc-camera-pdrv.3Probing soc-camera-pdrv.3 +=====Blockdiagram=====
-[    3.810367] ov10635 1-0031: Failed writing register 0x0103! +
-[    3.823710] rcar_jpu fe980000.jpeg-codecencoder device registered as /dev/video1 +
-[    3.842579] rcar_jpu fe980000.jpeg-codec: decoder device registered as /dev/video2 +
-</code> +
- +
-The command ''v4l2-ctl --all'' shows the actual capability and status: +
-<code> +
-root@stout:~# v4l2-ctl --all +
-Driver Info (not using libv4l2): +
- Driver name   : r8a7790-vin.+
- Card type     : R_Car_VIN +
- Bus info      :  +
- Driver version: 3.10.31 +
- Capabilities  : 0x04200001 +
- Video Capture +
- Streaming +
-Video input : 0 (Camera: ok+
-Format Video Capture: +
- Width/Height  : 1280/800 +
- Pixel Format  : 'NV16' +
- Field         : None +
- Bytes per Line: 1280 +
- Size Image    : 2048000 +
- Colorspace    : Broadcast NTSC/PAL (SMPTE170M/ITU601) +
- Custom Info   : deadbeef +
-Crop Capability Video Capture: +
- Bounds      : Left 0, Top 0, Width 1280, Height 800 +
- Default     : Left 0, Top 0, Width 1280, Height 800 +
- Pixel Aspect: 1/1 +
-Crop Capability Video Capture: +
- Bounds      : Left 0, Top 0, Width 1280, Height 800 +
- Default     : Left 0, Top 0, Width 1280, Height 800 +
- Pixel Aspect: 1/1 +
-Crop: Left 0, Top 0, Width 1280, Height 800 +
-Streaming Parameters Video Capture: +
- Capabilities     : timeperframe +
- Frames per second: 25.000 (25/1+
- Read buffers     : 0 +
- +
-User Controls +
- +
-                horizontal_flip (bool)   : default=0 value=0 +
-                  vertical_flip (bool)   : default=0 value=0 +
- +
-</code> +
- +
-====Capture==== +
- +
-Video can be captured with the tool ''avconv'': \\ +
- +
-**Example 1 (capture and store a MJPEG video):**\\  +
-<code bash> +
-avconv -f video4linux2 -pix_fmt yuv422p -s 1280x720 -r 25 -i /dev/video0 -c:v mjpeg result.mov +
-</code> +
- +
-**Example 2 (capture and stream as H264 or MPEG2 video):**\\ +
-<code bash> +
-avconv -f video4linux2 -pix_fmt yuv422p -s 1280x720 -r 25 -i /dev/video0 -c:v libx264 -f mpegts udp://192.168.0.16:6000 +
-avconv -f video4linux2 -pix_fmt yuv422p -s 1280x720 -r 25 -i /dev/video0 -vcodec mpeg2video -r 25 -f rtp rtp://192.168.0.16:1234 +
-</code> +
- +
-**Example 3 (capture one frame and store as picture):**\\ +
-<code bash> +
-./capture -d /dev/video0 -f -o -c 1 > video_1f.uyvy +
-convert -size 1280x720 -depth 16 -sampling-factor 4:2:2 ./Desktop/video_1f.uyvy ./Desktop/video_1f.png +
-</code> +
- +
-** Example 4**\\ +
- +
-<code bash> +
-./capture -d /dev/video0 -f -o -c 10000 > file.img +
- +
-gst-launch-1.0 -v v4l2src device=/dev/video0 io-mode=dmabuf ! 'video/x-raw,format=NV16,width=1280,height=800,framerate=30/1' ! omxh264enc target-bitrate=9600000 ! avimux ! filesink location=/run/tmp.mp4 +
- +
-gst-launch-1.0 -v v4l2src device=/dev/video0 io-mode=dmabuf ! 'video/x-raw,format=NV16,width=1280,height=800,framerate=30/1' ! omxh264enc target-bitrate=9600000 ! 'video/x-h264,profile=baseline,level=(string)2.2' ! h264parse ! avimux ! filesink location=/run/test2.avi +
- +
-</code>+
  
 +{{:tech:bildschirmfoto_2016-01-13_um_22.34.59.png?direct&600|}}
tech/rccar.1452461833.txt.gz · Last modified: 2016/01/10 21:37 (external edit)