임베디드6 [RaspberryPi] 라즈베리파이 ubuntu 세팅 우선 sd카드를 통해 펌웨어를 flash하는 방식으로 진행된다.튜토리얼 참조https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-piubuntu.com 1. rpi-imager 설치 후 실행 2. 펌웨어 플래쉬 - device 선택 - os 선택 - sd 카드 선택 2-1. micro-HDMI가 없어 Edit Settings GENERAL 1. 호스트 이름 2. 유저 이름 및 비밀번호 설정 3. Wifi 세팅(부팅 시 자동 접속하도록) 4. 지역 설정 SERVICE 1. ssh 원격 접속 가능 - 로그인 - .. 2024. 11. 3. [Arduino] Stepper motor - 28BYJ-48 사용한 HW아두이노 우노 R3 모터 드라이버(motor driver) : ULN2003 스텝 모터(Stepper motor) : 28BYJ-48 USB cable B (AM-BM) 스텝 모터(28BJY-48) 1. unipolar 5 wire 방식 2. Half step sequence 전력이 더 많이 소모 되지만, 더 작은 분해능으로 부드럽게 작동한다. 3. 스텝 각도 (Stride Angle): 5.625도/64 (1회전 당 64스텝, 기어비로 인해 4096스텝 필요) // 핀 번호 정의 const int IN1 = 8; const int IN2 = 9; const int IN3 = 10; const int IN4 = 11; // 스텝 시퀀스를 배열로 정의 (8단계 시퀀스) const int step.. 2024. 10. 9. [AVR] atmega1281 - switch로 LED 점멸 제어 #define LED1 PC0#define LED2 PC1#define LED3 PC2#define LED4 PC3#define SW2 PE7#include uint8_t switch_hit();int main(void){ static unsigned char cnt; DDRC = _BV(LED1) | _BV(LED2) | _BV(LED3) | _BV(LED4); PORTE = _BV(SW2); while(1) { if(switch_hit()) { cnt++; if(cnt % 2) // turn on LED1 and LED2 and turn off LED3 and LED4 else // turn on LED3 and LED4 and turn off LED1 and LED2 .. 2024. 10. 2. [Arduino] tutorial: IDE 다운로드 및 실행, 예제 https://www.arduino.cc/en/software SoftwareOpen-source electronic prototyping platform enabling users to create interactive electronic objects.www.arduino.cc 기부,, 해도 되는데 나중에 성공해서 할게요일단 just download! linux 에선 실행하면 다음과 같다.(저는 최근에 ESP32 사용해서 저렇게 떴어요) 설정(preference)로 가서- 파일 저장할 위치 선택- 배경화면 바꿔도 되고~ 보드 연결 후 예시 파일 체크는 "컴파일러" 동작 화살표는 업로드- 펌웨어 주입 2024. 10. 1. [AVR] MCU 기초 - GPIO 사용 https://www.microchip.com/en-us/product/atmega1281 MCU : ATmega1281 GPIO 사용을 위해 알아야 할 개념마이크로컨트롤러(MCU)에서 핀의 입력/출력 동작을 제어하는 중요한 레지스터들DDR(Data Direction Register)- 포트의 특정 핀의 방향을 결정 - DDRE 어떤 비트 값이 1이면 해당 핀은 출력(MCU가 해당 핀으로 신호를 보낼 수 있음)- DDRn 어떤 비트 값이 0이면 해당 핀은 입력(외부 신호를 MCU가 읽을 수 있음)- reset 후 모든 핀은 입력으로 동작하도록 설정됨 PORT(register)- 대응되는 핀이 출력으로 설정되면 PORTxn에 저장된 값이 해당 핀으로 출력됨- 대응되는 핀이 입력으로 설정되(DDRn == 0.. 2024. 9. 25. ESP32 DEV - MFRC522 https://docs.arduino.cc/software/ide-v2/tutorials/getting-started/ide-v2-downloading-and-installing https://docs.arduino.cc/software/ide-v2/tutorials/getting-started/ide-v2-downloading-and-installing docs.arduino.cc error: ordered comparison of pointer with integer zero ('byte' {aka 'unsigned char'} and 'int') ```cpp/home/tspoon/workspace/libraries/MFRC522/src/MFRC522Extended.cpp: In member fun.. 2024. 7. 24. 이전 1 다음