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
SVHANS
Mon Jun 23 2008, 06:32PM
 User Offline
Registered Member #8546
Joined: Sat Jun 21 2008, 05:01AM

Posts: 12
Thanked 0 times in 0 posts
Arun,

the easiest way would be, it has a green led on when its running and the red one on when it stops. i want it to count when the red led comes on. Hopefully thats possible.

Back to top


Arun Kumar V
Mon Jun 23 2008, 07:31PM

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

Posts: 288
Thanked 106 times in 90 posts
Perfect !

thats possible, there are two ways to interface the Red LED on the equipment to
micro:

1) using a optocoupler like PC817/4N35, if LED can be removed from its hole/socket along with its wires.

2) using an LDR, a black opaque tube with LDR at one end is fixed onto the Red LED and when the red Led glows the LDR sends a pulse.

we have enough inputs to start the project.

before we proceed further you may want to check the availability of components in your local electronics stores,

first would be the micro : Atmel's 20 pin AT89C2051,

second - suitable Programmer which can program the AT89C2051( i remember you saying you have a person who knows stuff at your disposal) ask him if At89C2051 can be programmed by his programmer..........................

once you confirm these i can proceed to write code for your task.

Arun
Back to top



This post has been thanked 1 time
 SVHANS 
SVHANS
Mon Jun 23 2008, 08:22PM
 User Offline
Registered Member #8546
Joined: Sat Jun 21 2008, 05:01AM

Posts: 12
Thanked 0 times in 0 posts
Arun,

i can easily access the LED and its wires.

I can also source the At89C2051 and our programmer is capable of progamming it.

Thanks.
Back to top


Arun Kumar V
Mon Jun 23 2008, 10:37PM

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

Posts: 288
Thanked 106 times in 90 posts

Right O, then !

i' ll give you full code and schematic in a day or two - so stay tuned ..............

and don't forget to press the Thanks button, if the replies helped you !


Arun
Back to top



This post has been thanked 1 time
 SVHANS 
SVHANS
Mon Jun 23 2008, 10:40PM
 User Offline
Registered Member #8546
Joined: Sat Jun 21 2008, 05:01AM

Posts: 12
Thanked 0 times in 0 posts
Arun,

If you can provide me with the code and schematic, there wont be enough thanks buttons!!!! LOL
Back to top


Arun Kumar V
Tue Jun 24 2008, 01:38AM

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

Posts: 288
Thanked 106 times in 90 posts
Hello Stu,

as promised, heres my Schematics for both Counter board and Display Module:












2-digit_counter.rar


i am writing the code for both the circuits, i need few inputs like :

1) when you say the RED LED glows on when the machine stops, does it stay that way till the machine is started again or it just comes on and goes off after few seconds ?

2) do you want to count down ( 99 to 00 ) or count up (00 to 99), with the count up timer (00 to 99) you have a added benefit to display "E" on 100th count.



Arun

Back to top



This post has been thanked 2 times
 SVHANS , marai 
SVHANS
Tue Jun 24 2008, 02:55AM
 User Offline
Registered Member #8546
Joined: Sat Jun 21 2008, 05:01AM

Posts: 12
Thanked 0 times in 0 posts
Arun,

the LED goes on then turns off after a while.

I'd like it to count from 99 to 0 then instead of an E maybe - - the centre LED segment on both LED displays?

thanks heaps foir your help so far!!
Back to top


Arun Kumar V
Wed Jun 25 2008, 06:40AM

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

Posts: 288
Thanked 106 times in 90 posts
Hello Stu,

after 2 days of hardwork on your project here are the pics of the project, i have tested the project on the test bench:
















since i had only one 7 seg display at the time of testing, i used a SPDT switch to flip between 1st digit and 2nd digit.

i made some abbreviations on the display like:

1) nC = not connected
2) En = End, needs to be reset.

the codes on the two micros worked well but, i am having second thoughts on the serial link .
3 wires between the two cannot be interrupted i,e if the link is pulled out and reconnected the count doesn't advance and both micros have to be reset.

after seeing this practical problem i suggest the solution in my second post with 12 pin connector or you can have display and counter on one single board and each one of these boards on each machinery.


let me know your opinion and don't worry about my time and efforts spent on this solution .


Arun
Back to top



This post has been thanked 1 time
 SVHANS 
SVHANS
Wed Jun 25 2008, 07:01PM
 User Offline
Registered Member #8546
Joined: Sat Jun 21 2008, 05:01AM

Posts: 12
Thanked 0 times in 0 posts
Arun,

That looks great, thank you very much.

Is there no way that a serial interface can be made so that it can be disconnected then reconnected?

Back to top


Arun Kumar V
Fri Jun 27 2008, 07:32AM

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

Posts: 288
Thanked 106 times in 90 posts

hi stu,

i' ll try my best to find a solution to this practical problem, there's no going back after bringing the project to this level !


Arun
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