Arduino Wireless Basics Setup and Programm

 Dear friends welcome back! This is Nick fromeduc8s.tv and today we are going to see how we can establish a simple communication linkfor our Arduino projects with these low cost 433Mhz wireless modules. Without any furtherdelay, let’s get started! In this video we are going to build a simpleproject just to demonstrate how easy it is to add wireless capability to our ArduinoProjects with these 433Mhz modules. I have two Arduinos here. This one is sending thetemperature and the humidity it measures every two seconds, and the other one is receivingthe data and displaying it on the display. As you can see this one way communicationis working fine and the range is good, we can easily get around 6 meters with a smallantenna! The theoretical range that we can achieve is more than 100 meters.

Vidnis: RFID to USB (using PIC Microcontroller) Source Code ...

 You can findlinks for all the parts in the description of the video.Note: This video tutorial is prepared for Greece, where it's legal to operate low powereddevices (25mW) in the 433MHz band without a license. Check what's legal in your owncountry. These 433Mhz modules is a low cost wirelesssolution for Arduino. This module is the transmitter and this one is the receiver. We can onlyestablish a one way communication link using these two modules. The cost of both modulesis less than 2$! The kit operates at the 433MHz band and it can achieve at a data rate of4Kbits. The connection to Arduino is extremely easy. We only have to connect the DATA pinof the modules to a digital pin on Arduino. But let’s see how to build this projectin detail. Let’s first build the transmitter part ofthe project. 


At first we connect the transmitter module and the DHT22 temperature and humiditysensor to a small breadboard. We connect Vcc from both modules to the breadboard’s positiverail and GND from both modules to the breadboard’s GND rail. Next we connect the data pin ofthe transmitter to digital pin 12 and the data pin of the DHT22 sensor to digital pin4. Now all we have to do is to connect the 5V output of the Arduino to the positive railof the breadboard and the GND of the Arduino to the GND of the breadboard. That’s it.The transmitter is ready.



 Let’s now build the receiver. We connectagain Vcc and GND to the breadboard and we connect that data pin of the receiver to digitalpin 12. In order to see how to connect the displaycheck out the detailed tutorial I have prepared a few weeks ago. Next we connect the breadboardVcc to Arduino 5V and the breadboard GND to Arduino GND. Now we are ready to power upboth boards! As you can see, the communication is working fine. The range we get withoutany antenna attached to the modules is a few centimeters. If we solder a small antennalike this one we get a better range, around 5-6 meters. Now let’s go to the computerto see the software side of the project. 


First of all, we have to download the VirtualWirelibrary in order to make our life easier when we work with the 433Mhz wireless modules.You can find the link for the library in the description of the video.Let’s first see the Transmitter code. It sends out a simple data structure which containstwo floats, the temperature and the humidity. In order to establish a communication linkwe have to set which pin we have connected the module to, and set the communication bitrate.


In this example I have set the bitrate to 500bps. Next, we read the temperature andthe humidity from the sensor, we save the values in the data structure and with thisline of code here, we send the data structure. It’s that easy!Let’s now see the receiver code. Again we declare the same data structure. We initializethe receiver module with the same settings as the transmitter and we wait for data. Ifthere is data available, we save that data in the data structure and then we print thatdata on the display. It’s that easy! You can find the code of the project in a linkin the description of the video. As you can see, connecting these 433Mhz moduleswith Arduino is very easy. 


It is the easiest way to add wireless capabilities to your Arduinoproject. Also, the price is extremely low. Unfortunately there is a big disadvantage.The range of these modules is not great. Without an antenna we won’t get more than a meterof range. With this antenna you are going to get some meters but only if there are noobstacles between the modules. 



With a better antenna I have read that we can achieve arange of around 100 meters. I haven’t tested it so far, but I will soon. I will post aseparate video on the antenna design and the range if I achieve to get a range of over10 meters with obstacles. I would love to hear your experiences with these modules.Have you managed to achieve a good range with these cheap modules? Please post your commentsin the comments section below. 



Thank you! If you are new to the channel you may notknow that my day is job is developing Android games and four months ago I published a newgame on Google Play Store. It is called Quiz of Knowledge and it is a quiz game that supports5 languages and it is completely free. If you like quiz games I am sure you are goingto enjoy this one. If you wish you can download it by clicking here or in a link in the descriptionof the video. 

Thanks! If this is your first time here, I would loveto have you subscribed. In this channel I post videos about DIY projects every Saturday.I love making things and I believe that anyone can make things, anyone can become a maker.That’s why I created this channel, in order to share my knowledge with the community andlearn from the community. I hope you will join us. Until next Saturday, Watch, Learn,Build! [ Translating these subtitles? Add your namehere! ]