An ESP32 Board from Arduino | Getting Started with Arduino Nano RP2040 Connect
Yes, this board also has built in esp chip, which most of you may not be aware about, but i will let you know everything about it in this video. So if i divide this whole video in different different topics, then first well be discussing about the specification of the board after that. Well be comparing it with the original raspberry pi picker board after that. Well see how to use this arduino nano rb 24, with the help of the arduino ide after that. Well be testing out some example. Codes and well be making different different projects out of it and, in the end ill be concluding that whether you should buy this board or not so yeah. This is the complete guide on the arduino nano rb 2040 board lets get started. This video is sponsored by ltm, which is a pcb designer software. Company ldm has all the tools that you need to design a professional pcb with high productivity and well. It is widely used in big electronic companies like texas instruments, siemens cigarette and many more for their pcb designs. It has advanced routing, features, real time, cost estimations and also you can design your own flexible pcbs using the software. So this is an all in one professional pcb designing software for all your needs, so go ahead. Try your hands on with this software. A free trial version is waiting for you. Now, click on the link mentioned in the description to get a free trial of lcam designer software.
So this is how you receive this board in the lovely arduino colored theme box, with some basic specifications mentioned on the back, and also we have this hologram sticker on the side, which reveals its authenticity. Now, inside this box we get the board itself and paper chart that has some details about arduino company, so that was all about the unboxing part. Now lets see its specifications in detail. Now we all know that this board is based on raspberry pi rp 2040 chip, which is a 32 bit dual core arm: cortex m0 plus silicon clocked at 133 megahertz with 264 kb ram. After that, we have this nina w102 chip, which provides the wi fi and bluetooth communication for our iot projects. But when i read the data sheet of this nina w102 module, i found out that this module is based on esp32 chip. Now this was really strange and surprising strange because if arduino has to use the esp32 chip, why they went for rp 2040 chip as well like esp32 chip in itself is much better and advanced than the rp 2040 chip in major aspects. Im really not getting the game of using rp20 chip. Are you getting something coming back to the specification side now this boards input voltage is 5v, but the operating voltage of gpio is 3.3 volts. So do take care of this while making our projects on it. Now, after that, this board has an external 16 mb of flash memory, chip on it, which is connected to rp2040 via spi.
Then we have the built in 6, axis imu or inertial measurement unit for motion related projects, along with that, we have built in mems microphone for voice related projects and also a push button which acts both as a reset button and a boot select button great job. Adding on managing both the task on the single push button – hey raspberry pi, you need to learn this from arduino, so that was all about the overview and specification of this new nano board and let us directly compare it with the original pipe eco board. So this board has the same form factor as the original arduino nano board, but it is slightly smaller than the pipe eco board yet able to manage a lot of this in the small form factor now, unlike pipe pico, this board is compatible with arduino ide and Also with the arduino iot cloud for making iot projects thanks to its hidden esp data chip. Now here, pi pico loses with the flash memory size as well. Pipe equal has only 2 mb of flash memory. While this arduino nano rp 2040 board, has a 16 mb of flash memory. Now comes the last point of comparison, which is its price, so arduino nano rp 2040 port is five times expensive than the pi peaker board. Yes, the pipe eco board is available at just five dollars, while the arduino board is available at 25. If i talk the price in india, then the pi pico is available at around 400 rupees in india, while the nano board is available at around 2800 rupees.
So yeah that was all about the basic comparison between the nano board and the pipe eco board. Now lets jump on to the arduino ide and lets see how we can program this arduino board using arduino ide. So now i will guide you how to program this arduino nano rp 2040 board using arduino ide for that im using my arduino id 1.18.13 version now here you just need to go to tools into boards and now into boots manager. Now here, just type arduino, nano rp, 2040 and press enter. So here you can see arduino embed os. Nano boards option appeared here which contains all the boards, including the arduino nano rp, 20 40 as well. You just have to click on the install button. I already installed the version 2.5.2 on my computer. You just need to click on install button and it will automatically install all the related ports after that click on the close button and now youre ready to upload your first code inside the arduino nano board. Its really very simple and straightforward lets: try uploading the blink example code directly ill go to examples into basics into blink, so yeah here is our blink example. I will select the right board now, which is the arduino nano rp 2040, which is available here. Okay, select this board after that. Just select the right port, which is already selected here in my case, and click on the upload button straight away. Okay, so the code is successfully uploaded on my arduino board, the orange led started blinking at an interval of one second.
That means we are successfully able to upload our first code inside this arduino nano rp 2040, but its really very simple, very straightforward arduino has made it very very easy to get started with the new boards like that quickly. So that was all about how to use it and now ill. Let you know how to you know, make different different projects on it like how to use their wi fi chip, how to use their imu chip and how to use their microphone as well. So let me take you to the examples. So here is the official documentation of arduino nano rp 2014 and before i take you to the any example code, let me thank arduino for providing this superb documentation like while going through this particular documentation. You dont even need any of the youtube video any of the tutorial video just go through this article. Go through different different pages and youll get all the details, maybe its a specification, maybe its overview, maybe its data sheet, maybe its example codes as well. So a big thumbs up and ill give a plus to superb documentation by arduino, okay. So now here in the tutorial section, they have provided different different example codes just to get started with different different things on the arduino, our nano rp 2040, for example. This article will guide you with connecting the nano rp 2040 with the arduino iot cloud. Yes, this is, you know, supported in arduino id cloud as well, come on its a board from arduino, so we can expect this okay.
So by just reading, or by going through this article, you will successfully able to connect this arduino nano board with the arduino iit clouds like it is a superb documentation. Okay, so still i will let you know uh how to use these articles or how to use different different codes, how to use different, different libraries to get started with all the things inside this arduino nano rb, 2040 lets start with the wi fi example. First of all, okay, let me just open up the example code called as control built in rgb led over wi fi. Let us open this example code, okay, so using this example code. Basically, we will be getting a web page in which we will be having three different buttons. Just like this one for red one for green and one for blue. So by just you know, toggling these buttons will be able to turn on and off. The led, like built in rgb, led on our arduino nano board. But here is one cache by just you know, copying this code and directly uploading it onto the arduino nano board. It wont work at all. Okay, so you need to have you need to follow one step to make it work and ill? Let you know that step as well. First of all, ill copy, this code ill go back to my arduino ide, open up a new example. A new blank file – and i will paste this code here, okay, so, first of all, as you can see, there are two libraries included: one is the spi library which is already uh included with your arduino ide and second, is the wi fi nina library.
Now this is the library which is essential for all the wi fi related uh functionalities, okay, and how to get this library. You just need to go to sketch into include libraries into manage libraries now here, just search for wi, fi nina and just install this particular library. In my case, i have already installed after doing that, youll be able to upload this example code. So before that, like lets, just provide the asset name and password of our wi fi router, so that this board can get connected with that router, okay, okay, so i have provided the wi fi credentials of my wi fi router. Now, let me tell you one thing: this particular board can act as a wi, fi, uh access point as well as wi fi station or both at the same time. Okay, so yeah thats. It now ill select the right board and port, which i think must already be selected. Its already selected now straight away hit the upload button. Okay, so the code is successfully uploaded. Let me just open the serial monitor ill reset this board. So, as you can see, it got connected to my wifi router and also got its own local ip address, using which you will be able to access that web page so ill copy. This and open my web browser and ill paste. This local ipad as a press, enter as you can see that web page appeared with the three buttons red, green and blue and the off button of their respective color okay.
So i click on this on button on the red one. As you can see, the red led turned on on my uh arduino nano board ill click on off. It will turn it off. Similarly, for green, i can turn on the green and turn it off again. Similarly, i can turn on the blue and turn it off again and i can turn on all the three leds uh at the same time as well. Okay, so yeah we are able to you, know: wirelessly transfer the data using the web page uh over wi fi. You can say: okay, its a local area network based code only, but similarly we can make the internet control projects as well, using this particular wi fi or we can say, arduino network okay. Similarly, we have other example codes provided by uh the arduino itself, which is related to the microphone and imu. Let me just take you to those codes as well. Okay, so, first of all let us test this reading microphone data. So using this particular code we can, you know uh turn on and off the lights we can say or led on this board, using a clap or using a using a tap or clap or anything okay, you can turn on and off that led for that they Have provided the code as well? So here is that particular code to do this ill simply copy this particular code and ill paste that code here, okay, uh now here we dont need to do any changes, because we already have the wi fi nina library installed and the pdm already installed with the Arduino itself now here one question arises that we are not using any wi fi related activity, then why we have included this wi fi nina library now thats, a very obvious question.
You should ask well its just because here we are using the rgb led of the arduino nano board and the rgb led is directly connected to the esp32 chip which is inside this. U blocks, we can say uh chip, you can say okay, so basically to access that? U blox part of the esp32 part. We need to use this wi fi nina library. Even we are not using the wi fi related networks. Okay, so as we are using, the rgb led the blue, led in this case. We have to include this library, okay, so thats. The reason here. Okay – and you can cross check this inside this schematic of this arduino n. Okay, i already cross checked that so thats. It about this code and now i will simply upload this code by confirming the right board and port. Yes, it is selected already ill click on the upload button. Okay, so it says done uploading and now we can observe the audio signals inside the serial plotter as well, for that just go inside the tools and select serial plotter. As you can see, we are getting this waveforms here. These are the audio waveforms recorded by this microphone and, if i clap here as you can see, the blue light turned on and we also got the spike inside the cl monitor if we can turn off the blue light by clapping it again. So this was a simple example code just to test the inbuilt microphone of this arduino nanobot and you can make a simple clap on and clap off led project or even you can attach a bulb here and you can turn on and off the bulb.
Based on your clap sequence, you can see okay, yes yeah. That was all about the microphone later example code and similarly, we have the imu related example code, which i will open uh in this particular web page here is that imu machine learning code features so now here in this article, they have provided the example code. Just to test out the imu and they will be printing, whether this board is stationary or whether the activity is biking, walking and jogging. So this all will be predicted using that imu chip here. Okay. So for that i need to have the example code, which i think they should have provided. Okay, so they are saying we have to use the example code of this particular library and before that we need to install this particular library. So what ill do is simply copy the name of this particular library, okay, after copying that ill go to arduino into sketch, to include library into manage libraries here, paste that name and press enter so heres, the library ill, simply, click on the install button and click On install all as of now, okay, so the library is successfully installed ill click on the close button ill go to files into examples into the last option, called as incompatible into this particular option in and ill open. This example code. So here is that example code now here in the example code, we just need to change one single thing, which is this line? Okay, so here we have to change this line to with this and thats pretty much it now, we can upload this code and test out this project for that ill cross check again.
If the board and port is selected, it is selected already ill. Click on the upload button, because the code is successfully uploaded ill open. The serial monitor lets change the portrait to eleven five, no thats the borders is fine, i think so. Okay, so now it says activity as stationary ill. Try to move this board a little bit and lets see if the activity changes. Okay, the activity changes to jogging ill, slow it down like ill slow. My movements and lets see what we are getting. Okay, now it says: biking, okay, so like im like just trying to imitate these different different activities and as you can see, we are getting the response on the serial monitor. It came back again to stationary because i left that board onto the desk. Okay, so yeah. This particular imu example code is also working in this particular arduino, nano rp 2040, so we have successfully tested different different things and every example code is perfectly working. Similarly, you can try out different example: codes provided here inside the documentation ill leave. It link in the description, so you can definitely try it out so yeah. That was all about making different different projects on this arduino. Our nano rp 2014 board now comes to the conclusion. Now. This board is completely perfect, with all the points that you consider before. Buying a controller board like it is easy to use easy to program its a low power. It has multiple things built on it to make different different projects.
It has everything on it now. The only point which i think the people will worry before buying this board is its price point. So 25 is a serious price point for this board, but hey come on its an original arduino product and the genuine arduino products are tend to be expensive. Okay. Now here you can go for esp32 if you just want to use wi, fi and bluetooth or ble, and you can also go for pi pico if you just want to do basic projects like the offline projects. But if you want to do all of this plus you want an imu plus. If you want a microphone, then this is the all in one small form vector based board, called as arduino nano rp 2040. You could definitely go for this. Also. Let me tell you: this board is compatible with the micro python, so this is not at all lagging at any point, so long story short. This is the perfect board for your basic to advance level iit projects. I would definitely recommend it to you all ill. Also. Leave its purchase link in the description also do let me know in the comments like what kind of projects you want us to make using this nano rb 2040 connect board and well definitely try to make that product just for a lovely tech sms community to drop Your ideas do share your ideas and the idea, which is quite interesting, quite impressive, for our team.
Well, definitely try to work on that and well upload a tutorial as well so make sure you subscribe the channel if you dont want to miss out what kind of products we are going to make using this board and also stay tuned, because we do have some More genuine arduino boards coming straight from italy so well be soon making this kind of detailed. You know review and introduction or getting started videos on that particular port. So do subscribe.