ChatGPT Creates Arduino Code

  Рет қаралды 3,894

daveintheshop

daveintheshop

Күн бұрын

Пікірлер: 18
@jbraMoVal
@jbraMoVal 7 ай бұрын
Awesome...I tested it on version 3.5 with a simple servo motor and controlled with a potentiometer. Worked first try. You're right about the importance on writing the prompt. I'm excitedto try 4.0
@john-kneebee2143
@john-kneebee2143 5 ай бұрын
Super cool !! Nice Video !! Makes better sense to me now Thank you kind Sir
7 ай бұрын
I've asked 3.0 to generate code for a side project I had in mind but was too lazy to read up and figure out. The pivotal method's body was only a comment saying something like; "this is left up to the reader as an exercise" I asked it then to populate that specific method, knowing the inputs and outputs required. It regenerated the whole piece of code and hid that method deeper in the code, but still same comment. I find it too eager to please and will make up stuff. I'm glad it worked for you.
@daveintheshop
@daveintheshop 7 ай бұрын
I used the latest ChatGPT 4o on this experiment. That is "o" as in Oscar-which is supposedly much better. I have used ChatGPT 3 and found it to hallucinate frequently.
@HamWithCam
@HamWithCam 7 ай бұрын
Impressive video! Just right for those wanting to get started programming an Arduino. Even though I have done Arduino programming I learned something. Well done!
@scottstevens7569
@scottstevens7569 7 ай бұрын
Nice information and example. Well laid out and agreeable conclusion presented. I liked the power tool anolagy.
@daveintheshop
@daveintheshop 6 ай бұрын
Glad you liked it!
@Badg0r
@Badg0r 7 ай бұрын
Great video! Keep up the good work with the Arduino
@lidimanandteam6431
@lidimanandteam6431 7 ай бұрын
you deserved a lot off subscribers bro
@RixtronixLAB
@RixtronixLAB 7 ай бұрын
Creative video,thanks :)
@daveintheshop
@daveintheshop 6 ай бұрын
Thank you! Cheers!
@Foozow
@Foozow 7 ай бұрын
I noticed that you started the video with an Arduino R4 but the finished test was using an R3, were there issues with the R4 as I was planning on getting one?
@daveintheshop
@daveintheshop 7 ай бұрын
Good eye! The LCD panel actually had a problem. In switching out parts to find the issue, I substituted an R3 as part of the diagnosis steps. I tested the R4, and it works fine. Thanks for the question.
@Foozow
@Foozow 7 ай бұрын
@@daveintheshop Thanks for that. I'm very new to Arduino stuff so a lot of stuff I'm trying doesn't work at the moment haha. I'll get better though. Thanks for clarifying. 🙂
@initiald975
@initiald975 6 ай бұрын
Yes it can. But if it’s really super complicated, no. Like when your RTC trumps the GPS system you’re using in your project.
@daveintheshop
@daveintheshop 7 ай бұрын
Here is the code response from ChatGPT Here is the code that was generated by ChatGPT: #include #include #include #include // Data wire is connected to pin 2 #define ONE_WIRE_BUS 2 // Setup a oneWire instance to communicate with any OneWire device OneWire oneWire(ONE_WIRE_BUS); // Pass oneWire reference to Dallas Temperature. DallasTemperature sensors(&oneWire); // Set the LCD address to 0x27 for a 16 chars and 2 line display LiquidCrystal_I2C lcd(0x27, 16, 2); void setup() { // Start the serial communication Serial.begin(9600); // Start up the library sensors.begin(); // Initialize the LCD lcd.begin(); lcd.backlight(); // Print a message to the LCD lcd.setCursor(0, 0); lcd.print("Temperature:"); } void loop() { // Request temperature from the sensor sensors.requestTemperatures(); // Fetch the temperature in Celsius float tempC = sensors.getTempCByIndex(0); // Convert Celsius to Fahrenheit float tempF = tempC * 9.0 / 5.0 + 32.0; // Print the temperature in Fahrenheit on the LCD lcd.setCursor(0, 1); lcd.print(tempF); lcd.print(" F"); // Wait 1 second before repeating delay(1000); }
@jackevans2386
@jackevans2386 5 ай бұрын
The major problem with this method is that you've learnt nothing. You might as well have bought a working temperature readout device. You will have learnt nothing there too.
Machine Learning on Arduino Uno was a Good Idea
12:30
Nikodem Bartnik
Рет қаралды 327 М.
Turn your Pico into a 400MHz 24 Channel Logic Analyser
25:26
Happy Little Diodes
Рет қаралды 60 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Building a Wireless Temperature Sensor with ESP8266 & Arduino
19:19
Andrew Godwin
Рет қаралды 90 М.
Arduino IDE or ESPhome for our Projects?
22:28
Andreas Spiess
Рет қаралды 38 М.
A Cyberdeck With A Removable Keyboard
11:26
Ashtf
Рет қаралды 13 М.
YOU can Learn the ESP32 in 15 Minutes:  Hello World!
22:52
Dave's Garage
Рет қаралды 341 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,3 МЛН
From Brains to Bot: Arduino's Next-Level Journey with AI.
7:26
DIY Builder
Рет қаралды 526 М.
Much bigger simulation, AIs learn Phalanx
29:13
Pezzza's Work
Рет қаралды 2,8 МЛН
The BEST ESP32 project based on ChatGPT | IOT Projects | NextPCB
16:27
Photolithography on Silicon with PCB Chemicals
25:31
ProjectsInFlight
Рет қаралды 58 М.