2023년 2월 25일 토요일

Build and Install OpenCV 4 for RPi (해석)

 Build and Install OpenCV 4 for Raspberry Pi | LearnOpenCV #


The Same file on RPi3 is the following:

pi@raspberrypi:~ $ cat /proc/cpuinfo

processor       : 0

model name      : ARMv7 Processor rev 4 (v7l)

BogoMIPS        : 38.40

Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

CPU implementer : 0x41

CPU architecture: 7

CPU variant     : 0x0

CPU part        : 0xd03

CPU revision    : 4

.

.

.

Native build on Pi

The simplest, but not so efficient, 

            way to build OpenCV for Pi

            is to do it natively on board.

The build procedure takes hours depending on Pi version and SD-card speed.


1. Install all the required packages on Pi

2023년 2월 21일 화요일

LabVIEW + Arduino

https://www.youtube.com/watch?v=MB8lduqPuyM&list=PLuzyRQYQpuVgdtuz64nKeUy6V5ygw4Wuk 



Requirements





Digilent LINX









See if there is No Error


You can also select Board Info which confirms you are able to communicate with your Arduino
보드정도를 누르면 팝업창이 뜬다.


LABVIEW를 실행시키고 LINX Firmware Wizard로 간다.







>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

▼LabVIEW로 서보모터 제어
https://www.youtube.com/watch?v=pt9d9Md7788&list=PLuzyRQYQpuVgdtuz64nKeUy6V5ygw4Wuk&index=2

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

▼DC모터 제어
https://www.youtube.com/watch?v=11hi7lGEdyU

Block Diagram에서
우클릭 >> MakerHub >> LINX >> Open & Close VIs


We also wire in error cluster constant
            to initialise the error cluster.
(맨 왼쪽 첫단계)

We then pass the LINX resource reference and error reference to the while loop
and to all corresponding functions.
this is force to maintain flow control.
(두번째 단계)


i put the duty cycle function before the digital write function,
because i always want the speed of the motor to be changed first
before changing its direction.
(3전째 단계 노란색으로 선택한 부분)
(방향전환 전에 스피트를 선택하고 싶기 때문에)

For the Set Duty Cycle function,
i've wired in an integer constant
        to specify PIN 9 of the Arduino.
(While루프 왼쪽위 PWM Channel에 constant 값으로 9를 넣었다.)
(이 9는 Arduino의 9번핀을 의미하며 PWM값이 들어간다.)




Next, we wired a STOP control button
                to the loop condition,
make sure you do this otherwise LabVIEW won't be happy with you.


And Finally, we close out the LINX reference to the Arduino
once we exit the While Loop
and let the Simple Error Handler.vi handle any errors that occur.


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

▼Remote control through the Internet
https://www.youtube.com/watch?v=LMtdLqmRnVU
https://www.youtube.com/watch?v=4ErGmMdZyzs

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]

▼컨베이어 벨트
https://www.youtube.com/watch?v=OwpEN8e3WMg

2023년 2월 20일 월요일

Korean Air Mileage (=대한항공 마일리지)

 https://www.koreanair.com/kr/ko/skypass/earn-miles/koreanair/overview




인천공한 >> 하노이 항공편을 기준으로 적어봤습니다.

4시간 35분(거리: 2683km) 거리입니다.

...

좌석등급거리마일리지
일반석2683km1684
프래스티지2683km2105
일등석2683km3368









...



대한항공과 베트남항공의 가격비교만 해봐도
479230원 - 327759원 = 151471원
약 15만원 가량이 차이가 납니다.

마일리지 기껏 쌓아봐야 1684원 쌓을바엔
외항사 이용하고 15만원을 Save하는게 더 이득이지 않을까 싶습니다.


요즘 대한항공 마일리지 횡포로 떠들썩한데
좀더 현명한 소비를 했으면 하는 바램에 정리해 봤습니다.


차량 사고발생시 100:0 으로 되야하는 이유 (분심위 는 가급적 거쳐가지 않는게 유리하다)

 

https://www.youtube.com/watch?v=_E6ySpMAvfg










상대방측의 동의가 있다면
분심위를 거치지않고 바로 1심재판으로 넘어가서 소송을 진행할 수 있다고 합니다.


1심판사와 변호사는 교통관련 전문가들이 아니기에
대체적으로 분심위의 결정대로 따라갈 가능성이 다분하기때문에
더더욱 분심위 단계가 불필요하게 됩니다.

2023년 2월 18일 토요일

플라잉 암바

 

https://www.youtube.com/shorts/G2JwQI5HvpA




...

...


https://www.youtube.com/shorts/5fBDIWB0mp0
헤드락 푸는법
초반에 풀기위해선 위 방법처럼 손복을 잡고 해드락에서 빠져나올것

해드락이 이미 걸린상태에선 한쪽손을 상대방 어깨에 다른손은 다리사이에 넣고
들어올려서 넘어뜨릴것

이 상태에서 상대방 머리를 짓누르고 빠져나와야한다.


<script type="text/javascript"> atOptions = { 'key' : '95fffaec010d8a23f1eb992199dd483c', 'format' : 'iframe', 'height' : 50, 'width' : 320, 'params' : {} }; document.write('<scr' + 'ipt type="text/javascript" src="http' + (location.protocol === 'https:' ? 's' : '') + '://alreadyballetrenting.com/95fffaec010d8a23f1eb992199dd483c/invoke.js"></scr' + 'ipt>'); </script>

2023년 2월 16일 목요일

screen distortion (YouTube보는중 화면 외곡현상)

 



YouTube를 보는중에 화면외곡현상이 발생하는 경우가 있다

보는중에 발생하거나

혹은, Chrome의 Tab을 눌러서 다른 사이트로 넘어가는 순간에도 distortion이 발생하기도한다

이 경우는 Ram 부족을 의심해볼 필요가 있다.

Chrome의 Tab 숫자를 줄이면 distortion이 발생하지 않기 때문이다.

2023년 2월 13일 월요일

무인기 관련정보 AirCraft , Drone

 https://www.youtube.com/watch?v=9SMyBN-B3Vo


https://www.youtube.com/watch?v=iQsswBpzjpo


https://www.youtube.com/watch?v=YoRfb47oiZY




brushless motor 개발자

저장대 전자과 리홍타오 (사형수 였는데 모터개발수 14년형으로 감면됨)


Double Layers

propeller rotate direction 





Dron itself rotates CCW




For hovering







종이 스텔스기 영상
https://www.youtube.com/watch?v=RgVaid5HnB8











https://www.youtube.com/shorts/1bo1OPM-K_g




▼Look though the propeller rotation


▼KV, Thrust(단위 gram) 체크
https://www.youtube.com/watch?v=UpRD3708WEc




▼Space Suttle 내부구조
https://www.youtube.com/watch?v=cFBRawYov00


▼무선조종 테스트
https://www.youtube.com/watch?v=bD7rQbnSbek
https://www.youtube.com/watch?v=dgLr8ydslEY (Radio Freq)
https://www.youtube.com/watch?v=p2c6Z8aj2U8 (드론+카메라)


▼제트엔진 원리
https://www.youtube.com/watch?v=e_gN6Bt1ugg


▼Matlab simulation
https://www.youtube.com/watch?v=MvCJ8YnlnPU
https://www.youtube.com/watch?v=fpJZSQmqDVk
https://www.youtube.com/watch?v=7F9cG64kRxI
https://www.youtube.com/watch?v=ZQd1-PIDu2A
https://www.youtube.com/watch?v=zEUbj7Bl2N4

2023년 2월 11일 토요일

CCTV 열람 관련 법조항

 

https://www.youtube.com/watch?v=3KMvc-FWnic






경찰을 반드시 대동해야 한다는 문구가 없음

CCTV열람을 거부한자는 3000만원 이하의 벌금에 처한다.

한마디로 내가나온 CCTV를 열람하는건 나의 권리 그 자체이고 거부하는게 오히려 범법행위



다른사람이 찍혀있어서 열람을 거부하는경우도 말이안됨

타인의 신체를 해할 우려가 있거나 타인의 재산과 이익을 침해할 우려가 있는경우에만 거부 가능


타인의 정보를 비식별화 시킨 상태에선 영상촬영 및 사본의 발급도 가능



2023년 2월 10일 금요일

Adding an External Disk to a Raspberry Pi and Sharing it Over the Network (=라즈베리파이에 USB 연결하기)

 

▶LINK


Adding an External Disk to a Raspberry Pi and Sharing it Over the Network


.
.
.
There are three main choices here, NFS, AFS, and SMB, and which you choose depends on how and where you’re intending to access the NAS from, so we’ll walk through all three.
.
.
.

Formatting your Disk

While it is pretty much never the most optimal choice, you should still probably format your external disk using the ubiquitous FAT32 format.

~인반면 it is 꽤많이 never the most optional choice, 넌 should 여전히 probably 포멧해야한다. 네 external disk를 using the만연한 FAT32형태로.

It’s old, rather slow, and imposes a maximum file size of only 4GB. 

However it’s still the easiest way to get cross-platform support 

between Linux, Windows, and Mac. 

하지만 이건 여전히 the 가장쉬운방법 to get 교차플랫폼 지원을 얻기위한

between 리눅스, 윈도우 등등 사이에서.


If you ever want to unplug the drive from your new Raspberry Pi NAS system, it’ll make things a lot easier if the drive is FAT32 formatted.

만약 네가 지금껏 원했다면 unplug the 드라이버를 from RPi로 부터.

it'll make things a많이 더 쉽게, if the 드라이브가 FAT32로 포멧됬을때.

.

.

.

If you’re using Windows formatting the disk is only a little bit more complicated. While if you don’t have a Mac or Windows laptop to hand, or you just feel like it, you can also format the disk directly from your Raspberry Pi, although you may first need to install the dosfstools package.

Go ahead and plug in your external drive, and type the following.

$ sudo apt-get install dosfstools
$ sudo mkfs.vfat /dev/sda1 -n USB

Although be aware that if the disk is already formatted it might automatically be mounted by (more recent) versions of Raspbian, and you might have to unmount it before formatting.

2023년 2월 9일 목요일

TossBank (=토스뱅크 추천인 이벤트 (Since 2023/01/12) (가입후 24시간내로 추천인 입력하면 둘다 2000원 받을 수 있습니다.)

71047 8532


토스뱅크 앱에서

하단 오른쪽 三 을 누르고

포인트 Section에서 초대코드 입력하기 란에

71047 8532 << 9자리 코드를 입력해주시면 됩니다.

(못찾으신 분들은 댓글 남겨주세요)

현재는 1000원으로 하향조정됨 (24년1월5일 문의)



할인률
(5000원 이상은 100원(Fix)) (5000원까지)
(5000원 미만은 1%)
(만원이상은 1%미만으로 떨어짐)
해외결제(2%)결제금액할인률(%)
만원1%
90001.1%
80001.25%
70001.428%
60001.67%

50002%


4000원 * 1% = 40원 
3000원 * 1% = 30원

2023년 2월 8일 수요일

RPi QR 관련

 https://www.hackster.io/gatoninja236/scan-qr-codes-in-real-time-with-raspberry-pi-a5268b

.

.

.

Reading the QR Code

The code works as follows


*Set up the camera and QR code detector

*Read in a new frame and extract a QR code

*If there is a code, draw a box around it and display its data above

*If the exit key 'q' hasn't been pressed, go back to step 2.


The program also shows the updated frame with the overlaid graphics on each update.





https://www.tomshardware.com/reviews/raspberry-pi-barcode-reader-hat-review

QR리더 RPi 합쳐씀