embeded/raspberry pi2018. 2. 19. 14:09

레트로 파이 돌리다 보니

우측에 번개모양 아이콘이 떠서 찾아 보니 음.. 전력 부족이면 뜨는건가?


배포판 버전 올라가면서 단순하게 무지개 모양(쉐이더?) 에서 아이콘을 변경한건가..

아무튼 해당 부분 표현하는거 어디서 하는지 찾아 봐야겠다.

(보이는게 신경 쓰이기도 하고)


음.. rpi 2B에서 잘못 출력하는건가?

그래도 아이패드용 어댑터에서 5V는 정상적으로 나올텐데 4.63V/+-5% 보다 낮으면 띄운다니.. 머지?

Undervoltage warning

If the power supply to the Raspberry Pi drops below 4.63V (+/-5%), the following icon is displayed. 

[링크 : https://www.raspberrypi.org/documentation/configuration/warning-icons.md]

   [링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=177477]


아무튼 정석은 어댑터 교체이고 차선책(?)으로는 설정에서 해당 출력을 하지 않도록 해버림

$ sudo nano /boot/config.txt

# Disable under-voltage warning

avoid_warnings=1 

[링크 : https://scribles.net/lightning-bolt-under-voltage-warning-on-raspberry-pi/]

[링크 : https://www.raspberrypi.org/documentation/configuration/config-txt/misc.md]

---

Power: Ensure you have a good power supply which can steadily supply at least 2A at 5V. Many power supplies sag voltage and current under maximum load. If you see a lightning bolt icon or rainbow square in the top right corner during regular operation, this is the under-voltage warning and you are not supplying enough power. If you have USB devices plugged into the USB ports, considering getting a good powered USB hub to reduce power draw on the Pi. 

[링크 : https://www.reddit.com/r/RetroPie/wiki/faq]


aha so power brownout

Probably, although I haven't done an rpi-update and looked myself, and the commit doesn't say.

It would be the most logical one out of under-voltage and over-temp (yellow or red). 

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=159679]


Finally on the subject of icons, in the past if your Pi was working particularly hard, you might have noticed some yellow and red squares appearing in the top-right corner of the screen, which were indications of overtemperature or undervoltage. These have now been replaced with some new symbols that make it a bit more obvious what’s actually happening; there’s a lightning bolt for undervoltage, and a thermometer for overtemperature. 

[링크 : https://www.raspberrypi.org/blog/introducing-pixel]

    [링크 : https://raspberrypi.stackexchange.com/questions/57963/what-does-the-lightning-bolt-mean/57998]

[링크 : https://www.element14.com/.../pi3-shows-yellow-lightning-bolt-with-official-power-supply...]


+

어떤 레이어에서 출력하나 궁금하네..

단순한(?) OSD 레이어로 출력하는걸려나?


pi@raspberrypi:~ $ vcgencmd get_throttled

throttled=0x50000 

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=147781&start=50#p972790]


+

모니터 없이 써서 내가 몰랐던 걸려나.. 꽤 오래전 부터 있었네..

(생각해보니까 openELEC에서 계속 뜨는데 걍 뜨나보네.. 하고 무시하고 살았....)

pi@raspberrypi:~ $ sudo apt-get install stress stress-ng

pi@raspberrypi:~ $ stress-ng --cpu 4 --io 1 --vm 1 --vm-bytes 128M --timeout 10s --verbose 

[링크 : http://www.solanara.net/solanara/raspberry#head_raspberry_tip_warnicon]



+

커널받아서 검색중

Search "avoid_warnings" (1 hit in 1 file)

  D:\Download\linux-rpi-4.9.y\drivers\gpu\drm\vc4\Kconfig (1 hit)


config DRM_VC4

tristate "Broadcom VC4 Graphics"

depends on ARCH_BCM2835 || COMPILE_TEST

depends on DRM

depends on SND && SND_SOC

depends on COMMON_CLK

select DRM_KMS_HELPER

select DRM_KMS_CMA_HELPER

select DRM_GEM_CMA_HELPER

select DRM_PANEL

select SND_PCM

select SND_PCM_ELD

select SND_SOC_GENERIC_DMAENGINE_PCM

select DRM_MIPI_DSI

help

  Choose this option if you have a system that has a Broadcom

  VC4 GPU, such as the Raspberry Pi or other BCM2708/BCM2835.


  This driver requires that "avoid_warnings=2" be present in

  the config.txt for the firmware, to keep it from smashing

  our display setup. 



+

두개가 동일한 회로인진 모르겠지만.. 일단 Schematic 상에 2B V1.2 에는 

APX803 칩이 내장되어서 무언가 하긴 하는 듯?

[링크 : https://www.raspberrypi.org/.../schematics/Raspberry-Pi-2B-V1.2-Schematics.pdf]


[링크 : https://www.raspberrypi.org/.../schematics/Raspberry-Pi-3B-V1.2-Schematics.pdf]


외형상으로는 걍.. 3핀 SOT로 레귤레이터인가 보다.. 하고 넘어갔던 녀석중에 하나 인 듯


APX803-46의 리셋 경계값이 4.56V(Min) 4.63V(Typical) 4.70V(Max)

[링크 : http://www.mouser.com/ds/2/115/APX803_D-86185.pdf]


+

커널이 아닌 VideoCore IV Firmware에서 관할하기에

라즈베리 커널에서 이미지나 코드 관련해서 뒤져도 해당 아이콘의 이미지가 안나오는 것으로 예상된다

(즉, 내가 찾기 귀찮으니 이정도로 끝내겠다? ㅋㅋㅋ)

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=158777[]



+

끝이 아니라니..

이 놈이.. 온도 관련해서 센서 대신 사용하는 놈인가?

주변 온도에 따라 저항값이 달라지는데 이걸 사용하기에는 저항값 변화가 너무 적고..

용도가 머지?


N-CHANNEL ENHANCEMENT MODE MOSFET 

[링크 : https://www.diodes.com/assets/Datasheets/ds31783.pdf]


+

B+ 에서부터 깜박인다고 하는데 깜박이진 않고, 해당 마크에 대한 이야기가 없네.. 머지?

Red power LED is blinking

A blinking red power LED indicates problems with the power supply. On model A and B, it is hard-wired to the 3.3V power supply rail. If it is blinking, as one user has reported[1] it means the 5V power supply is dropping out. Use a different power supply.

On model B+ (and presumably also the A+), the circuit has been improved to give a much more reliable warning of poor power quality. The red power LED is wired to an APX803 supervisor[2] which kicks in when the 5V power supply drops below 4.63V[3]. If it does, the LED will blink. Check your connections, cable, and power supply.

[링크 : https://elinux.org/R-Pi_Troubleshooting#Red_power_LED_is_blinking]


그나저나.. 아이패드 충전기 5V 1A이고 USB 길이가 일어야 30cm도 안될 녀석인데

그 거리에 전압강하가 될리는 없고.. 실측하기도 빡센데 흐음.. 우짜지?

The Raspberry Pi 2 has a 2.2 amp polyfuse which limits the power which may be supplied via the microUSB socket. This is more than enough to power the Pi and the USB sockets.

Initially the USB sockets can only draw 600 mA. At worst this leaves 1.6 amps for the Pi2 and anything connected to the gpios.

By changing a setting after boot software can configure the USB sockets to draw up to 1.2 amps. At worst this leaves 1 amp for the Pi2 and anything connected to the gpios.

You haven't mentioned connecting anything to the gpios or the USB.

The only meaning to the rainbow square in the top right of the screen is that the 5V line has dropped beneath 4.65V.

If you trust the power supply to be accurate the other cause of low voltage is thin wires in the microUSB cable. 

[링크 : https://raspberrypi.stackexchange.com/questions/34305/undervoltage-rainbow-despite-good-power-supply]

Posted by 구차니
embeded/raspberry pi2018. 2. 18. 19:01

라즈베리 파이에 안전모드로 오버클럭 되어 있거나 할 경우에

해당 설정을 무효화 하고 부팅하도록 특정 핀을 연결할 수 있는데 그걸 무시하도록 하는 것

근데.. recalbox랑 이거랑 무슨 연관이 있길래 무효화 하는거지?


It provides a means of recovering from, e.g.


  • too high an overclock
  • a typo in cmdline.txt
  • an incorrect kernel=<filename> parameter
  • an invalid display mode

without requiring a PC. (Obviously it won't help if you've deleted start.elf...) 


Connect pins 5 & 6 with a jumper or piece of wire.


If you are using these pins for your own purposes and want to avoid ending up in safe mode, add this to config.txt:


avoid_safe_mode=1


[링크 : https://elinux.org/RPI_safe_mode]

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

라즈베리 파이 배포용 이미지 만들기  (0) 2018.02.23
라즈베리 파이 번개모양 아이콘  (2) 2018.02.19
블투 동글이 비싸!  (0) 2018.02.17
라즈베리 2 시리얼이 안되네...?  (0) 2018.01.11
piwall / yodeck  (0) 2017.11.08
Posted by 구차니
embeded/raspberry pi2018. 2. 17. 23:05

옥션에보니 택배 2500에 본픔 6000원 수준

ㅠㅠ


근데 레트로 파이 조이스틱 말고 키보드도 되나?

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

라즈베리 파이 번개모양 아이콘  (2) 2018.02.19
rpi config.txt avoid_safe_mode=1  (0) 2018.02.18
라즈베리 2 시리얼이 안되네...?  (0) 2018.01.11
piwall / yodeck  (0) 2017.11.08
rpi dual spi lcd  (0) 2017.11.08
Posted by 구차니
embeded/raspberry pi2018. 1. 11. 09:36

잘 쓰던 녀석인거 같았는데.. 오랫만에 신버전(?)을 받아서 설치하니 안되네..

찾아 보니 라즈베리 3 나오면서 블루투스가 ttyAMA0로 연결되고

ttyS0가 시리얼이 되었다는 말이 있으니 한번 확인해 봐야겠다.


[링크 : https://raspberrypi.stackexchange.com/.../how-do-i-make-serial-work-on-the-raspberry-pi3/45571#45571]

   [링크 : https://raspberrypi.stackexchange.com/.../error-serial-device-dev-ttyama0-does-not-exist]

[링크 : https://raspberrypi.stackexchange.com/.../raspberry-pi-3-uart-not-working]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=172958]


ttyS0는 존재하지 않고 ttyAMA0가 있는데

아무튼.. raspi-config에서 설정해주니까 문제없이 되는 느낌?

[링크 : https://www.raspberrypi.org/documentation/configuration/uart.md]



+

2018.01.12

신기하네.. Offline이라고 뜨는데 통신이 된다 -ㅁ-


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

rpi config.txt avoid_safe_mode=1  (0) 2018.02.18
블투 동글이 비싸!  (0) 2018.02.17
piwall / yodeck  (0) 2017.11.08
rpi dual spi lcd  (0) 2017.11.08
GY-80 / GY-801  (0) 2017.10.09
Posted by 구차니
embeded/raspberry pi2017. 11. 8. 08:24

piwall은 2015년 부터 보아오던건데

소스까진 공개되도 구성이 어떻게 된다 라는 그런게 잘 안보여서 찾다보니..


결론은.. rpi + hdmi 모니터 + ethernet

마스터 장치 혹은 라즈베리에서 ffmpeg을 통해서 동영상 스트리밍 해주고

슬레이브(tile) 들은 그걸 받아서 단순하게 omxplayer를 통해 재생해주는 식으로 보인다.

Installing the software

If the master is not a Raspberry Pi then just install ffmpeg or avconv on your machine. 

[링크 : http://www.piwall.co.uk/information/installation]

    [링크 : http://www.piwall.co.uk/information/6-features-and-benefits]


그런 이유로 piwall은 동영상을 틀 수 밖에 없고

네트워크로 보여줄 부분만 crop 하는 식으로 보내서 자유롭게 설정이 가능하지만

(토막낸 여러개를 비정형적으로 라던가)

동영상이 아니면 불가능하고, 하나의 동영상만 재생이 가능하는 식의 제한이 있는 것으로 보인다

(그런데 핵융합로 같은건 하나가 아닌거 같았는데..)


그걸 뛰어넘기 위해 다른 회사가 먼가를 하는데

대충 내용만 보여서.. HDMI over Ethernet 기술을 통해 어쩌구 하는데

HDbitT 라는 프로토콜을 통해 랜으로 HDMI 데이터를 쏘고

[링크 : http://www.hdbitt.org/what-is-hdbitt.html]


받는 쪽은 어떻게 한다는건진 좀 이해를 못함..

What you need

Firstly, you need to get a few things in order for your video wall to work and to avoid messing up your network. Here is the list of required hardware:

  • A Yodeck player for each screen of the video wall
  • Another Yodeck player (as “Master”) that will play back the actual content
  • An HDMI-to-IP video streamer – we recommend Lenkeng LKV373A (sender only, costs about $36)
  • A Network router – no special specs, just having a LAN and a WAN port will do
  • One Network switch to connect all of the above 

구성으로 봐서는.. HDMI to IP video streamer 라고 하니

rpi의 HDMI 출력을 HDMI to IP video streamer로 넣고

slave yodeck player들은 HDbitT 프로토콜이 broadcast로 전송되니

그걸 받아서 재생해야 할 위치들만 자르고 키워서 보여준다 라는 개념인가?


[링크 : https://www.yodeck.com/news/video-wall-support/]

[링크 : https://www.yodeck.com/news/video-wall-using-raspberry-pi/]

    [링크 : http://www.lenkeng.net/Index/detail/id/149]

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

블투 동글이 비싸!  (0) 2018.02.17
라즈베리 2 시리얼이 안되네...?  (0) 2018.01.11
rpi dual spi lcd  (0) 2017.11.08
GY-80 / GY-801  (0) 2017.10.09
gyro를 조합하여 정밀하게 사용하기  (0) 2017.09.22
Posted by 구차니
embeded/raspberry pi2017. 11. 8. 07:59

닌텐도 3ds xl 보고는 리눅스에서 듀얼 모니터 + 듀얼 터치로 해서 가능할까?

하는 마음에 찾아보는데 은근 자료가 없다.


rpi spi는 2개 선택가능하다는데 

The Raspberry Pi is equipped with one SPI bus that has 2 chip selects. 

[링크 : https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md]


chip select만 잘해주고, 리셋만 해주면 이론적으론 가능하니 어딘가 있지 않을까 싶은데 은근 없네?

Unfortunately, there is no schematic, however wiring is pretty simple:


LCD0      - RPi

SDO(MISO) - MISO/GPIO9, pin21 (common)

LED       - 5V through 1k resistor, pin 2 (common)

SCK       - CLK/GPIO11, pin23 (common)

SDI(MOSI) - MOSI/GPIO10, pin19 (common)

D/C       - GPIO24, pin18

RESET     - GPIO25, pin22

CS        - CE0/GPIO8, pin24

GND       - GND, pin 6 (common)

VCC       - 3.3V, pin 1 (common)


LCD1      - RPi

SDO(MISO) - MISO/GPIO9, pin21 (common)

LED       - 5V through 1k resistor, pin 2 (common)

SCK       - CLK/GPIO11, pin23 (common)

SDI(MOSI) - MOSI/GPIO10, pin19 (common)

D/C       - GPIO18, pin12

RESET     - GPIO23, pin16

CS        - CE1/GPIO7, pin26

GND       - GND, pin 6 (common)

VCC       - 3.3V, pin 1 (common) 

[링크 : https://youtu.be/wxJpWRPKe-g]


x-input을 이용해서 모니터 별로 입력 장치를 할당하면

터치 모니터 두개를 해도 문제 없다고 한다.

[링크 : https://askubuntu.com/questions/51445/how-do-i-calibrate-a-touchscreen-on-a-dual-monitor-system]

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

라즈베리 2 시리얼이 안되네...?  (0) 2018.01.11
piwall / yodeck  (0) 2017.11.08
GY-80 / GY-801  (0) 2017.10.09
gyro를 조합하여 정밀하게 사용하기  (0) 2017.09.22
어엌.. 라즈베리 gedit 이쁜데?  (0) 2017.09.16
Posted by 구차니
embeded/raspberry pi2017. 10. 9. 20:09

센서 좋네 하나 사고 싶다 ㅋㅋ

근데 솔찍히.. mpu6050 하나면

지자기 센서와 기압계 두개면 커버가 되는 느낌인데

잘 찾아 보면

ADXL345 + L3G4200D 대신 MPU6050 + HMC5883L + BMP180 도 있을지도 모르겠네


 Part NumberI2C Address 
3 Axis GyroST Microelectronics L3G4200D  0x69Datasheet
3 Axis AccelerometerAnalog Devices ADXL345 0x53Datasheet
3 Axis MagnetometerHoneywell MC5883L0x1EDatasheet
Barometer + ThermometerBosch BMP0850x77Datasheet

[링크 : http://selfbuilt.net/shop/gy-80-inertial-management-unit]

[링크 : http://eleparts.co.kr/EPXFBJ8R]


역시 존재하는군

GY-86

MPU6050+HMC5883L+MS5611

[링크 : http://eleparts.co.kr/EPXFBJ8U]


GY-271 이라는 녀석으로 HMC5883L 을 단독으로 쓰는 보드도 있는데

엘레파츠에 수입되진 않나보네

[링크 : http://www.robotpark.com/image/data/PRO/91457/GY_271_ELECTRONIC_COMPASS.pdf]


[링크 : http://eleparts.co.kr/EPXFBJ8M] GY-63 MS5611 보드

[링크 : http://eleparts.co.kr/EPXFBJ8N] GY-65 BMP085 보드

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

piwall / yodeck  (0) 2017.11.08
rpi dual spi lcd  (0) 2017.11.08
gyro를 조합하여 정밀하게 사용하기  (0) 2017.09.22
어엌.. 라즈베리 gedit 이쁜데?  (0) 2017.09.16
기압계 센서  (0) 2017.09.07
Posted by 구차니
embeded/raspberry pi2017. 9. 22. 09:04

대충 요약하면 정밀도를 올리기 위해

여러개의 자이로의 데이터를 조합하여 사용한다, 정도?


1차 마크로브 이런게 나오는데 좀 찾아 봐야 할 것 같네..

개인적으로는 사람의 귀처럼 좌우로 분리해서 중심축에서 벗어난 회전에 대해

어떻게 계측이 가능할까? 하나보다는 두개로 하면 두개의 차이를 통해

기존에 하나로는 획득하지 못했던 위치 정보의 변화를 얻어낼수 있지 않을까? 였는데


조금 고민해보니.. 가속도 센서 두개로 하는거지 자이로는 굳이 여러개 있을 이유가 없을지도?

(mpu6050 여러개 사놔서 이런 망상을 -ㅁ-)


[링크 : http://www.mdpi.com/1424-8220/12/2/1720/pdf]

[링크 : https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20110024157.pdf]

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

rpi dual spi lcd  (0) 2017.11.08
GY-80 / GY-801  (0) 2017.10.09
어엌.. 라즈베리 gedit 이쁜데?  (0) 2017.09.16
기압계 센서  (0) 2017.09.07
라즈베리 라디오?  (0) 2017.09.04
Posted by 구차니
embeded/raspberry pi2017. 9. 16. 11:22

엥 구버전이라 더 이쁜건가

얘가 오히려 더 신버전인가?




+

역시 내 주제에 무슨 vi야.. gedit가 최고지 ㅋㅋㅋ

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

GY-80 / GY-801  (0) 2017.10.09
gyro를 조합하여 정밀하게 사용하기  (0) 2017.09.22
기압계 센서  (0) 2017.09.07
라즈베리 라디오?  (0) 2017.09.04
ublox NEO-6M GPS  (0) 2017.09.01
Posted by 구차니
embeded/raspberry pi2017. 9. 7. 17:45


보쉬의 BMP085 / BMP180 센서는 둘다 스펙은 같으나

BMP180이 패키징 사이즈가 더 작은 차이가 있다.


300~1100hPa / 1.8~3.6V / i2c

[링크 : http://www.eleparts.co.kr/data/design/product_file/SENSOR/G_SENSOR/data/BMP085.pdf] BMP085

[링크 : http://eleparts.co.kr/data/design/product_file/SENSOR/G_SENSOR/data//BMP180-DS000-07.pdf] BMP180

[링크 : https://www.eleparts.co.kr/EPXFBJ8N] BMP085 / GY-65 15900

[링크 : https://www.eleparts.co.kr/EPXFBJ8P] BMP180 / GY-68 6900


450~1100mbar / 10cm / 1ms / i2c & spi

[링크 : http://eleparts.co.kr/data/design/product_file/SENSOR/G_SENSOR/data/MS5611-01BA01.pdf] MS5611

[링크 : https://www.eleparts.co.kr/EPXFBJ8M] MS5611 / GY-63 16900

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

gyro를 조합하여 정밀하게 사용하기  (0) 2017.09.22
어엌.. 라즈베리 gedit 이쁜데?  (0) 2017.09.16
라즈베리 라디오?  (0) 2017.09.04
ublox NEO-6M GPS  (0) 2017.09.01
부품 도착!  (0) 2017.09.01
Posted by 구차니