본문 바로가기
반응형

전체 글19

[GS25 편의점] 승우아빠 마이야르 롱소시지 칠리치즈 덮밥 연구실 퇴근 후 야식이 땡겨 친구와 기숙사 근처 편의점을 간다. 간단하게 라면만 먹으려고 했는데, 들어가자마자 태세변환하는 나의 stomach... 마침 또 단돈 4500원에 양이 푸짐해보이는 덮밥이 보여서 집어본다. 겉으로 봤을 땐 매우 푸짐해보이지 않는가? 승우 아빠의 저 자신만만한 모습 기대를 해본다. 내용물은 CJ 따끈한밥, 치즈 한장, 소세지 하나, 덮밥 소스 이렇게 구성되어있다. 조리법은 CJ 따근한밥 먼저 2분간 전자레인지 돌리고나서, 밥과 나머지 부속물들을 플라스틱 용기에 넣어 1분30초 더 돌리면 된다. 쓰레기가 상당히 많이 생기는게 조금 단점이다. 그렇게 완성된 승우아빠 마이야르 롱소시지 칠리치즈 덮밥! 개인적으로 맛은 소세지가 적당히 구워져서 쫄깃해서 맛있었다. 나머지 밥-치즈-칠리소.. 2023. 2. 9.
[Arduino] 아두이노로 HMC5883L 지자계센서사용하기 다음은 HMC5883L을 Arduino 보드에 연결하는 단계입니다. HMC5883L의 VCC 핀을 Arduino 보드의 3.3V 핀에 연결합니다. HMC5883L의 GND 핀을 Arduino 보드의 GND 핀에 연결합니다. HMC5883L의 SDA 핀을 Arduino 보드의 A4(SDA) 핀에 연결합니다. HMC5883L의 SCL 핀을 Arduino 보드의 A5(SCL) 핀에 연결합니다. HMC5883L이 Arduino 보드에 제대로 연결되어 있고 올바른 라이브러리가 Arduino IDE에 설치되어 있는지 확인하십시오. HMC5883L을 연결한 후 이전 답변에서 제공된 예제 코드를 사용하여 센서에서 자기장 값을 검색할 수 있습니다. #include #include HMC5883L compass; void.. 2023. 2. 3.
[Arduino] 아두이노로 MPU-6050 가속도센서 사용하기 #include #include #include MPU6050 mpu; void setup() { Serial.begin(9600); // Initialize serial communication with a baud rate of 9600 Wire.begin(); // Start the I2C communication mpu.initialize(); // Initialize the MPU-6050 sensor } void loop() { mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz); // Read the accelerometer and gyroscope values // Print the accelerometer and gyroscope values to the se.. 2023. 2. 2.
[Arduino] Xbee 통신 예제 코드 #include XBee xbee = XBee(); void setup() { Serial.begin(9600); xbee.begin(Serial); } void loop() { // create a variable to hold the data to be sent uint8_t payload[] = {'h','e','l','l','o'}; // create a Tx request Tx16Request tx = Tx16Request(0x1234, payload, sizeof(payload)); // send the request xbee.send(tx); delay(1000); } 이 예제에서는 Xbee 라이브러리가 포함되고 Xbee 클래스의 인스턴스가 생성됩니다. 설정 기능에서 직렬 통신을 초기화하고 .. 2023. 1. 30.
[Arduino] 7 Segments로 Serial Input 받은 숫자 표시하기 #include SevenSegmentTM1637 display(4, 5); // Create a 7-segment display object void setup() { Serial.begin(9600); // Initialize serial communication with a baud rate of 9600 display.begin(); // Initialize the 7-segment display } void loop() { if (Serial.available() > 0) { // Check if data is available from the serial port String input = Serial.readString(); // Read the data from the serial port.. 2023. 1. 29.
반응형