'embeded/raspberry pi'에 해당되는 글 437건

  1. 2022.08.17 adxl345 spi
  2. 2022.08.17 tea5767 모듈 땜질
  3. 2022.08.10 rpi3b에서 wayvnc 빌드 + 실행하기
  4. 2022.08.10 raspberrypi wayland compositor 설정
  5. 2022.06.20 linux iio adc + rpi
  6. 2022.05.25 PI 400 써봄
  7. 2022.03.18 라즈베리 파이2 / 마인크래프트
  8. 2022.03.08 rpi opencv python pid servo
  9. 2022.02.10 rpi i2c oled
  10. 2022.02.09 라즈베리 파이 부품 도착
embeded/raspberry pi2022. 8. 17. 15:54

SPI 통신시

2MHz 클럭에 3200Hz / 1600Hz 사용 가능

 

I2C 통신시

400kHz(고속 i2c)일 경우 800 Hz

100kHz(표준 i2c) 200 Hz에

SPI
The maximum SPI clock speed is 5 MHz with 100 pF maximum loading, and the timing scheme follows clock polarity (CPOL) = 1 and clock phase (CPHA) = 1.

Use of the 3200 Hz and 1600 Hz output data rates is only recommended with SPI communication rates greater than or equal to 2 MHz. The 800 Hz output data rate is recommended only for communication speeds greater than or equal to 400 kHz, and the remaining data rates scale proportionally. For example, the minimum recommended communication speed for a 200 Hz output data rate is 100 kHz

I2C
Due to communication speed limitations, the maximum output data rate when using 400 kHz I2C is 800 Hz and scales linearly with a change in the I2C communication speed. For example, using I2C at 100 kHz would limit the maximum ODR to 200 Hz

 

4 wire는 CS / SCLK / SDI / SDO를 쓴다면

3 wire는 CS / SCLK / SDIO 로 쓰는 듯.

(SDIO Serial Data Input Output의 약자 Secure Digital I/O의 약자이기도 하니.. 주의!)

[링크 : https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf]

Posted by 구차니
embeded/raspberry pi2022. 8. 17. 12:46

핀 피치가 2.54mm가 아닌 2.00mm 인데다가 구멍이 반이 없어서 어떻게 땜을 해야하나 고민하다 전문가에게 토스~

역시 전문가의 손은 다르구만

 

VCC 는 3.3V 라는데

[링크 : https://os.mbed.com/users/edodm85/notebook/radio-fm-tea5767/]

 

TEA5767 칩 자체는 3.0 Typical, 5.0 Max 라서 5V를 넣어도 되지 않나 싶긴 한데.. 그래도 Max 니까.. 참아야겠...지?

AMS1117-3.3을 투입할 시간이 되겠군...

MPXO는 MPX 가 있냐 없냐를 출력해주려나?

[링크 : https://www.sparkfun.com/datasheets/Wireless/General/TEA5767.pdf]

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

라즈베리 파이4 apm 설치시 php 작동 안될 경우  (0) 2022.08.30
adxl345 spi  (0) 2022.08.17
rpi3b에서 wayvnc 빌드 + 실행하기  (0) 2022.08.10
raspberrypi wayland compositor 설정  (0) 2022.08.10
linux iio adc + rpi  (0) 2022.06.20
Posted by 구차니
embeded/raspberry pi2022. 8. 10. 18:03

패키지 설치

$ sudo apt install cmake ninja meson libpixman-1-0 libpixman-1-dev libdrm-dev libdrm-common libdrm2 libxkbcommon-dev libwayland-dev

[링크 : https://github.com/ammen99/wf-recorder/issues/74]

 

ninja 설치

$ git clone https://github.com/ninja-build/ninja.git
$ cd ninja
$ ./configure.py --bootstrap

[링크 : https://ninja-build.org/]

 

git clone https://github.com/any1/wayvnc.git
git clone https://github.com/any1/neatvnc.git
git clone https://github.com/any1/aml.git

mkdir wayvnc/subprojects
cd wayvnc/subprojects
ln -s ../../neatvnc .
ln -s ../../aml .
cd -

mkdir neatvnc/subprojects
cd neatvnc/subprojects
ln -s ../../aml .
cd -

meson build
ninja -C build

[링크 : https://github.com/any1/wayvnc]

 

+

sway를 실행하고

 

sway에서 터미널을 연 다음, wayvnc를 실행

 

tightVNC로 접속 확인.

 

어익 후 라즈베리 3b에서 cpu가 죽어나네

 

rpi3 같은 메모리 대역폭 후달리는 애도 잘 쓰도록 만들었다는데 머.. 3.3%면 양호한건가..

sway가 문제인가?

The OpenGL ES 2.0 based renderer has now been replaced with a pixman based renderer. The new renderer is both simpler and performs better on devices with poor memory bandwidth such as the Raspberry Pi 3.

[링크 : https://github.com/any1/wayvnc/releases]

 

+

22.08.11

rpi 4 에서 실행하니 cpu가 착해진다. openGL ES 성능 차이인가..

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

adxl345 spi  (0) 2022.08.17
tea5767 모듈 땜질  (0) 2022.08.17
raspberrypi wayland compositor 설정  (0) 2022.08.10
linux iio adc + rpi  (0) 2022.06.20
PI 400 써봄  (0) 2022.05.25
Posted by 구차니
embeded/raspberry pi2022. 8. 10. 10:32

2022년 4월 4일자 bullseye 배포판에 wayland가 들어있다는데

raspi-config를 통해 wayland로 변경이 가능한 듯.

순수(?) wayland는 아니고 X11-wayland 인 것 같긴한데 어떻게 바꾸려나?

[링크 : https://blog.desdelinux.net/en/raspberry-pi-os-2022-04-04-arrives-with-initial-wayland-support-improvements-in-the-configuration-assistant-and-more/]

[링크 : https://www.phoronix.com/news/Raspberry-Pi-OS-Wayland]

[링크 : https://www.linuxadictos.com/ko/raspberry-pi-os-empieza-a-experimentar-con-wayland.html]

 

라즈베리 파이 3, 64bit 버전, raspi-config에서 Advanced로 들어가니 A9 Wayland가 존재한다.

 

Yes 해주고

 

리부팅 요청하는데 그건 귀찮으니 패스

 

라즈베리 파이 3라서 안되는건가.. 아니면 64bit 버전이라 그런가?

$ ps -ef | grep way
pi           843     702  3 11:21 ?        00:00:03 /usr/bin/Xwayland :0 -rootless -noreset -accessx -core -auth /run/user/1000/.mutter-Xwaylandauth.AFF5Q1 -listen 4 -listen 5 -displayfd 6 -listen 7

$ sudo apt install wayvnc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package wayvnc

 

32bit rpi-OS 해도 안되는건 매한가지 -_-

$ ps -ef | grep way
pi        1481  1462  0 12:09 pts/1    00:00:00 grep --color=auto way

$ uname -a
Linux raspberrypi 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l GNU/Linux

$ sudo apt-get install wayvnc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package wayvnc

 

우분투 22.04 LTS 설치(x86) 실행은 안되네?

$ uname -a
Linux victor-770Z5E-780Z5E 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ sudo apt-get install wayvnc
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다... 완료
상태 정보를 읽는 중입니다... 완료
다음의 추가 패키지가 설치될 것입니다 :
  libaml0 libneatvnc0 libturbojpeg
다음 새 패키지를 설치할 것입니다:
  libaml0 libneatvnc0 libturbojpeg wayvnc
0개 업그레이드, 4개 새로 설치, 0개 제거 및 4개 업그레이드 안 함.
235 k바이트 아카이브를 받아야 합니다.
이 작업 후 839 k바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n]

$ wayvnc
wl_registry@2: error 0: invalid version for global wl_output (4): have 2, wanted 3
ERROR: Virtual Pointer protocol not supported by compositor.
ERROR: Failed to initialise wayland

 

혹시나 해서 해보는데 영 진척이 없다.

$ sudo nano /etc/gdm3/custom.conf
WaylandEnable=true

[링크 : https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop]

 

초기값(true도 false도 아닌 WaylandEnable 자체가 comment)

$ ps -ef | grep way
root         853       1  0 11:41 ?        00:00:00 /usr/bin/python3 /usr/bin/waydroid -w container start
minimonk 20264   20253  0 12:38 tty2     00:00:00 /usr/libexec/gdm-wayland-session env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu


$ wayvnc
wl_registry@2: error 0: invalid version for global wl_output (4): have 2, wanted 3
ERROR: Virtual Pointer protocol not supported by compositor.
ERROR: Failed to initialise wayland

 

false 일때

$ ps -ef | grep way
root         853       1  0 11:41 ?        00:00:00 /usr/bin/python3 /usr/bin/waydroid -w container start

$ wayvnc
ERROR: Failed to initialise wayland

 

true 일때

$ ps -ef | grep way
root         853       1  0 11:41 ?        00:00:00 /usr/bin/python3 /usr/bin/waydroid -w container start
minimonk 18392   18381  0 12:32 tty2     00:00:00 /usr/libexec/gdm-wayland-session env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu

$ wayvnc
wl_registry@2: error 0: invalid version for global wl_output (4): have 2, wanted 3
ERROR: Virtual Pointer protocol not supported by compositor.
ERROR: Failed to initialise wayland

 

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

tea5767 모듈 땜질  (0) 2022.08.17
rpi3b에서 wayvnc 빌드 + 실행하기  (0) 2022.08.10
linux iio adc + rpi  (0) 2022.06.20
PI 400 써봄  (0) 2022.05.25
라즈베리 파이2 / 마인크래프트  (0) 2022.03.18
Posted by 구차니
embeded/raspberry pi2022. 6. 20. 14:42

industrial io(iio)

The mcp320x driver interface is through sysfs.
The first device will be found here /sys/bus/iio/devices/iio:device0

# ls /sys/bus/iio/devices/iio\:device0
dev                       in_voltage2-voltage3_raw  in_voltage5_raw           name
in_voltage-voltage_scale  in_voltage2_raw           in_voltage6-voltage7_raw  of_node
in_voltage0-voltage1_raw  in_voltage3_raw           in_voltage6_raw           power
in_voltage0_raw           in_voltage4-voltage5_raw  in_voltage7_raw           subsystem
in_voltage1_raw           in_voltage4_raw           in_voltage_scale          uevent

# cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
514

[링크 : https://jumpnowtek.com/rpi/Using-mcp3008-ADCs-with-Raspberry-Pis.html]


[링크 :
https://github.com/scottellis/mcp3008-poll/blob/master/mcp3008-poll.c]

[링크 : https://github.com/scottellis/mcp3008-poll]

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

rpi3b에서 wayvnc 빌드 + 실행하기  (0) 2022.08.10
raspberrypi wayland compositor 설정  (0) 2022.08.10
PI 400 써봄  (0) 2022.05.25
라즈베리 파이2 / 마인크래프트  (0) 2022.03.18
rpi opencv python pid servo  (0) 2022.03.08
Posted by 구차니
embeded/raspberry pi2022. 5. 25. 12:25

음.. 10만원 근처인데 개인적인 취향은 아니라 패스~ 하는걸로

 

사이즈는 텐키리스

 

Raspberry Pi 400 이라는 모델. 영국내 제조인 듯.

 

LAN도 넣어두고는 저 놈의 USB는 왜 일렬로 해서 -_-

차라리 USB 3.0은 세로로 두개 하고 한개는 full size HDMI 해주지! 라는 아쉬움이 드는 설계 -_ㅠ

 

 

귀찮아서(!) 라즈베리 4 64bit OS 설치해 놓은걸로 두세번 부팅하니 켜지긴 한데

그게 HDMI 0번에 연결하지 않아 발생한 문제인진 모르겠다.

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

raspberrypi wayland compositor 설정  (0) 2022.08.10
linux iio adc + rpi  (0) 2022.06.20
라즈베리 파이2 / 마인크래프트  (0) 2022.03.18
rpi opencv python pid servo  (0) 2022.03.08
rpi i2c oled  (0) 2022.02.10
Posted by 구차니
embeded/raspberry pi2022. 3. 18. 23:42

이거 하나 찾으려고 개고생중

일단 wheezy 에 있다고 하는데

jessie 이미지 받아서 해보니 라즈베리 3는 작동 안되고 2에서는 울프람과 마인크래프트가 존재하는 것 확인

 

bullseye 32bit나 64bit에는 당연히(!) 없네 

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

linux iio adc + rpi  (0) 2022.06.20
PI 400 써봄  (0) 2022.05.25
rpi opencv python pid servo  (0) 2022.03.08
rpi i2c oled  (0) 2022.02.10
라즈베리 파이 부품 도착  (0) 2022.02.09
Posted by 구차니
embeded/raspberry pi2022. 3. 8. 19:35

이건 어디다 넣어야 하나 -_-?

영상을 통해서 중앙으로 이동시키는건 서보를 이용해서

한번에 못가면 점진적으로 오류를 보정하면서 가면되는거고

그걸 PID를 통해 보정을 해주면 되는데 보정 주기라던가..

새로운 위치값을 어떤식으로 주면 될지 몰라서 검색.

 

[링크 : https://pyimagesearch.com/2019/04/01/pan-tilt-face-tracking-with-a-raspberry-pi-and-opencv/]

 

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

PI 400 써봄  (0) 2022.05.25
라즈베리 파이2 / 마인크래프트  (0) 2022.03.18
rpi i2c oled  (0) 2022.02.10
라즈베리 파이 부품 도착  (0) 2022.02.09
rpi csi to dsi...  (0) 2022.01.21
Posted by 구차니
embeded/raspberry pi2022. 2. 10. 10:45

동일한 녀석인듯? 일단 시도 해봐야 겠다.

 

[링크 : https://rudalskim.tistory.com/109]

 

+

일단 사용한 라이브러리는 deprecated 이고

[링크 : https://github.com/adafruit/Adafruit_Python_SSD1306]

 

이미지를 출력하도록 해놔서 python의 image 라이브러리를 이용하여 text도 그려서 출력하는 듯.

[링크 : https://github.com/adafruit/Adafruit_Python_SSD1306/blob/master/examples/animate.py]

 

+

하라는 대로 해서 하니 나오긴 한데, 해당 라이브러리에서 이미지 말고 텍스트를 출력 할 수 있는진 좀 봐야 할 듯.

import time 
import Adafruit_GPIO.SPI as SPI 
import Adafruit_SSD1306 
from PIL import Image

RST = 25
DC = 24
SPI_PORT = 0
SPI_DEVICE = 0

disp = Adafruit_SSD1306.SSD1306_128_64(rst=RST)
disp.begin()
disp.clear()
disp.display()

image = Image.open('test.png').resize((disp.width, disp.height), Image.ANTIALIAS).convert('1')
disp.image(image)
disp.display()

 

테스트 용으로 대충 128x64 사이즈로 만든 png 파일

 

아래와 같이 잘 나온다.

 

다만 OLED 라고 해도 리프레시는 존재하는지(당연한건가...?)

셔터속도에 따라 비어보이는 경우가 존재한다.

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

라즈베리 파이2 / 마인크래프트  (0) 2022.03.18
rpi opencv python pid servo  (0) 2022.03.08
라즈베리 파이 부품 도착  (0) 2022.02.09
rpi csi to dsi...  (0) 2022.01.21
rpi 7" dsi  (0) 2022.01.21
Posted by 구차니
embeded/raspberry pi2022. 2. 9. 22:31

0.96인치 128x64 화이트 OLED

1인치도 안되서 그런가 무지 작긴 하네

16x16 폰트로 8*4 대충.. 32글짜 정도 표시할 수 있으려나?

 

라즈베리 카메라

머.. 싼걸로 사서 jetson nano 에는 쓸 수 없다지만

문득.. 카메라가 다르면 드라이버 차이로 cpu 점유율이 어떻게 달라지나 궁금하긴 하네?

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

rpi opencv python pid servo  (0) 2022.03.08
rpi i2c oled  (0) 2022.02.10
rpi csi to dsi...  (0) 2022.01.21
rpi 7" dsi  (0) 2022.01.21
rpi DSI 7인치 터치 스크린  (0) 2022.01.20
Posted by 구차니