embeded/arduino(genuino)2025. 10. 9. 22:44

예제로 맨날 폴링만 보다보니 인터럽트가 될거라 생각을 못했네..

/*
  SerialEvent occurs whenever a new data comes in the hardware serial RX. This
  routine is run between each time loop() runs, so using delay inside loop can
  delay response. Multiple bytes of data may be available.
*/
void serialEvent() {
  while (Serial.available()) {
    // get the new byte:
    char inChar = (char)Serial.read();
    // add it to the inputString:
    inputString += inChar;
    // if the incoming character is a newline, set a flag so the main loop can
    // do something about it:
    if (inChar == '\n') {
      stringComplete = true;
    }
  }
}

 

[링크 : https://docs.arduino.cc/built-in-examples/communication/SerialEvent]

[링크 : https://juahnpop.tistory.com/85]

[링크 : https://m.blog.naver.com/dhtpals32123/222270427302]

'embeded > arduino(genuino)' 카테고리의 다른 글

arduino nano로 4채널 pwm 출력하기  (0) 2025.10.11
퀄컴 아두이노 인수  (0) 2025.10.08
아두이노 sd 카드  (0) 2025.08.24
skt-444 콘덴서 마이크 모듈 분해  (0) 2025.08.07
HW-504 이상해..  (0) 2025.08.02
Posted by 구차니

망할(?) 케이팝 데몬 헌터스의 영향으로 추석 마지막 날에도 한국인/외국인들이 넘쳐났다.

10년 전에는 자전거타고 침흘리며 올라갔는데, 드디어(!) 버스를 타고 올라와봄

 

장충체육관 쪽에서 01A 01B를 타려고 한 7대 보내고

부랴부랴 타고 올라와서 애들이 힘들줄을 모르는 듯 ㅋㅋㅋ

 

 

저 멀리(?) 너무 잘 보이는 롯데타워

 

 

'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

눈 @.@  (0) 2024.11.27
부웨에에에에엑~  (0) 2024.10.16
캐논 카메라 sd 카드 쓰기 잠금 문제  (0) 2024.06.20
크랍바디에 대한 오해가 있었구나..  (0) 2024.06.17
eos 웹캠 유틸리티  (0) 2024.06.16
Posted by 구차니
embeded/raspberry pi2025. 10. 9. 18:47

SPI LCD를 한번 써보고 싶어서(직접 드라이버 구현)

일단은 장치가 문제없나 확인부터 해보고 스펙 확인겸~ 남이 만든거 쓱쓱~

 

준비물

라즈베리 파이 피코 / 1.8 TFT SPI 128x160 이라고 써있는 LCD 보드

그냥 싸서 샀는데 color TFT LCD 이다.

 

라즈베리 파이 피코 핀아웃. 오랫만에 하니 헷갈려서 봤는데

정작 이건 참고 안하고 보드에 실크보고 해결 ㅋㅋ

[링크 : https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html]

 

결선은 아래와 같이 하면 된다.

LED는 백라이트다. 뽑는다고 LCD 컨트롤러가 죽진 않는다.

TFT Board => Raspberry Pi Pico Pin
LED => 3v3(Out)
SCK => GP10
SDA => GP11
AO/DC => GP16
Reset => GP17
CS => GP18
GND => GND
VCC => VBUS 5V

[링크 : https://alastairmontgomery.medium.com/tft-display-st7735-with-micropython-ef48ecbfc278]

 

라즈베리 파이 피코

 

 

LCD

 

윈도우에서 thonny 깔고, tool - options - interpreter 에서 micropython (Raspberry Pi Pico) 선택

아래 포트는 확인하고 설정하던가 귀찮으면 try to detect port automatically 하면 끝.

[링크 : https://thonny.org/]

 

bootsel 누른채로 꽂아서 다음에서 다운로드 한 uf2 파일을 던져주면 끝

[링크 : https://www.raspberrypi.com/documentation/microcontrollers/micropython.html]

 

아래 프로젝트를 다운로드 해서

[링크 : https://github.com/alastairhm/micropython-st7735]

  [링크 : https://alastairmontgomery.medium.com/tft-display-st7735-with-micropython-ef48ecbfc278]

 

thonny 에서 view - files 하면 탐색기 뜨고 그걸로 업로드 하면 된다.

 

graphicstest 실행시 아래의 것들이 순차적으로 실행된다.

 

 

 

이거 하나 채워지는데 제법 오래걸린다.

 

 

tftbmp 실행시. 체감상 다 그려지는데 한 5초?

 

mandelbrot_tft 실행시. 그리고 표시하는지 한 10초 걸리는 듯

 

 


----

circuitpython usb fs 미지원?

[링크 : https://forums.raspberrypi.com/viewtopic.php?p=1812620#p1812620]

 

혹시나 해서 윈도우에서 thonny나 pip 안깔고 되나했는데

이래저래 귀찮을 듯 해서 포기하고 thonny 설치하는 걸로 해결 -_-

[링크 : https://mikeesto.medium.com/uploading-to-the-raspberry-pi-pico-without-thonny-53de1a10da30]

[링크 : https://github.com/dhylands/rshell]

Posted by 구차니
embeded/전자회로2025. 10. 8. 22:21

이번에 하나를 산 거 같은데 정리하다 보니 두 개가 나와서 이력을 찾아보니

아니 왜 산걸 까먹고 또 산겨 -_-

머 덕분에 멀티 adc를 이용한 채널 확장도 해볼순 있겠네

 

'embeded > 전자회로' 카테고리의 다른 글

열전대 써모커플러  (0) 2025.07.17
buzzer - 액티브 패시브  (0) 2025.07.15
rheostat ?  (0) 2024.07.25
notch filter  (0) 2024.05.21
멀티미터 TR 테스트  (0) 2023.11.02
Posted by 구차니
embeded/arduino(genuino)2025. 10. 8. 22:15

어떤 의미로 놀랍긴 한데.. wiring 기반으로 발전해왔고

라즈베리에서도 wiring을 잘 썼는데

퀄컴이 아두이노 인수하면서 어떻게 될지가 좀 조심스러워진다.

[링크 : https://news.hada.io/topic?id=23502]

[링크 : https://www.techpowerup.com/341673/qualcomm-to-acquire-arduino]

 

눈에 띄는건.. Adreno GPU 3D 가속기와 카메라 2개 가능, cortex-M33 160Mhz 별도 장착.

Core
Qualcomm Dragonwing™ QRB2210
Includes the powerful Qualcomm Dragonwing™ QRB2210 processor featuring:
Quad-core Arm® Cortex®-A53 @ 2.0 GHz
Adreno GPU 3D graphics accelerator
2x ISP (13 MP + 13 MP or 25 MP) @ 30 fps
Overview
Microcontroller
STM32U585 Arm® Cortex®-M33 32-bit MCU
The UNO Q integrates the STM32U585 microcontroller featuring:
Arm® Cortex®-M33 up to 160 MHz
2 MB flash memory
786 kB SRAM
Floating Point Unit

[링크 : https://docs.arduino.cc/hardware/uno-q/]
[링크 : https://www.arduino.cc/product-uno-q] UNO Q

 

가격이 낮아질것 같진 않지만.. 일단 아두이노가 라즈베리를 타겟으로 하는 가격을 보여주는 듯.

[링크 : https://store-usa.arduino.cc/products/uno-q]

 

 

'embeded > arduino(genuino)' 카테고리의 다른 글

arduino nano로 4채널 pwm 출력하기  (0) 2025.10.11
아두이노 시리얼 이벤트 핸들러  (0) 2025.10.09
아두이노 sd 카드  (0) 2025.08.24
skt-444 콘덴서 마이크 모듈 분해  (0) 2025.08.07
HW-504 이상해..  (0) 2025.08.02
Posted by 구차니
프로그램 사용/ntopng2025. 10. 6. 11:53

네트워크 맵을 그려주길래 보고 있었는데 10분 지나니 이렇게 된다. -_-

 

dashboard는 빼먹었는데 먼가 몇 개 그래프가 사라진거 같고

메뉴상에서 확인해보면 생각외로 많은 것들이 잠긴다.

Enterprise XL community

 

'프로그램 사용 > ntopng' 카테고리의 다른 글

ntopng ubuntu 22.04 신버전 설치  (0) 2025.10.06
ntopng nic 어디서 봐야하나?  (0) 2025.10.06
ntopng 인터페이스 변경  (0) 2025.10.05
Posted by 구차니
프로그램 사용/ntopng2025. 10. 6. 11:18

일단 하라는대로 따라하는 중

sudo apt-get install software-properties-common wget
sudo  add-apt-repository universe
wget https://packages.ntop.org/apt/22.04/all/apt-ntop.deb
sudo  apt install ./apt-ntop.deb
sudo  apt-get clean all
sudo  apt-get update
sudo  apt-get install pfring-dkms nprobe ntopng n2disk cento ntap

[링크 : https://www.ntop.org/support/documentation/software-installation/]

 

서비스를 재기동 하면 일단 10분간은 enterprise XL 모드로 작동하다 community 모드로 전환되는 듯 하다.

● ntopng.service - ntopng high-speed web-based traffic monitoring and analysis tool
     Loaded: loaded (/etc/systemd/system/ntopng.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2025-10-06 11:52:24 KST; 27s ago
    Process: 10241 ExecStartPre=/bin/sh -c /usr/bin/ntopng-utils-manage-config -a check-restore  && /usr/bin/ntopng-utils-manage-config -a restore || true (code=exited, status=0/SUCCESS)
    Process: 10255 ExecStartPre=/bin/sh -c /bin/cat /etc/ntopng/ntopng.conf > /run/ntopng.conf.raw (code=exited, status=0/SUCCESS)
    Process: 10257 ExecStartPre=/bin/sh -c /bin/cat /etc/ntopng/ntopng.conf.d/*.conf >> /run/ntopng.conf.raw 2>/dev/null || true (code=exited, status=0/SUCCESS)
    Process: 10259 ExecStartPre=/bin/sh -c /bin/sed "/^[ ]*-e.*$\|^[ ]*-G.*\|^[ ]*--daemon.*\|[ ]*--pid.*/s/^/#/" /run/ntopng.conf.raw > /run/ntopng.conf (code=exited, status=0/SUCCESS)
   Main PID: 10261 (ntopng)
      Tasks: 1 (limit: 9318)
     Memory: 32.7M
        CPU: 418ms
     CGroup: /system.slice/ntopng.service
             └─10261 /usr/bin/ntopng /run/ntopng.conf

10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:743] WARNING: [LICENSE] ntopng will now run in Enterprise XL edition for 10 minutes
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:749] WARNING: [LICENSE] before returning to community mode
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:749] WARNING: [LICENSE] before returning to community mode
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:751] WARNING: [LICENSE] You can buy a permanent license at http://shop.ntop.org
10월 06 11:52:24 minimonk-HP-EliteBook-2760둣둣p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:751] WARNING: [LICENSE] You can buy a permanent license at http://shop.ntop.org
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:755] WARNING: [LICENSE] or run ntopng in community mode starting
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:755] WARNING: [LICENSE] or run ntopng in community mode starting
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:757] WARNING: [LICENSE] ntopng --community
10월 06 11:52:24 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:24 [NtopPro.cpp:757] WARNING: [LICENSE] ntopng --community
10월 06 11:52:45 minimonk-HP-EliteBook-2760p ntopng[10261]: 06/Oct/2025 11:52:45 [NetworkInterface.cpp:4051] Cleanup interface dummy

'프로그램 사용 > ntopng' 카테고리의 다른 글

ntopng 유료기능  (0) 2025.10.06
ntopng nic 어디서 봐야하나?  (0) 2025.10.06
ntopng 인터페이스 변경  (0) 2025.10.05
Posted by 구차니
프로그램 사용/ntopng2025. 10. 6. 11:14

 

 

도움말 찾아보면 6.5가 최신인것 같은데 ubuntu 22.04 라 그런가 5.2가 설치된다. 

armbian쪽도   동일하게 깨지는걸 보면 그리 버전이 높지 않았던것 같고..

pfsense가 유독 신버전을 해주는건가?

[링크 : https://www.ntop.org/guides/ntopng/user_interface/network_interface/index.html]

 

+

6.5로 설치하고 나니 상단에 잘나온다.

그나저나 저.. license expires in ... 머냐 이거??

'프로그램 사용 > ntopng' 카테고리의 다른 글

ntopng 유료기능  (0) 2025.10.06
ntopng ubuntu 22.04 신버전 설치  (0) 2025.10.06
ntopng 인터페이스 변경  (0) 2025.10.05
Posted by 구차니
프로그램 사용/rtl-sdr2025. 10. 6. 11:01

용돈도 생겼겠다(?) 질러보고 싶어서 보는데

v3 랑 v4랑 오히려 튜너 칩의 파트명 숫자가 줄어들어서, 오히려 반대 아냐? 싶은 생각에 찾아보는 중.

[링크 : https://www.rtl-sdr.com/rtl-sdr-blog-v4-dongle-initial-release/comment-page-1/]

[링크 : https://www.rtl-sdr.com/buy-rtl-sdr-dvb-t-dongles/]

 

RTL-SDR 블로그 RTL SDR V4 R828D RTL2832U 1PPM TCXO SMA RTLSDR 소프트웨어 정의 라디오 (동글 전용)

[링크 : https://ko.aliexpress.com/item/1005005952682051.html?gatewayAdapt=glo2kor]

 

RTL-SDR 블로그 RTL SDR V3 R860(R820T2) RTL2832U 1PPM TCXO SMA RTLSDR 소프트웨어 정의 라디오(동글만 해당)

[링크 : https://ko.aliexpress.com/item/32939551915.html?gatewayAdapt=glo2kor]

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

wifi sdr - openwifi, antsdr 등등  (0) 2025.09.26
gr-lora with gnuradio 성공!  (0) 2025.09.25
gnuraduio wx gui deprecated  (0) 2025.09.25
qr-lora tutorial  (0) 2025.09.25
rtlsdr + gnuradio + lora 일단.. 실패  (0) 2025.09.24
Posted by 구차니

찜 목록에 잔뜩 넣으면서 문득 든 생각

이 것들을 내가 '하고' 싶은것 일까 '갖고' 싶은것일까

 

아머드 코어는 의외로 사양이 낮아서 내껄로 중옵은 돌아갈것 같은데 40% 라 조금 조민되고

타이탄 폴 1은 없고 2만 이는데 싱글만 하기엔 나쁘지 않은것 같고

닌텐도로 샀지만 못하고 있는 니어:오토마타와 니어 레플리칸트.. 합치면 4만원..

이 가격이면 RTL-SDR 살수 있는디..(!!)

홈월드3는 90% 노릴꺼고

플심은 솔찍히 갖고 싶은거지 하고 싶은거랑은 거리가 있는것 같고

폴아웃도 4도 에픽에 1,2,3 있어서 4를 채우고 싶은것 같고

매펙도 오리진에 있어서 채우고 싶을 것일뿐..

베요네타는 해보고 싶고

xcom 시리즈들도 갖고 싶다에 가까운 느낌

wrc는 이전에 모션 시뮬레이터에서 지원하는걸 보니 아무버전이나 하나만 실행해서

텔레메트리 정보 빼고 싶은데... 흐음.. 가격으로는 wrc 9 정도로 타협할까?

Posted by 구차니