0:14
everyone welcome to controllers tech
0:18
today we will cover one very interesting
0:22
which was recently launched by raspberry
0:26
yes i am talking about raspberry pi pico
0:30
it's a basic microcontroller compared to
0:32
other devices owned by raspberry pi
0:35
and today we will see how to get started
0:38
if the things go well i will continue
0:42
starting with basic peripherals and
0:44
later moving on to the advanced level
0:46
possibly artificial intelligence
0:50
i can't promise this but i will try my
0:54
anyway let's start with the basic setup
0:58
first of all we need to download the
1:02
go to the official site and download
1:05
according to your operating system
1:14
installation is usual like any other
1:23
by the time it installs let's see some
1:25
things that we can use in micro python
1:29
just search for micro python cheat sheet
1:44
this is not showing proper results let
1:46
me search it with google
1:55
yes here you see we have quick reference
2:01
we are going to use this for a while
2:04
here some of these modules are specific
2:08
but we can use the general ones
2:13
like for delay and timing timers gpio
2:17
pwm and all these other modules
2:29
okay our installation is finished now
2:43
here is our thunni id if you are
2:46
connecting the pico board first time
2:49
go to tools options interpreter
2:53
and select the interpreter as the
3:00
now connect your board to the computer
3:03
and do that while the boot select key is
3:08
as you can see a new storage device got
3:15
install firmware if the device is
3:19
you will get the device information here
3:22
click install and wait for the
3:24
installation to finish
3:26
the firmware has been installed and now
3:29
the device is ready to be programmed
3:37
i just want to show one more thing
3:40
if we connect the board simply now
3:43
without pressing the boot select key
3:45
it will be connected in programming mode
3:47
and not in the storage mode
3:50
so we simply plug the board
3:56
you can see the led is blinking that
3:58
means the old code is running
4:01
if we press stop here it will be stopped
4:05
new code into it let's start writing our
4:09
now first of all we will import the pin
4:14
or you can say machine dot pin so that
4:17
we can work with the led
4:20
next we will import time so that we can
4:24
let's configure the led pin now
4:28
here 25 is the led pin and we are
4:35
as you can see here pin 25 is connected
4:47
now we will write a while loop where the
4:50
a-d can blink forever
4:53
toggle the led and sleep for one second
5:00
that's all now click save to save this
5:05
it will prompt where you want to save it
5:08
you can save in computer also but i am
5:11
choosing to save in pico
5:13
this is my old file present here i can
5:18
make sure the name is main dot py
5:22
let's run it now seems like the format
5:27
let me just correct it click save again
5:35
so as you can see the led is blinking
5:40
now let's change the sleep time to 500
5:47
yes we have to stop the execution before
5:50
loading the code again
5:56
now the blinking is every 500
6:00
instead of toggle we can also perform on
6:30
as expected the led is on for 500
6:33
milliseconds and off for one second
6:37
just for debugging purpose we can also
6:39
make it print hello world
6:48
as you can see it's printing it on the
6:50
console every 1.5 milliseconds
6:57
this is it for this video i will
7:02
and like i said in the beginning first i
7:04
will cover some peripherals
7:06
and then try some advanced things
7:09
you can use cheat sheet if you are new
7:12
as i am doing the same you can download
7:16
the code from the link in the
7:19
keep watching and have a nice day ahead