Mturk Jobs

Mturk Jobs
Mturk Jobs


Sunday, October 23, 2011

Yaw Rate Gyroscope interface to PIC16F917 ( Analog-to-Digital converter Built-in Module )

In this post we will study the ADC ( Analog-to-Digital ) Module of the Microcontroller PIC16F917 . We will study a real circuit of PIC16F917 interfacing to a semiconductor Gyroscope.

The Gyroscope is a motion sensor that senses tilt in a certain direction. The used sensor is a yaw rate sensor ( free sample from Analog Devices.

The Gyroscope ADXRS613 was sent in an evaluation package EVAL-ADXRS613). Yaw means rotation around the vertical access . And rate means the acceleration of this rotational motion.

The output from this sensor is analog signal which represents the Yaw rate in certain direction ( Left or Right ).

The analog signals are converted in the ADC module of the PIC16F917 and are represented on a LED column according to the yaw rate and direction.

The program is very simple and straight forward. It starts by configuring the ports of the Microcontroller for input and output. Then the ADC Module is also configured ( Channel , sampling rate and result data format ).

Then the infinite loop of the program starts which contains the step of

starting the conversion ,

waiting for conversion to complete and

displaying the result on the LEDs.

When the circuit moves in clock wise direction , number of LEDs in one half of LEDs column illuminate according to the rate of change in angular motion.

And When the circuit moves in counter clock wise direction , the other half of the LEDs illuminate indicating change in direction and indicating rate of change in angular motion.


This is the Gyroscope and its datasheet file . ADXRS613

This is the circuit diagram

This is a picture of the real circuit

And this is a video of the circuit in motion

This is the circuit as shown on Proteus 7 simulation environment

The Gyroscope is replaced in simulation by a variable resistance because Proteus 7 does not contain a Gyroscope model.

       Here is the article on my profile

إذا أعجبتك هذه المدونة يمكنك دعمنا بأحد هذه الطرق المجانية لاستمرار نشر مثل هذه المقالات

اترك تعليقاً لنشر وجهة نظرك بخصوص هذه المقالة

قم بشراء كتابنا على موقع أمازون أو مشاركته مع أصدقاءك من المهتمين بكتب الإلكترونيات

شكراً على زيارة مدونتنا كل يوم فكرة عربية

If you like this blog you can support us by many ways:
   1. Leave comments stating your point of view about this article.

   2. Buy our book on Amazon Learn By Making.


Thank you for visiting our blog.

Saturday, May 21, 2011

Gyro Horizon. Renesas RX62N Kit

In this post, we 'll show an advanced kit from Renesas based on a modern microcontroller RX62N.

I received this kit by participation in Renesas Design Contest 2010. The kit has various types of sensors and interfaces to the outer world that cannot be makes you wonder how to use them all in one application. For example, it contains a 3D accelerometer and a temperature sensor, USB , CAN , Ethernet and RS-232 interfaces and an alphanumeric LCD.

The contest allows each contestant participate using only one application.

I wondered what application should I design , and I decided to design an ADI after being inspired by the Embraer 170 ADI ( Attitude Direction Indication )

This is the ADI

The ADI is an important aviation instrument that helps the pilot controlling and the aircraft. It senses and indicates Pitch ( Up and Down ) and Roll ( Right and Left ) attitude of the aircraft.

The actual ADI instrument senses the attitude using sensors in the aircraft called Gyroscope. The modern types of ADI collects attitude data from an electronic device called Laser Gyro or Fiber Optic Gyro.

My version of ADI uses a built in sensor in the Renesas kit called Accelerometer.

This is the running application on the kit ( ADI appears on the LCD )

Accelerometer is an electronic MEMS sensor that senses acceleration in three dimensions.

The Accelerometer senses the acceleration in three dimensions and then the RX62N microcontroller reads the data and then draws the output indication on the LCD on the kit.

This is the kit and the application on the LCD

This is the video of the kit in action.

Here is the contest entry :

Here is the project on instructables

رابط المقالة على مدونتى باللغة العربية
This is the link to the post in Arabic

If you like this blog you can support us by many ways:
   1. Leave comments stating your point of view about this article.

   2. Buy our book on Amazon Learn By Making.

   3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
  4. Visit our new website

Thank you for visiting our blog.