background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "🤖Я в шоке! ChatGPT пишет Arduino проекты"

input logo icon
Table of contents
|

Table of contents

0:00
Начинаем
1:11
ChatGPT о нашем наборе
2:36
Мигаем светодиодом
5:12
Подводка
6:08
Крутим сервоприводом
7:06
RGB светодиод
9:27
Адресная лента
15:08
Термостат
17:22
Дальномер
18:20
Кодовый замок
19:41
Часы
20:22
Змейка на светодиодной матрице
22:11
WiFi проекты
26:32
Конецъ
Video tags
|

Video tags

AlexGyver
своими руками
как сделать
самоделки
своими руками видео
сделай сам
самодельный
в домашних условиях
нейросети
искусственный интеллект
бот
chatgpt
ai
openai
эксперимент
arduino
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:02
this video we will look at the amazing
00:00:04
capabilities of artificial intelligence and
00:00:06
Arduino microcontrollers I will show you
00:00:08
how to use gpt chat one of the most
00:00:10
advanced artificial
00:00:11
intelligence models to create programs on
00:00:13
Arduino you will learn how Chad gpt can
00:00:16
help you write code and save
00:00:17
a lot time Let's start
00:00:21
[ __ ]
00:00:31
You guessed it Today I want to
00:00:33
experiment with her in person and
00:00:36
check how well she writes
00:00:38
simple programs for Arduino If
00:00:40
you suddenly don’t know gpt - this is an absolutely
00:00:42
revolutionary thing in the form of a virtual
00:00:44
interlocutor who knows everything in the world and
00:00:46
can give advice write poetry and even
00:00:49
program; in fact, we
00:00:50
will need access to a chatbot;
00:00:59
this information is very easy to find on the
00:01:02
Internet. And if you have a non-
00:01:03
Russian phone number or a friend with
00:01:05
such a number, then it’s better to just
00:01:06
register on the site;
00:01:25
buy a subscription for 20 bucks; the second one is
00:01:27
also simple I will use the
00:01:29
Arduino kit Guyver Kids, which we
00:01:31
sell in Russia, the link is in the
00:01:33
description under the video because this is the
00:01:35
largest kit that
00:01:37
you can buy in principle, there is everything that can be
00:01:39
useful and even more, these are the most
00:01:41
popular Chinese sensors and modules,
00:01:43
just all in one convenient box, the
00:01:45
gpt part, by the way, speaks well of our
00:01:47
kit, everything she wrote here is
00:01:49
really so, except for this, this is a
00:01:51
complete lie, the boards
00:01:53
were never in the kit, there are Arduino Nano
00:01:56
Venus Mini and also esp32 boards with a camera and
00:01:59
folk and spin 01 in the kit our new
00:02:02
iot set for experiments with a smart home, what do
00:02:04
I expect from this experiment
00:02:08
by an interlocutor who has read the entire
00:02:10
Internet, all forums and all articles on
00:02:12
Yandex Zen and can answer the
00:02:14
question Based on this, namely,
00:02:16
to program independently She doesn’t
00:02:18
know how, by the way, boy
00:02:23
I think that some typical things will be
00:02:26
done without problems, but in programs
00:02:28
where you need to develop something,
00:02:30
some cunning algorithm most
00:02:32
likely won’t cope. But that’s what I think,
00:02:34
so let’s see how it
00:02:36
really is, let’s start with the most banal example of a
00:02:38
flashing LED and let's try several
00:02:41
degrees of complexity of this task, I will
00:02:44
ask questions in Russian and
00:02:45
English to understand how best to make a
00:02:48
mistake here, this is a blinking diode as
00:02:50
it is.
00:02:52
Let's ask the Bot to make the
00:02:55
blinking purity 5 Hz, what a smart guy even calculated the period.
00:02:58
If you are in the subject, then you know what it is
00:03:01
very bad code based on
00:03:03
delays not in development but in time,
00:03:06
so I will ask the Bot to make an
00:03:08
asynchronously blinking LED that
00:03:10
will not block the execution of the entire
00:03:12
program and will also blink smoothly, which is
00:03:17
quite difficult to do on the 13th stage of this board and
00:03:19
immediately the neural network produces
00:03:21
This code is complete nonsense to us, this code will make the LED blink
00:03:24
with a random brightness for a random time,
00:03:26
but the brightness on the thirteenth pi
00:03:28
cannot be set in this way. Okay, I’ll simplify
00:03:31
the task Let the LED just
00:03:33
blink smoothly in any way, well, this is a
00:03:36
standard example, it even seems to be in
00:03:38
the folder with the program Well, in fact, here
00:03:40
it is, almost verbatim rewritten,
00:03:42
it works as it should, nothing to say here.
00:03:44
Okay, let’s try the second part of the problem, the
00:03:47
asynchronous blinking LED
00:03:50
produced some kind of nonsense. Du, I think he
00:03:53
misunderstands the word asynchronous,
00:03:54
he apparently thinks that asynchronous
00:03:57
means without an even period, I’ll paraphrase
00:03:59
Make me a blinking diode without delays
00:04:02
and this already looks like the truth Yes,
00:04:05
I wrote a classic design for an
00:04:06
asynchronous timer without delays,
00:04:08
well done
00:04:10
[music]
00:04:12
well, make me a smoothly
00:04:16
blinking LED without delays so
00:04:18
good Well, we started for health, we finished for
00:04:22
peace again with a delay, I’ll try
00:04:25
to miss the input terminology for me anyway - I
00:04:27
really need a smoothly flashing LED on
00:04:29
pin 13, I suggest using a
00:04:31
software PWM signal softpwm No,
00:04:35
again the hardware PWM and delay do not understand,
00:04:37
I tried to paraphrase it in a bunch of
00:04:40
different ways, but the result was not
00:04:42
achieved with the simplest tasks,
00:04:44
diode megamication disassembled on the Internet, not
00:04:46
Russian, coped Excellent But
00:04:48
a little - a slightly more cunning algorithm puts
00:04:50
it at a dead end. The problem is solved in literally
00:04:53
three lines of code that allow you
00:04:54
to make the brightness of the LEDs
00:04:56
pseudo-smooth in a couple of days when
00:04:58
I already had a subscription. I asked a
00:05:00
similar question to the fourth version of gpt
00:05:02
and in response I received a slightly different
00:05:04
design, but the meaning remained the same and
00:05:07
the result was incorrect
00:05:10
point part gpt 0 points further we have according to
00:05:13
plan advertising integration eyeliner for
00:05:15
which I asked to write gpt but
00:05:17
still pays me for the author's
00:05:19
material so the text will be mine as you
00:05:21
all probably know I grew up reading
00:05:23
Harry Harrison's books and studied at the university in the
00:05:25
specialty of spacecraft design,
00:05:27
Cosmonautics Day is a
00:05:29
special holiday for me. And when I saw the new
00:05:32
limited collection of
00:05:34
Tinkoff Black debit cards in space design, of course,
00:05:37
the joke was immediately issued on the website and a
00:05:40
representative of the bank greeted the
00:05:41
next day absolutely free of charge,
00:05:44
moreover, if you issue such a card before 16
00:05:46
April, then the service on it will be
00:05:48
free forever, and Tinkofflex also
00:05:51
helps you save and even makes money
00:05:53
on your purchases, you will receive
00:05:55
cosmic cashback of up to 30 percent in
00:05:57
rubles for purchases from bank partners,
00:05:59
cashback of up to 15 percent on 4
00:06:02
spending categories that you can choose every month
00:06:04
and also up to five percent per annum
00:06:06
on the account balance with a Tinkoffpro subscription
00:06:08
Cosmic benefit and the
00:06:10
money does not run out, you can
00:06:12
even transfer to cards of other banks without commission
00:06:14
through sbp and also withdraw from ATMs for free,
00:06:17
apply for a Tinkoff
00:06:19
blackspace card using the link in the description under the
00:06:21
video until April 16, its service will be
00:06:23
free forever let's return to the chatbot
00:06:26
and I have the following question: make me a
00:06:28
smooth control of the servo drive, that is,
00:06:31
not at full speed as it is usually
00:06:32
controlled slowly, everything is correct for a
00:06:35
smooth movement you need to shift the angle of
00:06:37
rotation of the gray drive, gradually
00:06:39
stretching this process over time, but here
00:06:42
again everything is on delays, but I didn’t specify
00:06:45
what is needed without them by the way Pay
00:06:47
attention to the detailed text description of
00:06:48
how the code works, this is very good
00:06:51
for learning, I’ll ask you to make me the code without
00:06:54
delay Excellent, everything is written exactly
00:06:57
as needed and the text description
00:06:59
explains everything in detail, it’s true that it was generated
00:07:01
for almost 4 minutes everything works as it should.
00:07:04
This task is clearly simpler than with an
00:07:06
LED. So let’s do it again,
00:07:09
there will be three, namely the RGB LED, the color
00:07:13
of which I want to adjust using the
00:07:14
potentiometer knob, I
00:07:17
connect the LED to the pins as indicated on the
00:07:19
kit’s website, and the knob to the analog
00:07:21
input Let's still write in Russian,
00:07:23
but write me a program to control an
00:07:26
RGB LED and so on in the text
00:07:29
Wow, they even gave us a list of components,
00:07:31
but everything is frozen, I'll ask in English So I
00:07:35
perked up and gave out
00:07:38
some kind of crap at first glance. Let's download
00:07:40
the program and Let's see what happened
00:07:42
and it turned out to be some kind of crap, the
00:07:44
color changes are smooth but it does not
00:07:47
cover the entire Spectrum and also has
00:07:49
a step in the middle at the same time I
00:07:51
asked the Bot to just adjust
00:07:53
the color and he did it as he sees it himself
00:07:56
So no questions I have something to say about
00:07:58
it Probably not Let’s make it more specific and
00:08:00
make the color setting don’t give a [ __ ], yes that’s exactly how it is
00:08:04
in English this shade the bot
00:08:07
went wild and dashed off some creepy
00:08:09
indium one with a bunch of conditions and
00:08:11
calculations of floating point numbers but the
00:08:14
Canvas is quite working now the color
00:08:16
changes smoothly flows from the colors
00:08:18
color according to the Spectrum but at the edge of the range a
00:08:21
foam party begins apparently the code is
00:08:23
still not very correct but I must pay tribute to it, it’s quite
00:08:25
working I decided to
00:08:28
ask in English and Guess what Yes, I
00:08:31
wrote a program for an addressable
00:08:33
LED, he takes one LED and
00:08:36
adjusts its color using
00:08:37
built-in library function in my
00:08:39
question, I didn’t write that the LED
00:08:42
should not be addressable, so the bot is
00:08:43
again right. The more accurately the question is asked by
00:08:46
whom. The more accurately he can answer it.
00:08:48
Let’s, for educational purposes,
00:08:50
consider the algorithm that is usually
00:08:52
used for this matter. We have 255
00:08:55
the value of the knob horizontally and 255
00:08:58
the value of the rage of the LEDs vertically,
00:09:00
we divide the knob into 3 ranges,
00:09:02
red will be 3 These are the values
00:09:05
green will change at these values ​​and blue will
00:09:08
change its brightness at these values ​​of the
00:09:10
knob This is how it looks in the
00:09:12
program, very succinctly And this is how it
00:09:15
works without steps without a foam
00:09:18
party at extreme values ​​since
00:09:20
the mathematics here is more than predictable
00:09:22
by the way, this is what the first algorithm
00:09:24
that offered us gpt looks like, something in this
00:09:27
However, they
00:09:28
started to touch
00:09:40
Well, the most banal thing, give me
00:09:43
the effect of a running rainbow, this is the base Oh
00:09:47
mommies tea gpt turned on the Indian again and
00:09:49
did some crazy
00:09:51
color conversion but the cat Looks quite right,
00:09:53
only I connected the tape in the wrong place,
00:09:56
everything works great
00:09:58
[music]
00:10:00
Let's specify pin number 13
00:10:03
brightness 100 out of 255 Lol gpt part decided to
00:10:08
use a different library for the tape
00:10:10
go fanil everything constants and even moved the
00:10:13
effect into a separate function, not bad,
00:10:16
unlike the previous rainbow, it will be
00:10:18
stretched across the entire tape. Pay
00:10:20
attention to this expression, well, a Rainbow
00:10:23
is like a rainbow
00:10:25
[music]
00:10:28
but I want the brightness of the tape
00:10:31
to be adjusted with a potentiometer, will it cope
00:10:33
with such a task? Yes, it I did everything
00:10:36
correctly and added this feature to my
00:10:39
previous code without redoing it, it works a lot
00:10:51
Let’s complicate the task a little more
00:10:53
Let the speed of the rainbow be set by the
00:10:56
second knob I will indicate pins a0 and A1
00:10:59
What a great guy he added
00:11:01
delay control using the second knob
00:11:03
actually Everything works claims zero
00:11:06
respect
00:11:12
Let's see how part of gpt With
00:11:15
imagination I'll ask him to make the
00:11:16
Northern Lights effect, that's how you think the neural
00:11:19
network sees the Northern Lights Well, it
00:11:22
happened again A rainbow only
00:11:24
stretched in length, in fact it
00:11:27
is
00:11:29
I started a new dialogue and asked the same
00:11:31
question and now it’s using a different
00:11:34
library for the tape and does some
00:11:37
crap now 6 LEDs will just
00:11:39
flicker in random colors and it will be
00:11:41
quite ugly by chance it will just be a
00:11:43
gray mass and that’s how it happened
00:11:46
[music]
00:11:52
and how does the neural network see the effect will-o-the-
00:11:56
wisps are waiting for an answer essentially the same as the
00:11:59
previous time But this time the colors
00:12:01
will be bright and rich epoch exactly like this
00:12:05
if your party is not like this then
00:12:07
don’t even invite me Let’s find out
00:12:10
what the neural network considers beautiful give
00:12:12
me a beautiful effect Wow and now he
00:12:15
asks what tape I use but
00:12:18
he guessed quite correctly we got
00:12:20
some code and we can conclude that
00:12:23
part of the gpt clearly loves the green color,
00:12:25
let me clarify what kind of tape I have and
00:12:28
it’s getting hot, now they’ve written for us
00:12:31
several effects at once that will
00:12:32
switch quite well. Let’s try. That’s
00:12:36
bad luck.
00:12:38
Well, I kind of guess what
00:12:40
the author wanted to say. Here you need to break the
00:12:42
24-bit color into three components
00:12:44
red green and blue for battle and
00:12:47
mathematics By the way, if you also want to
00:12:49
learn how to dashingly write and read any code,
00:12:51
then I remind you that on my website there is a
00:12:53
huge database of absolutely free and
00:12:56
very detailed programming lessons
00:12:57
specifically for Arduino and similar
00:12:59
entertainment Wow wow It really
00:13:02
turned out beautiful it looks like a fireworks the
00:13:04
charge flies then boom and glow part
00:13:08
for 5 you're not bad For that matter let's
00:13:11
do some beautiful effects for me
00:13:14
so wait a minute I don't like neopixel Let's
00:13:17
write to the library faslet Wow this is a
00:13:20
jet bot I wrote blocking effects and
00:13:23
threw them into the main loop of the program, this is a
00:13:25
very dirty job. But
00:13:28
I made a description for each effect. It’s funny. In the end it
00:13:31
turned out Almost the same thing is clear. This is where
00:13:34
his fantasy of painting the effect
00:13:36
apparently ended. So let’s write it down.
00:13:41
Let’s switch to start gpt version 4
00:13:45
and see what he we will be asked to ask
00:13:48
exactly the same question Wow, this guy is
00:13:51
clearly much smarter in defaning all
00:13:53
the settings and also Apparently the code
00:13:56
will be asynchronous, you can adjust
00:13:58
the time between effects, so here we have an
00:14:01
effects switch and the actual
00:14:03
rendering of the current effect, then
00:14:06
the effects themselves, the program is organized
00:14:09
much better than the previous version of
00:14:10
gpt That's for sure But the effects themselves are still
00:14:14
delayed, but note that I didn't ask you to do it
00:14:17
without them Apparently there is a limit on the
00:14:19
amount of text that the bot generates. As I
00:14:21
understand it, he didn't literally finish the
00:14:23
last function. So I did it
00:14:26
for him because this is the usual way to get
00:14:28
color from a rainbow, I’ll do this using a
00:14:31
library tool, he wanted to do it with some kind of
00:14:33
crutches Apparently, So effect
00:14:35
number one is a running Rainbow, amazing
00:14:38
number two, Running LEDs and they
00:14:42
smoothly change color along the rainbow,
00:14:43
cool, really cool, third
00:14:46
effect of filling with color Well, now
00:14:49
I very impressed, just from a short
00:14:52
text description to write a full-fledged
00:14:55
damn program is quite difficult to
00:14:57
come up with Three different effects This is damn
00:14:59
cool and the effects are also quite suitable
00:15:02
Chad gpt can really throw together a ready-made
00:15:05
project structure that will
00:15:06
then need to be completed a little and it’s done Okay, let’s
00:15:09
move on to useful crafts for example
00:15:12
relay and thermistor temperature sensor
00:15:15
let's make a thermostat
00:15:18
Make me a thermostat The thermistorz himself knows everything,
00:15:21
but it's not simple, to
00:15:24
get the temperature you need to make
00:15:25
some mathematical transformations
00:15:27
and at first glance the program is quite
00:15:29
correct. Separate
00:15:31
characteristics of the thermistor Let's
00:15:33
see what comes in the kit.
00:15:35
Surprisingly, the neural network guessed which
00:15:37
thermistor I'm using the characteristics are
00:15:39
completely the same so wait for
00:15:41
debugging Let's ask Add
00:15:43
the temperature output to the port Yeah super
00:15:49
I connect the dialing sites according to the diagram and now
00:15:52
we see the temperature I heat up the sensor in
00:15:55
my hand and the temperature rises the threshold
00:15:58
temperature is 25 degrees specified in
00:15:59
the program So I cool it down and the relay
00:16:02
turns off again I heat it up
00:16:07
Well let's not waste time on trifles And
00:16:09
we'll ask the neural network to display the current
00:16:11
temperature on the display, this is a specific
00:16:14
display I'm describing as it is LCD 1602
00:16:17
connection via i2c
00:16:19
[music]
00:16:22
Well, we've added an output to the display Everything
00:16:25
works 25 degrees the relay worked great
00:16:28
And let's ask you to adjust the
00:16:30
set temperature with a knob
00:16:33
[music ]
00:16:42
It looks quite correct, but it
00:16:45
will reach the limit on the text length. This
00:16:47
means that large projects, in principle,
00:16:49
cannot be generated by this thing.
00:16:51
Let's ask the Bot not to write
00:16:53
comments to the program code; what a
00:16:56
naughty one I will specify without
00:16:58
one-line comments to the
00:17:00
program code; it turned out
00:17:02
[music]
00:17:05
Great
00:17:06
[music]
00:17:09
And So I twist the temperature,
00:17:12
which will maintain the thermostat And
00:17:14
you can hear the relay and the system click.
00:17:16
It works properly, very cool for
00:17:18
beginners who are just starting to
00:17:20
get acquainted with such things, it’s just
00:17:22
something like that, so we can also connect it to
00:17:25
the display, let’s make a range finder on an
00:17:28
ultrasonic sensor, I
00:17:30
connect the distance according to the standard diagram sites for the
00:17:33
Guyver Kit so good, we display not the
00:17:36
distance from the sensor on the display the
00:17:38
gpt part uses a standard design
00:17:40
for interrogating the sensor Okay and displays it on the
00:17:43
display like this Well, everything works correctly,
00:17:45
really no lessons or crooked
00:17:48
examples are needed from forums and
00:17:50
online store sites gpt will just write
00:17:52
working code according to your request and everything is
00:17:54
tough Let's display the distance in
00:17:58
millimeters or inches again too
00:18:00
many comments give without
00:18:03
comments please order Ay
00:18:06
beauty works but Check G5 did not catch the
00:18:09
difference between centimeters and
00:18:11
millimeters and continues to display in
00:18:13
centimeters this can be seen from the calculation
00:18:15
formula But he is honest tried Even named the
00:18:18
variable distance millimeters What a
00:18:20
great guy, what should we do next?
00:18:22
Let's offer a photo of an interesting project: a
00:18:25
combination lock; just look at the
00:18:28
logic of entering a password; asked to make me a
00:18:30
combination lock; the gpt part manually
00:18:33
interrogates the matrix keyboard and,
00:18:35
apparently, simply displays the pressed numbers on
00:18:37
the display
00:18:38
[music]
00:18:40
Yes, and it does it quite carelessly
00:18:43
so that it was a combination lock, I
00:18:45
added the phrase correct Code 1234 and these
00:18:49
three words were enough in the program,
00:18:51
code checking and processing of
00:18:53
incorrect input were added, but the code still
00:18:55
worked rather clumsily, that is, it did
00:18:57
not work at all. Although I may have had
00:19:00
the keyboard is connected incorrectly, I
00:19:02
decided to ask the same question in the fourth
00:19:04
version of gpt and I can immediately see a different approach, they
00:19:07
gave me a list of components and to work
00:19:09
with the keyboard they will use the
00:19:11
k-pad library, it needs to be installed from the
00:19:14
library manager, the correct code
00:19:16
is stored in a line and here after
00:19:18
the end of the input using MP, the program
00:19:21
compares the entered code with the correct one.
00:19:23
Excellent program. I would most likely do the
00:19:26
same thing and compare one
00:19:28
symbol at a time. Which is essentially the same thing. Well, the
00:19:31
most important thing is that it works both on a
00:19:33
short stroke and on a long one and on code with
00:19:36
letters 1 2 3 4 ABCD also everything works
00:19:40
just great
00:19:42
next quick project clock on the
00:19:45
real time clock module ds3231 and 7
00:19:48
segment display I will ask the
00:19:51
clearest possible question 4 versions Chad gpt and I hope I
00:19:53
will get a clear program I even
00:19:56
indicated the pins of the display my wishes were
00:19:58
heard the program is being written quite well
00:20:00
correct Here a few
00:20:02
Hindu jokes appeared, let's see if
00:20:05
it works and in the end we were given instructions on where
00:20:08
and what libraries we need to find and
00:20:10
install. What a delight. This is a concern.
00:20:12
In general, I installed everything, downloaded everything, and
00:20:15
here they are, the clock, the time was set
00:20:17
automatically equal to the compilation time of the
00:20:20
program, I have no questions everything is clear so
00:20:23
friends I want to make the classic game
00:20:25
Snake in the light of the sofa matrix and
00:20:28
joysticks forward I won’t waste time on trifles
00:20:31
right away I’ll use version 4 of the Bot I
00:20:34
wrote the game Snake more than once in my time,
00:20:36
in general it seems like the truth
00:20:40
we’ve hit the limit after all this is what the game bears
00:20:44
Let's ask the Bot not to write a
00:20:46
text description before the code to
00:20:49
save space and also to cut out spaces
00:20:51
from the year of the program. However, they are not fools.
00:20:54
He removed only those spaces that will not
00:20:56
lead to a program error; all important
00:20:58
spaces remained in their places. I don’t
00:21:01
like this kind of pasta. Let’s
00:21:02
ask to do it without tabulations about gorgeous
00:21:06
That's exactly what I wanted to see, it
00:21:11
seems like our program is ready Let's
00:21:13
load it since this reaction is
00:21:16
certain but the joystick
00:21:17
turns in the wrong direction and also the
00:21:19
game does not process a collision with a
00:21:21
wall, maybe after all the program is not
00:21:24
all printed Let's ask Bota
00:21:26
to shorten the name of the variables.
00:21:29
Just look, he shortened
00:21:32
the name of the variables and also
00:21:35
compressed the code as much as possible into single-line constructs
00:21:37
so as not to indicate an unnecessary type name
00:21:39
in the data. Cool, this is really cool, but
00:21:42
judging by the code, it was still the whole
00:21:44
program. I slowed down the game and increased
00:21:47
the delay. I also inverted my
00:21:49
joystick and had fun playing the
00:21:51
collision handling snake and there is still no loss in it,
00:21:54
but the main essence works
00:21:56
correctly, we move across the field, we collect the
00:21:59
apple, we grow, we get high. Please note
00:22:02
that all the programs that
00:22:04
the bots wrote for us were compiled and work. Here’s
00:22:07
one that didn’t work where the color is
00:22:08
rewrote and also the statistics are simply
00:22:10
magnificent Let's finally
00:22:12
try a couple of wi-fi projects based on the
00:22:15
board,
00:22:16
make me control the LED
00:22:18
via the web interface, in this case the
00:22:21
board becomes an http server and we
00:22:24
access it like a regular website, but in
00:22:26
our home local network it looks like
00:22:28
very simple Probably this is generally the
00:22:30
minimum possible example, I didn’t specify
00:22:33
Which light to make I want to turn on So I’ll
00:22:35
point out that the built-in one on the board
00:22:37
is a Constant years old biltin bot promised us to
00:22:40
display the address of the board and deceived the address is not
00:22:43
displayed So the conclusions are his own, in fact,
00:22:45
here he goes to it in
00:22:48
the browser and I can control the LED, the
00:22:50
control is inconvenient because pressing the
00:22:53
button redirects to another
00:22:55
page.
00:22:57
Let's ask the Bot to make
00:22:59
everything beautiful for us so that it works and
00:23:01
also works through Ajax, that is, pressing the
00:23:04
button will send
00:23:05
requests to the server without reloading the page, will
00:23:08
it cope? with such a task Opa, and
00:23:11
here we have already started assembling a full-fledged
00:23:13
web page and saving it in
00:23:15
flash memory And now Ajax
00:23:18
writes everything absolutely correctly, I don’t even
00:23:21
doubt that it will work and it
00:23:23
works, by the way, on a
00:23:26
smartphone [ music]
00:23:33
let's give a more complicated problem controlling an RGB
00:23:36
LED, in principle the code will be
00:23:39
almost the same page there will be a
00:23:41
choice of color then the color will need to be
00:23:43
turned into a number and fed to the LED let's
00:23:46
see how the part copes with this
00:23:48
task everything correctly it does it a
00:23:50
little hard but correctly
00:23:55
Well it doesn't work
00:23:57
[music ]
00:24:01
namely, there is no color value in the request,
00:24:03
actually the point here is that
00:24:06
the value cannot begin with a hash and a
00:24:08
web color is a string that begins
00:24:10
with a hash I decided to fix the problem in the
00:24:13
simplest way that came to
00:24:15
mind to force the value to be encoded
00:24:17
in URL incode now the value
00:24:19
is sent and on the server side it
00:24:22
will turn back into a lattice and be
00:24:23
processed correctly Well, it actually
00:24:25
works as it should The joint seems
00:24:28
small, but without the appropriate experience it won’t be
00:24:30
possible to fix it Give it to us with a
00:24:33
servo drive Let’s turn it through the browser
00:24:35
The program will again be almost the
00:24:37
same, but instead of a button
00:24:40
we will most likely have a color choice slider Yeah Boss
00:24:43
made a slider for control What a
00:24:45
great guy
00:24:46
actually works works great I'm
00:24:50
interested it turns out he's
00:24:52
completely aware of what he's writing And where he's
00:24:54
writing Let's ask him to make a
00:24:57
black background on the page Yes, he added a
00:25:00
style of
00:25:01
black Color Of course it's amazing
00:25:07
Well, let's have the last problem Give
00:25:10
us control of three servos and
00:25:13
two LEDs and everything is also beautifully
00:25:16
convenient and further down the list right at the beginning
00:25:18
I wrote which pins to connect where. What
00:25:21
a delight, after all, the fourth version of
00:25:23
cherge 5 is much more pleasant than 3.
00:25:26
I’m not showing you all my experiments yet.
00:25:27
Judging by everything He is absolutely
00:25:30
sure that he is doing everything
00:25:32
correctly and it even scares me a little
00:25:34
Well, the limit is reached, I used the
00:25:37
life hacks invented earlier and asked
00:25:39
the Bot to shorten the code, remove indents and
00:25:42
so on, but still part of
00:25:44
the program did not fit, in principle,
00:25:47
everything is clear that he I wanted to do it this way,
00:25:49
with your permission I’ll add that that is, there are
00:25:51
only a couple of lines left to connect
00:25:53
all the hardware. I didn’t, and so everything is clear. And in
00:25:55
short, it works. I think you already
00:25:58
understand that you can experiment with
00:25:59
components in different combinations
00:26:01
almost endlessly and this is incredibly
00:26:04
interesting, especially if you this was not
00:26:06
such an experience, to be honest, I’m shocked and
00:26:09
delighted at the same time how cool and
00:26:11
clearly the neural network works. This is no longer
00:26:13
pampering, this thing actually writes
00:26:15
working Arduino projects with a brief
00:26:17
description. If you describe to it well what you
00:26:20
need, it’s ready for you to do the project.
00:26:22
Or you can do it in pairs proposals
00:26:24
to get a ready-made project layout, which can
00:26:27
then be further modified by hand for
00:26:29
learning and experimentation, it is also a very
00:26:31
powerful tool with limitless
00:26:33
possibilities, in general, I don’t know what else to
00:26:36
add, you’ve seen it all yourself. So
00:26:38
let the ending to this video be done with
00:26:40
gpt since he’s so smart
00:26:43
[music]
00:26:51
development
00:27:21
Now that everything is connected Let's
00:27:23
check the work of our project in
00:27:25
action
00:27:26
[music]
00:27:31
and this is how you see our project
00:27:34
works successfully with the help of Chad gpt we were able to
00:27:36
do it faster and without unnecessary
00:27:38
difficulties
00:27:39
I hope that our video was useful and
00:27:42
interesting for you Now you better
00:27:43
understand the possibilities of using
00:27:45
gpt tea in Arduino development, this
00:27:48
technology opens up enormous
00:27:50
opportunities for creativity and innovation.
00:27:51
Don’t forget to subscribe to the channel,
00:27:54
like and share the video with your friends. If
00:27:56
you have suggestions for using
00:27:57
gpt in your projects, leave
00:28:00
comments, I’ll be happy to I will answer them
00:28:02
Thank you for your attention good luck to you
00:28:07
in this scenario ends for now
00:28:14
[music]

Description:

★ Космическая Tinkoff Black c бесплатным обслуживанием — https://www.tinkoff.ru/cards/debit-cards/tinkoff-black/?dco_ic=7c6df727-1ec6-11ef-8000-0000cd492596 В этом выпуске будем экспериментировать с ChatGPT и просить её программировать Arduino! ★ Arduino набор GyverKIT: https://kit.alexgyver.ru/ Примечание: IoT набора пока нет на сайте, купить можно напрямую у Giant4 ● IoT: https://giant4.ru/catalog/komplekty/gyverkit_iot/ ● IoT Pro: https://giant4.ru/catalog/komplekty/polnyy_nabor_arduino_gyverkit_pro_iot/ ★ Официальный сайт ChatGPT: https://chat.openai.com/ ★★ МОИ ПОДБОРКИ ПОЛЕЗНЫХ ТОВАРОВ С ALI ★★ ► 3D принтеры и советы https://alexgyver.ru/3d-printers/ ► Всё для электронщиков (паяльники, приспособления) https://alexgyver.ru/all-for-soldering/ ► Инструменты (шуруповёрты, дремели, ручное) https://alexgyver.ru/my_instruments/ ► Все существующие модули и сенсоры Arduino https://alexgyver.ru/arduino_shop/ ► Аккумуляторы, платы защиты https://alexgyver.ru/18650/ ★★★★★★★★★★ ARDUINO ★★★★★★★★★★ ► Обучающий набор GyverKIT https://kit.alexgyver.ru/ ► Что это такое и зачем? https://www.youtube.com/watch?v=nrczO8tWJNg ► Мои уроки по Ардуино https://alexgyver.ru/lessons/ ► Все Arduino, модули и датчики https://alexgyver.ru/arduino_shop/ Таймкоды 00:00 - Начинаем 01:11 - ChatGPT о нашем наборе 02:36 - Мигаем светодиодом 05:12 - Подводка 06:08 - Крутим сервоприводом 07:06 - RGB светодиод 09:27 - Адресная лента 15:08 - Термостат 17:22 - Дальномер 18:20 - Кодовый замок 19:41 - Часы 20:22 - Змейка на светодиодной матрице 22:11 - WiFi проекты 26:32 - Конецъ Теги: ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● ✔ Официальный сайт: https://alexgyver.ru/ ✔ Telegram: https://t.me/alexgyvershow ✔ ВКонтакте: https://vk.com/alexgyvershow ✔ Форум: https://community.alexgyver.ru/ ✔ Поддержать канал денежкой https://alexgyver.ru/support_alex/

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "🤖Я в шоке! ChatGPT пишет Arduino проекты" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "🤖Я в шоке! ChatGPT пишет Arduino проекты" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "🤖Я в шоке! ChatGPT пишет Arduino проекты" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "🤖Я в шоке! ChatGPT пишет Arduino проекты" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "🤖Я в шоке! ChatGPT пишет Arduino проекты"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "🤖Я в шоке! ChatGPT пишет Arduino проекты"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.