embeded/raspberry pi2016. 3. 19. 20:39

그냥 pc 스피커 굴러 다니는게 있길래

마침 4핀 짜리고 해서 꽂아서 pwm으로 해보니 소리가 난다 -ㅁ-!?


아무튼.. pwm-ms와 pwm-bal의 출력방식이 다르니 소리가 다르게 난다.


$ gpio mode 1 pwm

$ gpio pwm-ms

$ gpio pwm 1 7


$ gpio pwm-bal 

$ gpio pwm 1 7




+

2016.04.13

미친척 오실로 스코프로 찍어보니..

$ gpio mode 1 pwm

$ gpio pwm 1 512

$ gpio pwmc 10



7  2680 Hz

8  2343 Hz

9  2083 Hz

10 1875 Hz

11 1704 Hz

12 1562 Hz

13 1443 Hz

14 1339 Hz

15 1250 Hz

16 1172 Hz

17 1103 Hz

18 1042 Hz





클럭을 가지고 하기에는 좀 그렇고... 어떻게 해야 하려나?

[링크 : http://thomson.tistory.com/638]

Posted by 구차니
embeded/AVR (ATmega,ATtiny)2016. 3. 16. 16:11


[링크 : http://blog.naver.com/rk756/100133481427] BASCOM으로 AVR 소리내기

[링크 : http://www.mcselec.com/] BASCOM - BASic COMpiler for AVR


[링크 : http://www.maicom.co.kr/xe/3000]


[링크 : http://www.ermicro.com/blog/?p=580] c버전/ 반짝반짝 작은별


http://extremeelectronics.co.in/avr-tutorials/sound-generation-by-avr-micro-tutorial-i/ 

http://tahmidmc.blogspot.kr/2013/02/sine-wave-generation-with-fast-pwm-mode_2525.html

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

avr pwm timer 계산기  (0) 2016.04.14
atmega sram external  (0) 2016.04.12
클론 avrisp avr studio 6 호환성(?)  (0) 2016.03.07
AVR ISP 부활의 조짐?!  (0) 2016.03.05
보유중인 avr 보드목록  (0) 2016.03.05
Posted by 구차니
embeded2016. 3. 16. 15:15

데이터 시트

[링크 : http://gongnoob.blog.me/123329737]


AVR 소스(심플)

[링크 : http://pilgoo.tistory.com/50]


+

웬지.. z80이 아니라 intel 808x 시리즈의 80 system?


2014/02/07 - [embeded/AVR (ATmega/ATtiny)] - COM26T2844VTX 컨트롤러 HD66781

2013/07/23 - [embeded/AVR (ATmega/ATtiny)] - COM26T2844VTX LCD 데이터 시트

2014/01/27 - [embeded] - Z80 M6800


- M68 system interface with 8-/ 9-/16-/18-bit bus width

- i80 system interface with 8-/ 9-/16-/18-bit bus width


[링크 : http://www.ampdisplay.com/technology.php?c=tech_lcd_interface]



[링크 : https://www.adafruit.com/datasheets/ILI9325.pdf]

'embeded' 카테고리의 다른 글

프로세서별 연산량 벤치마크(float)  (0) 2017.04.19
PCB 마킹 의미  (0) 2016.07.28
링커 스크립트 문법(ld syntax)  (0) 2015.12.17
시리얼 저항 / 직렬 저항 / 댐핑 저항  (0) 2015.12.17
microchip PIC  (0) 2015.09.08
Posted by 구차니
embeded/raspberry pi2016. 3. 15. 10:40

똥강아지와 똥개 감시용(?)으로 대충 만들어 본 녀석

천원짜리 다이소에서 종이박스 사고

굴러다니던 핸드폰 보조배터리 하나로 끝!




대역폭의 문제로 640x480 @ 15fps인데

좀 다르게 셋팅해봐야지..



보조 배터리 2500mA 짜리인데

3시간은 버텨주네(접속시 + 무선) 올

샤오미 10500 쓰면 그럼 15시간?! ㅋㅋ


Posted by 구차니
embeded/raspberry pi2016. 3. 14. 09:18

유리 나가서 어떻게 잘 살릴수있나 했더니

SYSTEM : 장비가 파괴되었습니다!


분해된 잔해

LCD/백라이트 유닛 / 터치 하판 / 터치 상판


음.. 아무튼 터치상판인데 가로려나 세로이려나...


하판.. 커넥터 방식이 아니라 과감하게 끊어내고!!



아무튼.. 라즈베리 jessie 버전에서

클럭을 65MHz로 설정해주니 노이즈 생겨서 fps=25 옵션만 주고 사용

그나저나.. 터치가 안되니 계륵이네... ㅠㅠ

Posted by 구차니
embeded/raspberry pi2016. 3. 13. 23:26

음.. mmal 어쩌구 로그에 뜨는데

cpu 사용량을 보면 100% 인걸 봐서는 제대로 적용 안되거나

그게 한계일지도?



재기동

sudo nano /etc/init.d/motion

sleep 30

[링크 : http://www.codeproject.com/Articles/665518/Raspberry-Pi-as-low-cost-HD-surveillance-camera]

<< 많이 달라졌고, 안해도 문제 없음 단, 모션 저장이나 상시 녹화 쪽 문제로 보임


모션디텍트 끄기

http://raspberry:8081/0/detection/pause

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


led끄기

/boot/config.txt

disable_camera_led=1

[링크 : http://www.raspberrypi-spy.co.uk/2013/05/how-to-disable-the-red-led-on-the-pi-camera-module/]

>> 안되네.. 내꺼는 안되나... ㅠㅠ

Posted by 구차니
embeded/raspberry pi2016. 3. 12. 11:37

왜이렇게 cpu를 조금 먹나 했더니.. MMAL 쓴건가?


[링크 : https://github.com/raspberrypi/userland/tree/master/host_applications/linux/apps/raspicam]


아.. 헷갈리네..

MMAL은 원래 있던거고 rpi videocore용으로 포팅한건가?

[링크 : http://www.jvcref.com/files/PI/documentation/html/]


아무튼.. mmal 사용하면 cpu 확 줄어 들려나..

v4l 통해서 받는 비디오는 너무 느려..

Posted by 구차니
embeded/raspberry pi2016. 3. 11. 09:04

는 아니고..

자꾸 딸래미가 파괴신님 강림해서 어쩔수 없이 내구도 향상을 위해..


원래는 이렇게 대충 쓰고 있었는데..


전에 샀던 b+용 확장 포트 처럼 만들면 되지! 하고

이번주 초에 버렸던 걸 다시 쓰레기통에서 환생시켜서

허리를 분지르고(!!!)


대충대충 땜하고 선을 이어서!!!


어.. 조금 높네..

근데 내가 땜질 실력이 안되잖아? 더 짧으면 안될거야 ㅠㅠ


내구도가 +1 상승하였습니다.

딸래미의 공격력이 +3 상승하였습니다.

장비가 파괴되었습니다?!?!

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

라즈베리 파이(jessie) motion  (0) 2016.03.13
raspivid 소스  (0) 2016.03.12
raspbian jessie 의 raspi-config  (0) 2016.03.10
지름신 강림! - 라즈베리 2b(본체만)  (0) 2016.03.10
라즈베리 3B?  (0) 2016.03.06
Posted by 구차니
embeded/raspberry pi2016. 3. 10. 10:52

부팅시 네트워크 대기라던가..

시험적인 openGL 드라이버라던가.. 2016년 버전이라 그런지 먼가 좀 많이 추가되었네?


RASPBIAN JESSIE

Full desktop image based on Debian Jessie

Version:February 2016

Release date:2016-02-26

Kernel version:4.1

[링크 : https://www.raspberrypi.org/downloads/raspbian/]


┌────────────────────┤ Raspberry Pi Software Configuration Tool (raspi-config) ├──────────────────────┐

│                                                                                                     │

│1 Expand Filesystem            Ensures that all of the SD card storage is available to the OS        │

│2 Change User Password         Change password for the default user (pi)                             │

│3 Boot Options                 Choose whether to boot into a desktop environment or the command line │

│4 Wait for Network at Boot     Choose whether to wait for network connection during boot             │

│5 Internationalisation Options Set up language and regional settings to match your location          │

│6 Enable Camera                Enable this Pi to work with the Raspberry Pi Camera                   │

│7 Add to Rastrack              Add this Pi to the online Raspberry Pi Map (Rastrack)                 │

│8 Overclock                    Configure overclocking for your Pi                                    │

│9 Advanced Options             Configure advanced settings                                           │

│0 About raspi-config           Information about this configuration tool                             │

│                                                                                                     │

│                                                                                                     │

│                        <Select>                                   <Finish>                          │

│                                                                                                     │

└─────────────────────────────────────────────────────────────────────────────────────────────────────┘


┌────────────────────┤ Raspberry Pi Software Configuration Tool (raspi-config) ├──────────────────────┐

│                                                                                                     │

│  A1 Overscan     You may need to configure overscan if black bars are present on display         ↑  │

│  A2 Hostname     Set the visible name for this Pi on a network                                   ▮  │

│  A3 Memory Split Change the amount of memory made available to the GPU                           ▒  │

│  A4 SSH          Enable/Disable remote command line access to your Pi using SSH                  ▒  │

│  A5 Device Tree  Enable/Disable the use of Device Tree                                           ▒  │

│  A6 SPI          Enable/Disable automatic loading of SPI kernel module (needed for e.g. PiFace)  ▒  │

│  A7 I2C          Enable/Disable automatic loading of I2C kernel module                           ▒  │

│  A8 Serial       Enable/Disable shell and kernel messages on the serial connection               ▒  │

│  A9 Audio        Force audio out through HDMI or 3.5mm jack                                      ▒  │

│  AA GL Driver    Enable/Disable experimental desktop GL driver                                   ↓  │

│                                                                                                     │

│                                                                                                     │

│                        <Select>                                   <Back>                            │

│                                                                                                     │

└─────────────────────────────────────────────────────────────────────────────────────────────────────┘ 


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

raspivid 소스  (0) 2016.03.12
라즈베리 파이 IR 수신부 업그레이드!  (0) 2016.03.11
지름신 강림! - 라즈베리 2b(본체만)  (0) 2016.03.10
라즈베리 3B?  (0) 2016.03.06
레트로 파이(retropie)  (0) 2016.01.05
Posted by 구차니
embeded/raspberry pi2016. 3. 10. 10:42

마침 회사 근처에서 3만원(직거래)에 라즈베리 2b 파는 분이 있으셔서 후다닥 연락

근데

ㅋㅋ

ㅋㅋㅋ


아놔 집에 핸드폰 두고옴 ㅠㅠㅠㅠ




아무튼 우여 곡절 끝에 질렀으나..

SD 메모리 주신게 8GB 싼디스크.. 드럽게 느리네..


혹시나 해서 내 16GB 싼디스크로 했더니 속도 잘나와.. -_-


아무튼 케이스 없이 본체만 딸랑 ㅠㅠ

판매자 : 담배곽에 구멍 뚫어서 쓰시면되요 허허허

구차니 : 담배를 안피는데 담배곽 좀 굽신굽신



근데 라즈베리 3b가 나오는 시점에 웬 2b냐 하겠지만

난 돈이 없으니까!! ㅠㅠ

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

라즈베리 파이 IR 수신부 업그레이드!  (0) 2016.03.11
raspbian jessie 의 raspi-config  (0) 2016.03.10
라즈베리 3B?  (0) 2016.03.06
레트로 파이(retropie)  (0) 2016.01.05
openELEC 6.0.0 릴리즈  (0) 2016.01.03
Posted by 구차니