Introduction to myRIO

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I would like to give a detailed discussion on Introduction to myRIO. myRIO is basically a sort of micro controller introduced by National Instrument (NI), that is why it is sometimes known as NI myRIO. First of all I would like to tell you a bit about this device then we will move further. After listening its name i.e. myRIO, the first question comes in mind that what is this RIO. So, RIO is basically abbreviated from Re-configurable Input/Output. myRIO is a portable device and students can easily use it for the design and control of robots and may other systems quite efficiently. It operates on the frequency 667 MHz. myRIO has dual core ARM cortex A9 programmable processor. It has a Xilinx Field Programmable Gate Array (FPGA). FPGA support in myRIO helps the students to design real life developing systems and to solve real problems quite faster as compared to the other micro controllers. Using FPGA support we can avoid the complicated syntax used in C language and in many other. We just have to create logic instead of writing the complicated code with the proper syntax. So, it has reduced the student's difficulties while designing complicated systems. It is student friendly device and is very easy to use. The processing speed of myRIO is quite higher than the standard micro controllers. So, it can be used t solve real life problems and it can be easily used in efficient systems which need a quick output response. It supports different languages e.g. C, C++ and graphical language (FPGA). The further detail about NI myyRIO will be provided later in this article.

Introduction to myRIO

myRIO is a real time embedded for evaluation. It was introduced by National Instruments. We can use it to develop the systems which require on board FPGA and microprocessor. LabVIEW is required to program it. Using this device, it is quite easy for the students to design complicated systems and to solve real life problems quite efficiently and quickly. It processing speed is almost ten times of the standard general micro-controllers and microprocessor. We can us this device in the systems where there is a need of quick responses e.g. CNC machines, two wheeled self balancing robots, robots performing different human operations. NI myRIO is shown in the figure given below.
  • If you are using myRIO for the first time, you should go through How to Configure NI myRIO on Wifi first in order to get the complete idea about its configuration using USB canle or WiFi.
1. myRIO Pins
  • myRIO has thirty four (34) pins in total, each having different functionality.
  • All of these pins are listed in the table shown in the figure below.
2. myRIO Front View
  • myRIO has two ports named as port A and port B.
  • It has a builtin WiFi shield and on board LED's.
  • The front view of the myRIO is shown in the figure given below.
3. myRIO Bottom View
  • At the bottom side of the myRIO, it has power pin, PC connection point, and USB port.
  • The bottom view of the myRIO is shown in the figure given below.
4. myRIO Side View
  • myRIO side view consists of two types of ports named as MXP A and MXP B.
  • The side view of NI myRIO is shown in the figure given below.
5. myRIO Block Diagram
  • The block diagram helps us to understand the internal structure of a device.
  • NI myRIO block diagram is shown in the figure given below.
6. myRIO Required Software
  • There are different software required for NI myRIO.
  • These software are shown in the table shown in the figure given below.
7. myRIO Optional Software
  • There are some optional software which can be used in case of myRIO.
  • Some optional software are listed in the table shown in the figure given below.
8. myRIO Supported Systems
  • myRIO has able to perform tasks on different operating systems.
  • The different operating systems are given in the table shown in the figure below.
9. myRIO Features
  • The unique features can make a device more and more popular.
  • myRIO major features are listed in the table given in the figure shown below.
In the tutorial Introduction to myRIO, I have tried my level best to provide you the entire necessary details about the basic use of NI myRIO. I have provided complete pins configurations in order to use it properly. I hope you have enjoyed the tutorial. If you have any problem you can ask us in comments anytime you want. Me and my entire team is 24/7 available to entertain you. I will share different interesting topics in my upcoming tutorials. Till my next tutorial Take care and bye :)

2 Relay Module Interfacing with Arduino

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to provide a detailed discussion on 2 Relay Module Interfacing with Arduino. First of all I would like to explain you that what is relay and how to use it and then we will move forward towards 2 relay module interfacing with Arduino. I have already controlled relay with 555 timers. 2 relay module consists of two relays. Relay is basically an electronic device or a switch which is used to open and close the circuits electronically. A relay controls an electric circuit by opening and closing contacts in another circuit. When the relay contact is normally open (NO), there will be an open connection when the relay is not energized. When the relay contact is normally closed, there will be a closed connection even when the relay is not energized. We can use relays to control the smaller currents in different electronic circuits. 2 relay module has two relays. One relay can control two AC/DC device simultaneously. That means 2 relay module can control four AC/DC devices at a time. 2 relay module is normally used to control the DC motors in different projects e.g. robotics, automation, embedded projects etc. It can control two DC motors simultaneously. Moreover, we can also use it for different applications e.g. to control DC/AC fans, AC/DC lights, AC/DC bulbs and a lot more. The further detail about 2 relay module interfacing with Arduino will be given later in this tutorial.

2 Relay Module Interfacing with Arduino

2 Relay Module is an electronic device consists of two relays as its major components. Relay is a switch which makes or loses the connection between two different circuits. A single relay is capable of controlling two AC/DC devices simultaneously. So, 2 relay module is able to control four AC/DC devices at the same time. Mostly it is used to control the DC motors. It can also be used in different projects e.g embedded projects, robotic, automation, power etc. 2 relay module is shown in the figure given below.
1. Relay Proteus Simulation
2. 2 Relay Module  Components
  • A complete list of the components used while designing 2 relay module is shown in the figure given below.
3. 2 Relay Module  Input Pins
  • 2 relay module has five (5) input pins in total, each perform different action.
  •  All of its pins are provided in the table shown in the figure below.
4. 2 Relay Module  Input Pins Description
  • We must know about the functions of each pin.
  • 2 relay board/module input pin functions are listed in the table shown in the figure below.
  • Both IN1 and IN2 comes from the micro-controller (Arduino UNO in this case).
  • IN1 pin controls the 1st relay attached on 2 relay module.
  • IN2 pin controls the 2nd relay attached on 2 relay module
5. 2 Relay Module  Output Pins
  • 2 relay module has three (3) output pins for each relay.
  • Its output pins are given in the table shown in the figure given below.
6. 2 Relay Module  Output Pins Description
  • Each output pin of 2 relay module has its own functions.
  • 2 relay module pin functions are listed in the table given in the figure shown below.
  • NO pin is normally open pin and device attached to this pin will not work if the relay is not energized.
  • COM is a common pin i.e. ground pin.
  • NC is normally closed pin and device attached to this pin will start working even if the relay is not energized.
7. 2 Relay Module  Compatibility
  • 2 relay module is compatible with different micro-controllers.
  • Some of those micro-controllers are provided in the table shown in the figure given below.
8. 2 Relay Module  Circuit Diagram
  • Circuit diagram of 2 relay module is given in the figure shown below.
9. 2 Relay Module  Interfacing with Arduino Wiring Diagrams
10. 2 Relay Module  Interfacing with Arduino Actual Diagrams
  • I have provided the complete wiring diagram for 2 relay module interfacing with Arduino.
  • Wiring diagram is shown in the figure given below.
11. 2 Relay Module  Interfacing with Arduino Source Code & Description
  • If you are new to Arduino software then you must have a look at How to write Arduino code.
  • You just need to copy and paste the source code given below in your Arduino software.
  • The complete source code for 2 relay module interfacing with Arduino is given below.
int relay1 = 6;
int relay2 = 7;  

void setup() {
  
  pinMode(relay1, OUTPUT); 
  pinMode(relay2, OUTPUT);
}

void loop() {

   digitalWrite(relay1,LOW);
   delay(1000);
 
   digitalWrite(relay1,HIGH); 
   delay(1000);
   
   digitalWrite(relay2,LOW); 
   delay(1000);
   
   digitalWrite(relay2,HIGH); 
   delay(1000);
}
  • First of all I have defined relay pins.
  • Then I have changed the mode of these pins to output.
  • After that I have turned on and off both of the relays with the delay of 1 sec or 1000 msec.
  • So, that was the brief description about the source code for 2 relay module interfacing with Arduino.
  • You can download the wiring diagram and complete Arduino source code here by clicking on the button below.

12. 2 Relay Module  Features
  • The most common features associated with 2 relay module are provided in the table shown in the figure given below.
13. 2 Relay Module  Application
  • 2 relay module applications are given in the table shown in the figure below.
In the tutorial 2 Relay Module Interfacing with Arduino, we have learnt about the components used in the design of 2 relay module. We have also learnt about the 2 relay module interfacing with Arduino. I have provided the complete Arduino source code, you can control this module using the same code. I hope you have enjoyed the tutorial. If you have any problem you can ask us in comments. Out team is 24/7 available for you. I will share different informative engineering topics in my upcoming tutorials. So, till my next tutorial, take care and bye :)

Introduction to Pixy Camera

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to give you an elaboration about Introduction to Pixy Camera. It is basically is an electronic device or sensor having fast vision. It is also known as fast vision sensor most of the time. Using this device we can teach to find objects in a very less time duration. It is an image sensor having a very powerful processor. Pixy is easy to interface with the micro-controllers e.g. Arduino. We can make different programs only to send the desired data from the device to micro-controller. In this way micro-controller can not overwhelm. Pixy camera is able to communicate with the micro-controller in several different ways e.g. serial communication, I2C protocol, digital out, analog out and SPI communication techniques. Using this type of communication between pixy camera and micro-controller we can also perform other tasks when camera is communicating with micro-controller. We can also attach multiple pixy cameras with a single micro-controller. Its normal mean of image detection is through RGB (Red Green Blue) color detection technique. Moreover, it can also detect different images using hue and saturation techniques. Light doesn't effect the image detection of this camera. Its a huge problem while doing image processing techniques. This module has an ability to find hundreds of objects simultaneously and it can remember seven different types of colors. It detects images with a very fast processing speed of 50 frames per second. It is a low cost and highly efficient device available in the market. The further detail about introduction to pixy camera will be given later in this section.

Introduction to Pixy Camera

Pixy camera is a fast vision electronic device. It can capture 50 frames per second. It can communicate with the mirco-controller using different types of communications e.g I2C protocol, SPI and serial communication. Its image detection technique is not effected by the light like all other devices. It cam remember 7 different colors simultaneously. Its a low cost device. It also uses hue & saturation technique for image detection. Pixy-camera is shown in the figure given below.
1. Pixy Camera Pins
  • It has six pins having assigned with different tasks.
  • All the pins are given in the table shown in the figure given below.
2. Pixy Camera Pinout
  • Pinout diagram tells us about the complete information of all the pins of any device.
  • Pixy-camera pinout diagram is given in the figure shown below.
3. Pixy Camera Technical Specifications
  • Technical specifications tell us about the efficiency and different tasks whether they can be performed by it or not.
  • Pixy-camera technical specifications are listed in the table shown in the figure given below.
4. Pixy Camera Features
  • Any device can become a lot popular only on the basis of its unique features.
  • Pixy-camera features are listed in the table given in the figure shown below.
5. Pixy Camera Communication Techniques
  • Pixy-camera has an ability to communicate with the micro-controller in different ways.
  • Alla the communication mediums are provided in the table shown in the figure below.
6. Pixy Camera Result Visualization
  • Its results can be visualized on an application named as Pixy Mon.
  • Pixy Mon is an applications that is able to run on computer or MAC.
  • Using this application we can visualize, that pixy-camera sees, in the form of either raw video or processed video.
  • While using pixy camera, you must know about How to Train Pixy Camera with Computer.
  • Pixy set the output port and manage colors.
  • USB cable maintains communication between pixy mon and pixy-camera.
7. Pixy Camera Problems
  • Each electronic device has its pros and cons, similarly pixy-camera has also some issues with it.
  • The two major problems associated with the pixy-camera are listed in the table shown in the figure given below.
8. Pixy Camera Applications
  • Pixy-camera has several different real life applications.
  • Some of the major applications are provided in the table shown in the figure below.
  The tutorial Introduction to Pixy Camera has provided the detailed discussion on the basics of this module. I hope this tutorial is proved to be an informative for you and you will enjoy this tutorial. You can ask us if you have any problem. I will try me best to help out you. I will share different informative topics in my upcoming tutorials. Till my upcoming tutorial, taker care and bye :)

Introduction to Laser Sensor

Hello everyone! I hope you all will be absolutely fine and having fun. Today, I am going to provide a detailed discussion on Introduction to Laser Sensor. Laser  sensor is basically an electronic device which we often use for the detection of accurate positions as well as small objects. Laser sensors transmit or radiate laser light. This laser light consists of light waves having same wave length. Due to this fact laser light travels in a parallel direction from the source emitting this light. Due to its travel in parallel direction it can be transmitted over long distances. This light is dangerous for the human beings. We must avoid by looking directly into the light. It causes serious eye damaging effect and even can make anyone blind. As we know optical fiber cables are used for the communication theses days and it uses only light to transmit data. If the communication is for shorter distance, LED will be used as a information transmitting source. If we want to communicate over long distances we must use laser because it has the light waves of same wave lengths and has a capability to be transmitted over long distances. If we use laser for the shorter distance communication, the medium will be overloaded with a lot of information and hence data will be damaged and can not be sent to the receiving end. Laser sensor has basically two wires but if it is attached on a small PCB board, then it has three pins which will be discussed later. The further information about laser sensor module will be provided later in this tutorial.

Introduction to Laser Sensor

Laser Sensor is an electronic device usually used to detect small objects. It is also used to detect the accurate positions. Laser light has light waves of same wave lengths. Due to the fact, laser light travels in a parallel direction. It is dangerous for humans because it can cause serious eye problems, if you look directly into the light when it is ON. It can cause blindness too. It can be used to transmit data over long distances, which is considered to be its major benefit. Laser sensor module is shown in the figure given below.
1. Laser Sensor Pins
  • Laser sensor has basically two pins, usually known as power pins.
  • Both of the pins are provided in the table shown in the figure below.
2. Laser Sensor Pins Description
  • We must know about the functions of all the input/output pins in order to use the device properly.
  • Laser sensor pin descriptions is given in the table provided in the figure given below.
3. Laser Sensor Working Principle
  • Laser radiated a laser beam as shown in the figure below.
  • Receiver lens concentrates the light reflected off the target, and produces an image on a light receiving element.
  • The concentrated light reflects at several different angles, when distance changes.
  • With the change in angle of the concentrated light, position of the image changes correspondingly.
  • I have provided the three visuals at different distances in the figure shown below.
  • From the three figures given below, you can easily understand the working principle of a laser sensor.
  • The laser principle for reference distance is shown in the figure below.
  • The laser principle for shorter distance is shown in the figure given below.
  • Laser principle for longer distance is shown in the figure given below.
4. Laser Sensor Ratings
  • Ratings provides us the basic and general specifications of any electronic device.
  • Laser sensor ratings are given in the table shown in the figure given below.
5. Laser Sensor Applications
  • Most of the times the electronic devices are known on the basis of their applications.
  • Laser sensor has a wide range of real life applications.
  • Some of the common applications are listed in the table shown in the figure given below.
6. Laser Sensor Advantage
  • Advantages are the parameters which can improve the efficiency of the particular device.
  • Laser Sensor advantages are shown in the table given in the figure below.
7. Laser Sensor Disadvantage
  • Like other devices laser sensor also has some serious disadvantages.
  • Few of the main and avoidable disadvantages are listed in the table shown in the figure given below.
In the tutorial Introduction to Laser Sensor, I have explained about the basic parameters associated with the laser sensors and which are important to be known before using it. I hope you have enjoyed the tutorial and hoping for your appreciation. If you have any sort of problem you can ask us in comments any time. Our team is always there to help to help you. I will share different amazing and informative topics in my upcoming tutorial. Till then take care and bye :)
Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir