Bruk av AI i IN1080

Eksempel på spørring

Her er noen eksempler der forklaringene fra GPT-4 UIO er minst like bra som om de var hentet fra en lærebok. (Norsk fungerer like bra)

Eksempel: Hente ut generell info, så enkelt forklart som mulig

  • can you explain to a 12 year old child the difference between electric current and voltage

Eksempel: Anta at man lurer på hva Processing er, vil lære enkel bruk, og har lyst å bruke Processing til å snakke med Arduino

  • can you tell me about processing (java)
  • how will processing differ from python
  • what is the main structure of processing
  • can processing be combined with arduino
  • can you make processing code that sends a byte to arduino
  • can you make processing code that reacts to keystrokes
  • can you put the previous code into a complete processing program
  • what are the setup() and draw() functions doing
  • how do I start using processing

Eksempel: Anta at man lurer på hva en serieport er og hvordan den kan brukes til å overføre data mellom Python og Arduino

  • can you explain what a serial port is when it comes to communication between a pc program and arduino
  • what about a linux or a mac
  • can you also send a byte from python to arduino in this way
  • can you explain the strange syntax: b'\xFF'
  • what will be the byte syntax for the value 10
  • when sending a byte from python to arduino, what can go wrong
  • can you explain Arduino Buffer Overflow
  • can you give me a historical context of the serial port, make it exiting
  • is serial port and RS-232 the same

Eksempel: Vi vil bruke en RGB LED array fra Kjell styrt av Arduino, hvordan gjør vi det?

  • can i use arduino to individually set the RGB values of the leds in a Luxorparts Adresserbar RGB LED-list based on WS2812B leds
  • can you explain NUM_LEDS DATA_PIN and FastLED.show() in the code
  • how much current will a strip with 130 leds at most use
  • what can typically go wrong with this setup
Bildet kan inneholde: væske, underholdning, bilbelysning, font, fiolett.

Eksempel: Man vil koble en ekstern LED til en Arduino utgang, men det var "noe med" seriemotstand og sånn, og hvor stor må en slik motstand være? Vi vil spare tid ved å slippe å regne på det

  • I want to connect a LED to the output of an arduino can i do that
  • I have a final exam where I need to know how to calculate the resistor value, can you explain how to do it
  • are you sure that a typical LED voltage drop is about 2V, I thought it was more like 0.7V

 

 

Publisert 29. jan. 2024 22:53 - Sist endret 5. jan. 2026 21:02