Mturk Jobs

Mturk Jobs
Mturk Jobs

Tank

Showing posts with label Microcontroller. Show all posts
Showing posts with label Microcontroller. Show all posts

Friday, September 18, 2015

Quadcopter Flight Control Board



Copyright © 2015 MicroMonitor



This is the first time to make a project that I post each step as I finish it.


The project I am working on these days is a self controlled quadcopter.


                                                  





Before, I used to build the project completely then I start posting it on my blog and on instructables.com

I am really enjoying it and feeling that posting small steps makes me more ambitious to make the next step and to finish the whole project.

In this step, I've built the Proteus simulation model for my Quadcopter board.


I really love Proteus and use it in all my embedded systems projects.

Here , I ‘ll try a new approach. I want to drive the four brushless motors using the driver IC L293D using PWM signals generated from the PIC 16F777 Microcontroller.


I ‘ve another thing I don’t know if it will work. I ‘ll try to fly the Quadcopter using 2 axis accelerometer to measure the pitch and roll angels. I’ll not use a gyroscope or an accelerometer in the 3rd ( vertical ) axis .

Here in the simulation software I intend to make an electrical simulation only ( not aerodynamic simulation )

Here I used the ADXL206 2 axis accelerometer. I have no model for it in the Proteus software , so I used a couple of potentiometers to simulate the analog output from the accelerometer to the Microcontroller Analog input pins .




 



You can check this Quadcopter with Camera from eBay from Here





You can read this post in Arabic


يمكنك قراءة هذه المقالة باللغة العربية 





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

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

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





قم بالضغط على الروابط الخاصة بالمواقع الداعمة لنا بدون إضافة أى تكلفة عليك إذا قمت بالشراء من هذه المواقع . وفى الحقيقة معظم الخدمات والمنتجات المعروضة هنا مجانية تماماً مما يعنى أنك لن تقوم بدفع أى مبالغ وفى الوقت نفسه تقوم بدعمنا وتستفيد من هذه الخدمات



هذا الرابط خاص ببرامج كيندل المملوك لموقع أمازون
برنامج كيندل مجانى تماماً ويمكنك من قراءة الآلاف من الكتب الإلكترونية ويعمل على كل الأجهزة . على أجهزة كيندل وعلى الكومبيوتر الشخصى والتالبلت بجميع أنواعه والهواتف الذكية  آيفون وأندرويد. كما أنك يمكنك القراءة على أى من هذه الأجهزة بدون تثبيت أى برامج من خلال القراءة على متصفح الإنترنت من خلال 

Kindle Cloud Reader

كما أن هناك العديد من الكتب الإلكترونية المجانية تماماً كما أن هناك الكتب المتاحة لكى تشتريها من موقع أمازون الشهير







هذه الخدمة مقدمة من موقع أمازون للإشتراك الشهرى مع عرض الإشتراك لأول شهركامل مجاناً مع إمكانية الحصول على العديد من الكتب المدفوعة مجاناً تماماً مع إمكانية إلغاء الإشتراك فى أى وقت بدون دفع أى مبالغ







خدمة أمازون برايم هى أحد الخدمات المميزة التى يقدمها موقع أمازون الشهير و التى تتيح من خلالها العديد من العروض والتخفيضات القيمة والمنتجات المميزة وخدمة الشحن المجانى والشحن فى يوم واحد عند الشراء



أيضاً هذه الخدمة مدفوعة ويمكنك تجربتها مجاناً لمدة شهر بدون دفع أى رسوم أو مبالغ إضافية مع إمكانية الإلغاء فى أى وقت

















موقع أوديبل هو أحد مواقع أمازون وهو مختص بالكتب الصوتية المسموعة بكافة أنواعها 

Audio Books

منها الكتب العلمية والروايات والكتب التاريخية والدروس والبودكاست

يمكنك الإستمتاع بهذه الفرصة الدائمة للإشتراك المجانى لمدة شهر فى هذا الموقع مع إمكانية تحميل أى كتابين مجانيين مع إمكانية الإلغاء فى أى وقت خلال هذا الشهر وبدون أى رسوم








إذا كان لديك مولود أو تتوقع مولوداً جديداً يمكنك الإشتراك المجانى فى قائمة المولود من موقع أمازون والتى يمكنك من خلالها الإطلاع على أحدث العروض والمنتجات الخاصة بالمولود مع إمكانية عمل قائمة الأمنيات وجعل هذه القائمة ظاهرة لأصدقائك  مما يمكنهم من معرفة أفضل الهدايا للمولود أو مختفية ولاتظهر إلا لك فقط




يمكنك زيارة موقعنا الجديد



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





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.
This means that you can enjoy something for free and still support our blog to keep posting useful stuff.


Amazon.com - Read eBooks using the FREE Kindle Reading App on Most Devices


This is the well-know Amazon Kindle platform. If you sign up for the free reader from Amazon to read any book, we get commission. 
There are many useful book for free on Amazon Kindle. Even you can find best sellers offered for free on Kindle format.
The best part is you can have the application on any platform. You can even read any book without installing any application by using Amazon Cloud-Reader on your browser.


Join Amazon Kindle Unlimited 30-Day Free Trial

You can join Amazon Kindle for 30 days free to have access to many paid book for free. You can cancel you subscription anytime.


Try Amazon Prime 30-Day Free Trial


The Amazon Prime is a special paid service from Amazon that offers good promotions and one-day free shipment for Amazon Shoppers. You can try this service for 30 days. You can cancel you subscription anytime.

Shop Amazon - Give the Gift of Amazon Prime


Try Audible and Get Two Free Audiobooks


Audible is the audio books website from Amazon. Many Kindle books are sold on Audible. You can try this service for free and get 2 free book. You can cancel you subscription anytime.


Shop Amazon - Create an Amazon Baby Registry

If you have a new baby borne or expecting one, you can create your free baby registry to easily save products and get offers and promotions on baby requirements.

  4. Visit our new website outatime.tech.

Thank you for visiting our blog.

Friday, January 2, 2009

Explaining PIC16F84A Flasher Program in Detail

You may have felt that the Flasher program is difficult. But this is not true.

Now, we 'll explain it step-by-step. Just remember, when I started learning Microcontroller programming, I started by understanding this program in detail and put on it my own comments to make me remember what each piece of code did.

list p=16f84
include "p16f84.inc"

; This part is necessary for the compiler to
; know the type of the PIC you are using.

org 0x00
goto start

; The word ORG tells the compiler to put the following code ( goto
; start label ) in the address 0x00 which is the reset vector of the PIC


org 0x20

start

; Again. Puts the label start at the address 0x20

bcf INTCON,7

; Clear the R7 bit in the register INTCON which disables the interrupts

movlw 0x00

; Put 0x00 in the W register

bsf STATUS,5


; Set the Bit 5 in the status register which selects Bank 1 in the RAM

movwf TRISB
; Copy the W register content into TRISB register
; [ makes PORTB output]

bcf STATUS,5
; Clear the Bit 5 in the status register which selects Bank 0 in the RAM

again


; This is a label for the repeating part of the program

movlw 0x80
movwf PORTB

; Copies 0x80 [binary 1000 0000 ] in the W register
; Copy the W register content into PORTB register

call delay

; This command calls the Delay routine.

movlw 0x00
movwf PORTB

; Copies 0x00 [binary 0000 0000 ] in the W register
; Copy the W register content into PORTB register


goto again

; This label is important to keep the program running forever

delay


; This is the label for the delay routine
; The delay consists of 3 nested loops

movlw 0x01
movwf 0x0e

; Put 0x01 in W register
; And copy it to the memory address 0x0e in RAM

loop3


; Label

movlw 0xfa

movwf 0x0d

; Put 0xfa in W register
; And copy it to the memory address 0x0d in RAM

loop2

; Label

movlw 0xfa
movwf 0x0c

; Put 0xfa in W register
; And copy it to the memory address 0x0c in RAM

loop1


; Label

decfsz 0x0c,1
; Decrease contents of memory address 0x0c by 1 ,
; then skip the next command if the result is zero


goto loop1


; goto the outer loop

decfsz 0x0d,1


; Decrease contents of memory address 0x0d by 1 ,
; then skip the next command if the result is zero

goto loop2

; goto the outer loop

decfsz 0x0e,1

; Decrease contents of memory address 0x0e by 1 ,
; then skip the next command if the result is zero

goto loop3

; goto the outer loop

return
; Retrun from the Delay routine

end

; must be put at the end of the program

;*********************************************************************

This is the end of the program. Now that you understand this basic program of LED flasher, you can understand more complex programs and tricks.






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 outatime.tech.

Thank you for visiting our blog.

Thursday, December 25, 2008

Run your first PIC16F84A program on simulator

You can start to test the PIC16F84A flasher program on the simulator.

The simulator is a program that simulates Microcontroller code execution and other electronic component behavior.

One good simulator I 've tried and I recommend is Labcenter Proteus 7.

You can install it and try the hardware components and software program and debug them for run-time errors and functioning errors. All this before building the real-world application on the board. This approach is very useful and can reduce developing time and frustration and eliminate situations such as you connect the circuit and get no action at all. You then wonder
what 's wrong. And you can get lost debugging hardware and software and don 't know where to
start from.

This introduction is to show the advantages of using the simulator before building your circuit board.

Let 's get started ..........

1- Install the simulator ( Labcenter Proteus 7 ).

2- Run the program ISIS.

3- Draw the components of the flasher application as in this screen-shot.




4- After you copy the code from the previous post into a file named Flasher.ASM, add the source

file as follows ;

- From the source menu , select Define Code Generation Tools ...

- Choose the MPASMWIN from the scroll menu as the screen-shot,





- Add the source form the source menu --- > Add/Remove Source files ...

and choose the code generation tools MPASMWIN and the source file Flasher.ASM




Now you have successfully configured the source file and code generation tools for code

compilation.

5- You can now compile the program by choosing the Source menu ---> Build All .

If every thing goes right, you should get the screen


6- You will notice that a Flaher.HEX file has been generated in the working folder.

7- Now double-click on the PIC16F84A component in your design , you get the window,




Choose the Flasher.HEX and set the Processor Clock Frequency to 4MHz.

8- Now press the play button to start debugging and running the program.



Now , you see the led flashing . Congratulations !!! The program is running.

We can start to build our first real-wold circuit....





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 outatime.tech.

Thank you for visiting our blog.

Monday, December 8, 2008

Getting Started With PIC16F84 Microcontroller Programming

Resources needed for a Quick jump-start :

For the simplicity of the learning process for the beginner, I 'll start with the most famous Microchip PIC16F84 ( which was the first uC I learned )

You need to prepare these stuff before start programming :

1- The target IC (the uC PIC 16F84A) and its Datasheet .


2- Programming circuit ( JDM programmer ) - you need to build it your self - or buy a Microchip PIC programmer.



3 - Loader program ( ICProg ) - you 'll need it if you use JDM programmer - , but if you buy a ready-made programmer , you will have the software with it.


4 - MPLab program ( to assemble ) the programs you write in Assembley .




5 - HiTec PICC ( to compile programs in C ) .






6 - Proteus 7.0 Simulator

















You can get all these stuff for FREE from the Internet.






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 outatime.tech.

Thank you for visiting our blog.

Saturday, December 6, 2008

It all started with the computer

It all started with the computer


I started with the old computer AQUARIUS at the 80 's. It had Microsoft Basic on it. I learned programming in Basic. I then got my Pentium 1 at 90's.









I learned Microsoft DOS and Windows. Then I learned C language.

I got AMD PC at year 2000 and I learned more about PC hardware.

I also knew about Microcontrollers ( Microchip PIC , Atmel , Renesas ) .

I programmed Microcontrollers in Assembly and C.

At 2006 I got Toshiba Satellite Notebook.

This year, I joined the Renesas HTS contest. I submitted my project " Multichannel Oscilloscope" and guess what , I had the forth honored mention.








http://www.renesasrulz.com/thread/2225;jsessionid=7AFAE50480BD5DF2D4D3F616A03277EA?decorator=print&displayFullThread=true




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 outatime.tech.

Thank you for visiting our blog.

Tank