free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  [1] 2
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
aj1
Tue Sep 09 2008, 11:31AM
 User Offline
Registered Member #10501
Joined: Tue Sep 09 2008, 11:25AM

Posts: 9
Thanked 0 times in 0 posts
pretty much the idea i have for my senior project is to used a sensor
or something that can measure angles in degree. I need this because i
want to be able to measure and calculate the alignment of a car (camber
and caster) and determine when one need to have their alignment done.
The result or infromation will be outputted to an LCD screen.



aj
Back to top


pdi33
Tue Sep 09 2008, 11:54AM

 User Offline
Registered Member #1329
Joined: Mon Jun 04 2007, 09:28AM

Posts: 770
Thanked 185 times in 180 posts
hi aj1,
the biggest hurdle in ur project would be to decide on the tilt sensor
try googling for tilt sensors and find one which is suited for ur application. do post the datasheet of the sensor and we can suggest/guide u on the interfacing part.
good luck.


* inspired to develop,developing to inspire *
Back to top


Ajay
Wed Sep 10 2008, 11:47AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4042
Thanked 753 times in 712 posts
you can make use of accelerometer for measuring tilt. you can go for accelero sensors from Freescale or ST microelectronics.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


aj1
Thu Oct 02 2008, 08:59AM
 User Offline
Registered Member #10501
Joined: Tue Sep 09 2008, 11:25AM

Posts: 9
Thanked 0 times in 0 posts
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MMA7260QT&tab=Documentation_Tab&pspll=1&nodeId=016246fNrgVJ4CCcMPQWBq&SelectedAsset=Documentation&ProdMetaId=PID/DC/MMA7260QT&fromPSP=true&assetLockedForNavigation=true&componentId=2&leftNavCode=1&pageSize=25&Documentation=Documentation/00210KscRcb``Application%20Notes

can you see this website and tell me which is the best for my wheel alignment project. i am using HCS12 motorolla's microcontroller.

aj
Back to top


ExperimenterUK
Thu Oct 02 2008, 01:47PM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 204
Thanked 38 times in 37 posts
Camber angles are usually quite small, and need to be measured accurately.

I'd go for some kind of triangulation method where you would measure the length of
the sides of a triangle to get the angles.

Measuring distance is probably easier than angles.

Something like a digital caliper might work.
It may be worth getting a cheap one off ebay and trying to "tap" into it.





[ Edited Thu Oct 02 2008, 01:55PM ]

Learning all the time
Back to top



This post has been thanked 1 time
 Ajay 
Ajay
Thu Oct 02 2008, 03:04PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4042
Thanked 753 times in 712 posts
I agree with ExperimenterUK, and suggest you to follow his suggestion. I did not check you first post properly regarding your requirement

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


aj1
Mon Oct 06 2008, 08:31AM
 User Offline
Registered Member #10501
Joined: Tue Sep 09 2008, 11:25AM

Posts: 9
Thanked 0 times in 0 posts
what device should i use for measure the triangle length?
can i use accelerometer to measure the length?
you also suggested me digital caliper. is it possible to connect it
the HCS12 microcontroller.
help me plz...
thank you

aj
Back to top


ExperimenterUK
Mon Oct 06 2008, 11:14AM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 204
Thanked 38 times in 37 posts
aj1 wrote ...

what device should i use for measure the triangle length?
can i use accelerometer to measure the length?


I doubt an accelerometer would be accurate enough for a workshop tester,
but maybe ok for some sort of "roadside" unit.

aj1 wrote ...

you also suggested me digital caliper. is it possible to connect it
the HCS12 microcontroller.

Maybe
A digital caliper with a data port would be very expensive.
It may be possible to get inside a cheap unit and access its measuring
system.
This will mean taking it apart and soldering to whatever you find inside.

It seems to me that the mechanics of building a practical, usable measuring rig
are 90% of the project, the micro and digital readout are fairly routine.

aj1 wrote ...

what device should i use for measure the triangle length?

There are many way to measure a distance.
Some expensive, some accurate, some robust, some compact.

The one to use depends a lot on how your project works.

It's the kind of chicken and egg problem that all designers have,
and that's you













Learning all the time
Back to top


aj1
Fri Oct 31 2008, 04:45PM
 User Offline
Registered Member #10501
Joined: Tue Sep 09 2008, 11:25AM

Posts: 9
Thanked 0 times in 0 posts
i need some help with c programming language.
i wrote program that scans the keypad and it will display the pressed key on the lcd and seven segment.
how do i add two number entered using keypad.
when you enter one number it will store it and when you enter second number it will add those two number and display the numbers and sum on the Lcd screen.

i am uploading my program below.
plz help me

CODE:
#include "C:\egnu110\include\hcs12.h" //
#include "C:\egnu110\include\delay.c" //
#include "c:\egnu110\include\stdio.c" //
#include "C:\egnu110\include\lcd_util_dragon12.c" //

void disp_char(int k);  //function that displays key on the 7 segment display
void seven_seg (int x);
void lcddisplay (int x);
unsigned int k,cntChar;

int main()
{
    int i,j,cnt;
    cntChar = 0;
    while(1)
    {
        cnt=3;

        DDRA=0x0f;      //set keypad port direction register to output
        PUCR|=1;        //enable pull-up control resistors on port A
        for(i=0xf7; i<=0xfe; i=i>>1|0xf0)     //select keypad column to check for pressed keys
        {
            PTA=i;
            if(PTA < 0xf0)
            {

                switch(PTA>>4&0x0f)
                {
                    case 0x0e:
                        j=0;
                        break;
                       
                    case 0x0d:
                        j=4;
                        break;
                       
                    case 0x0b:
                        j=8;
                        break;
                       
                    case 0x07:
                        j=12;
                        break;
                }
                seven_seg (j+cnt);           //adjust key value before sending to display function
               lcddisplay (j+cnt);           //adjust key value before sending to display function

            }
            cnt-=1;                         //check next column
        }
    }
}

void seven_seg (int x)
{
    const char temp[16] = {0x06,0x5b,0x4f,0x77,0x66,0x6d,0x7d,0x7c,0x07,0x7f,0x6f,0x39,0x79,0x3f,0x71,0x5e};
   // int i,j;
    DDRB=0xff;
    DDRP=0x0f;
   PTB=temp[x];/* output corresponding degree digit */
   PTP=0x0e;   /* turn on corresponding digit display */
   delayby1ms(1);
   //PTP=0x0f;         /* turn off 7-segment display */
}
void lcddisplay (int x)
{
  const char temp[16]= {'1','2','3','A','4','5','6','B','7','8','9','C','*','0','#','D'};
  openlcd();
  cmd2lcd (0x0c);
  putc2lcd(temp [x]);
  delayby1ms(1);
}
 


[ Edited Sun Nov 02 2008, 09:17AM ]

aj
Back to top


Ajay
Sun Nov 02 2008, 09:15AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4042
Thanked 753 times in 712 posts
are you able to read keypad properly? and what is the symptoms of your current program?

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


Go to page  [1] 2  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems