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

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: Project Development :: Project Help
 
<< Previous thread | Next thread >>
help regarding hw to detect the changes in analog signals using MC
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
anjel
Mon Aug 18 2008, 12:45AM
 User Offline
Registered Member #9904
Joined: Mon Aug 18 2008, 12:18AM

Posts: 4
Thanked 0 times in 0 posts
hey!!
i m working on a project titled "EOG based wheelchair direction control"
we have acquired the EOG signals.these signals are in the form of a +ve and -ve pulse when looking left and right.so my application is to turn the wheelchair in left direction on a +ve pulse and in right direction on acquiring a -ve pulse. My problem is " how does the microcontroller recognize and differentiate between +ve and -ve pulse" as we futher have to interface the respectine motors of the wheels and control its speed using controllers.We havn't studied controllers as a subject and it is all self-study that i m doing.
i have worked on 2 ideas:
1.) using a comparator to detect the +ve or the -ve pulse and give it directly as a trigger interrupt to controller and then do the programming and m confused here.
2.) using ADC to interface with microcontroller. Now here the problem arises as i don't kw the slightest to use ADC.
i have read theoritically as hw to use to use ADC bt m not clear as in my application.

CUD U PLZ HELP ME OUT!!!! AWAITING REPLIES.......

Back to top


pdi33
Mon Aug 18 2008, 06:25AM

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

Posts: 770
Thanked 185 times in 180 posts
Hi anjel,
if the input pulses are digital in nature, i.e. if the pulses attain a discrete +ve/-ve level, then u do not need a ADC for the job. The simplest way would be to give the signal to the base of a NPN transistor ( to sense the +ve signal) and a PNP transistor ( to sense the -ve pulse) and connect the output of these transistors to two ports/ interrupts of the uC.
here is a possible circuit. values of resistor depend upon the voltage level of the input.

edit:
the correction rightly pointed out by SJ has been done and posted later in this thread.

[ Edited Thu Aug 21 2008, 11:17AM ]

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



This post has been thanked 1 time
 anjel 
sashijoseph
Tue Aug 19 2008, 11:23AM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 649
Thanked 139 times in 132 posts
If the input signal is TTL,you could directly connect the +ve pulse through a 10k current limiting resistor to a port pin and the -ve pulse through the pnp inverter as suggested by Pdi above.

Let there be music........
Back to top



This post has been thanked 1 time
 anjel 
anjel
Wed Aug 20 2008, 10:15PM
 User Offline
Registered Member #9904
Joined: Mon Aug 18 2008, 12:18AM

Posts: 4
Thanked 0 times in 0 posts
Thanks for reply!!!!

We never thought of this approach!!!!
One more doubt regarding interrupts.......

which kind of interrupt to use here??

A lot many regards to u guys!!! My problem has been solved to great extent!!
Back to top


sashijoseph
Wed Aug 20 2008, 11:40PM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 649
Thanked 139 times in 132 posts
You'll have to use external interrupts(P3.2 and P3.3).Edge triggered would be better.
Use the ckt provided by Pdi(both transistors) if using interrupts.

@Pdi ... plz edit the pnp ckt and connect the output to the emiiter(it's now tied to Vcc!!)

Let there be music........
Back to top



This post has been thanked 2 times
 anjel , pdi33 
anjel
Thu Aug 21 2008, 03:19AM
 User Offline
Registered Member #9904
Joined: Mon Aug 18 2008, 12:18AM

Posts: 4
Thanked 0 times in 0 posts
one more thing ......the problem with our signals is that being a biological signal(EOG), it will have a considerable amount of noise.....so won't the transistors detect +ve of noise as input signal. Though the difference between noise +ve and signal +ve is large enough. And wt kind of transistor have we to use e.g:BC547 etc.....
Back to top


Arun Kumar V
Thu Aug 21 2008, 08:07AM

 User Offline
Registered Member #426
Joined: Sun Jan 28 2007, 11:50PM

Posts: 522
Thanked 219 times in 186 posts
Hello Anjel / Angel,


you could use an Op-Amp like LM358 to filter out the noise and provide clean output, some thing like this :








the above circuit is used to monitor heart beat, which filters out noise and feeds the micro with Heart beat pulses.



All the best !


Arun
Back to top


pdi33
Thu Aug 21 2008, 11:18AM

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

Posts: 770
Thanked 185 times in 180 posts
here is the corrected ckt.




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


 

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