분류 전체보기(294)
-
[SKKU DT] 68일차 -유니티 Rest API 활용하기(뉴스 기사, 주식 정보), Shader Graph(셰이더 그래프)
뉴스 기사 가져오기 https://newsapi.org/ News API – Search News and Blog Articles on the Web “Ascender AI has a mission to apply AI to the media, and NewsAPI is one of our most valuable resources. Ascender is redefining how users interact with complex information, and the NewsAPI feed is an essential showcase for our technologies.” Braddock Ga newsapi.org 이름과 이메일을 입력하면 바로 API 키를 할당 받을 수 있다. https://newsa..
2024.02.06 -
[SKKU DT] 67일차 -유니티 Rest API 활용하기(날씨, 정보, 사진)
OpenWeatherMap에서 날씨 정보 받기 예전에도 했지만 OpenWeatherMap에서 날씨 API를 유니티로 받아올 것이다. Сurrent weather and forecast - OpenWeatherMap Access current weather data for any location on Earth including over 200,000 cities! The data is frequently updated based on the global and local weather models, satellites, radars and a vast network of weather stations. how to obtain APIs (subscriptions w openweathermap.org 내 ..
2024.02.05 -
[Robot Arm Arduino Project] RAAP프로젝트 -로봇 완성
새 포텐셔미터를 갈아 끼고도 Shoulder 모터의 떨림 현상은 해결되지 않았다. 다시 모든 가능성을 열어두고 안되는 점을 찾기 시작했다. 모터 자체의 결함 -서보 드라이버의 다른 핀에 꽂으니 잘 작동했으므로 통과 서보 드라이버의 결함 -코드에 작성된 해당 핀에 정상 작동하던 모터를 꽂으면 그 모터가 떨림 따라서 서보 드라이버 자체의 결함 보다는 포텐셔미터로부터 들어오는 해당 핀의 문제로 의심됨. 아두이노의 결함 -다른 아두이노에 그대로 적용해본 결과 떨림 현상 똑같이 발현. 포텐셔미터의 결함 -이미 새 포텐셔미터를 갈았으므로 통과. 하지만 혹시 몰라서 다른 새 포텐셔미터로 갈아끼웠다. 배선의 문제 -Shoulder 모터에 연결된 전선의 배선을 반대로 하면 해결될 것 같았으나 반대로 하면 모터가 돌아가지..
2024.02.05 -
[SKKU DT] 66일차 -유니티 UI 활용하기
유니티 UI -Slider 활용 위의 예시 같은 UI를 만들어볼 것이다. 3D URP 프로젝트를 하나 만든다. Slider를 하나 만든다. 음악에서 이퀄라이저 같은 모양을 만들 것이다. SliderChange 스크립트 생성 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class SliderChange : MonoBehaviour { public Slider slider; public float currentValue; void Start() { InvokeRepeating("RandomValue", 0.1f, 0.1f); //함수 이름, 1초마다 반복하고, ..
2024.02.02 -
[SKKU DT] 65일차 -유니티에서 ChatGPT Api 가져오기
유니티에서 ChatGPT 가져오기 API key를 받아오기 전에 유니티 씬으로 UI를 만든다. MyGPT 스크립트 생성 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Networking; public class MyGPT : MonoBehaviour { public InputField userInputField; public Text responseText; private readonly string openAIApiURL = "https://api.openai.com/v1/chat/completions"; private readonly s..
2024.02.01 -
[Robot Arm Arduino Project] RAAP프로젝트 -테스트(3) 서보 모터 떨림 고치기
[Robot Arm Arduino Project] RAAP프로젝트 -테스트(2), 회전 값 출력 지난 번에 연기난 서보 모터 드라이버는 새 드라이버로 바꿨고, 다시 테스트에 돌입했다... 수 많은 테스트 끝에 Base 서보 모터가 고장이 났고, Elbow를 담당하는 Potentiometer가 고장 난 것을 알아냈 lightbakery.tistory.com 이전 테스트에서 Base에 해당하는 모터가 고장이 났던 것을 알아냈고, 0~180도 모터를 새로 주문해서 서보 모터 드라이버에 잘 끼웠다. 그런데 여기서 모터가 튕기는(?) 현상을 보이며 좌,우로 크게 움직였다. 처음에는 들어오는 Pulse 진동 값이 문제라고 생각하여 아두이노 스케치에서 Frequency 값을 50에서 51, 60으로 바꿔보았으나 여전..
2024.02.01