전체 글
-
[ESP32] ESP32 WOL 서버 + LAN 이야기ESP32 2024. 1. 14. 20:24
공유기 포트포워딩과 윈도우 설정창에서 몇번 클릭만 하면 집 밖에서 편하게 원격접속을 할 수 있다. 그러나 원격 접속을 하기위해 컴퓨터를 24시간 켜두는 것은 부담스러울 것이다. PC 전원까지 원격으로 켤 수 있으면, 더할 나위 없을 것이다. 공유기에 WOL 서버가 내장되어 있기는 하지만, 이를 통해 PC 전원을 킬려면 원격 접속 포트를 열어두어놔야 한다. 고작 PC를 켜자고 공유기 원격 포트를 열어두는 것은 보안상 좋지 않고, WOL 서버를 직접 만들어보게 되었다. 라즈베리파이 같은 걸 24시간 켜두면서 WOL 서버로 사용하거나, 다른 IoT 장치를 구매하여 원격으로 컴퓨터의 전원버튼을 누르는 등 여러 방법이 있겠지만, 지금부터 소개할 ESP32로 WOL 서버를 구축하는 것이 가장 컴팩트하고 저렴한 방법..
-
[Matplotlib]파이썬 기본 데이터 시각화파이썬 머신러닝 2023. 12. 24. 22:15
https://matplotlib.org/ Matplotlib — Visualization with Python seaborn seaborn is a high level interface for drawing statistical graphics with Matplotlib. It aims to make visualization a central part of exploring and understanding complex datasets. statistical data visualization Cartopy Cartopy is a Python package des matplotlib.org 어떤 프로그래밍언어나 프로그램을 사용하든 데이터를 다루는 작업(통계, 수치해석, 머신러닝 등)의 결과를 보기 위해..
-
[WSL]윈도우에서 리눅스 시스템 사용하기개발환경 구축 2023. 12. 22. 22:13
원도우가 GUI가 잘되어 있어 일반적인 목적으로는 사용하기 편리하지만, 개발을 하기에는 불편한 점이 많다. 리눅스를 사용해보았다면 알 수 있겠지만, 명령줄(Command Line)에서 작업할 일이 많은 특성상 리눅스가 개발하기에는 편리하다는 생각이 든다. 대표적으로 운영체제에 GCC, Python 등이 내장되어있을 뿐만이 아니라 커맨드라인에서 시리얼 통신을 하는 minicom(윈도우에서는 PuTTY, VScode 확장등의 프로그램을 별도로 설치해야 하거나, IDE에서 제공하는 것을 사용해야한다.)이 이를 잘 보여준다. 덧붙여 최근에 winget의 등장으로 CLI 환경에서 프로그램 설치가 쉬워지긴 하였지만, sudo apt install 프로그램1, 프로그램2 ... 이런 식으로 입력하고 잠시 눈붙이면 되..
-
머신러닝 가이드-지도학습파이썬 머신러닝 2023. 7. 2. 15:56
인터넷을 찾아보면서 기능 하나하나를 소개하는 자료는 많지만 실제 데이터를 전처리하여, 이에 알맞는 학습 모델을 선택하고, 모델을 평가하는 전반적인 과정을 소개하는 자료는 부족한 것 같았다. 그래서 친숙한 BMI를 통해 지도학습이 어떻게 진행되는 지 소개하기로 하였다. 0.코딩 환경 구축 https://sidreco.tistory.com/14 파이썬 + VScode 머신러링 환경 구축 아나콘다 + jupyter notebook이나 google colab 등이 있지만, 아나콘다는 쓸대없이 무겁고, colab은 데이터 파일 올리기가 귀찮다. 필자는 직접 파이썬을 설치하여 pip로 필요한 패키지만 설치하는 것을 선 sidreco.tistory.com pandas(전처리), scikit-learn(학습), mat..
-
파이썬 + VScode 머신러링 환경 구축파이썬 머신러닝 2023. 7. 2. 14:49
아나콘다 + jupyter notebook이나 google colab 등이 있지만, 아나콘다는 쓸대없이 무겁고, colab은 데이터 파일 올리기가 귀찮다. 필자는 직접 파이썬을 설치하여 pip로 필요한 패키지만 설치하는 것을 선호한다. 여기서 아나콘다는 파이썬에 데이터 분석에 많이 쓰이는 패키지를 같이 설치해주는 프로그램으로 편리하긴 하지만, 이것저것 많이 깔아서 설치하는데 상당히 오래걸리고, 무겁다. (한 시간 정도) 파이썬 설치 공식 사이트 https://www.python.org/downloads/ Download Python The official home of the Python Programming Language www.python.org 특별한 이유가 없다면 노란 버튼을 눌러 최신 버전을 ..
-
ESP-IDF VScode Window 개발환경 구축개발환경 구축 2023. 6. 28. 23:01
ESP-IDF 다운로드 https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/windows-setup.html Standard Setup of Toolchain for Windows - ESP32 - — ESP-IDF Programming Guide latest documentation After opening a new project, you should first set the target with idf.py set-target esp32. Note that existing builds and configurations in the project, if any, will be cleared and initialized in ..
-
[C/C++] 라즈베리파이 피코 기본입출력 -GPIO라즈베리파이 피코 2023. 2. 25. 14:27
어느 마이크로컨트롤러를 사용하든, 핀 입출력, 디버그를 위한 USB Serial 통신, Uart/I2C/SPI 통신, 인터럽트(핀, 타이머/카운터) 정도 쓸 수 있으면 웬만한건 다 만들 수 있다. 이번에는 이중에서 핀 입출력과 기본 핀 인터럽트를 다루고자 한다. 파이썬 자료에 비해 C/C++ 자료는 매우 적은데 이 글이 C/C++로 피코를 하려는 사람들에게 도움이 되면 좋겠다. 출력 하나의 핀을 설정하는 경우 //내장 LED 켜기 //PICO_DEFAULT_LED_PIN = 25 gpio_init(25); //gpio_set_funct(25, GPIO_FUNC_SIO) 이것과 같다. gpio_set_dir(25, GPIO_OUT); gpio_put(25, 1); Initialize 초기화 set_dire..
-
[C++] 라즈베리파이 피코 기본입출력-USB Serial라즈베리파이 피코 2023. 2. 24. 11:52
c 언어로된 예제에는 printf로 출력을 하였는데, c++의 cout으로도 출력이 될까?, stdio와 iostream의 동기화를 끊어 속도를 올려도 출력이 될까 궁금하여 실험해보았다. 피코는 USB Serial로 PC와 통신하는데 uart0 를 사용한다는 것을 명심하자. 추가적으로 uart 장치(ex Bluetooth 모듈)를 연결하려면 uart1을 사용해야한다. 이 보다 많은 uart 장치를 연결하기 위해서는 아두이노의 softwareSerial을 구현해야 한다.(구현하는데 https://sidreco.tistory.com/12 여기서 핀 인터럽트 부분을 참고하면 될 듯하다.) 다만 uart 보다 속도도 빠르고 1:n 통신이 가능한 I2C와 SPI 통신 프로토콜을 사용하는 것을 추천한다. #src/..