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

Posts: 12
Thanked 0 times in 0 posts
Firstly id like to say i know nothing about microcontrollers etc...

so my question may sound really basic and stupid, so I'll apologise up front.

Basically i want to make a circuit that will count down from 100 to 0. When it gets to 0 I want some part of the circuit to go 'open' until it is reset. Also I was hoping to have the LCD display being able to be connected remotely (as in I can have several 'counter' units and 1 display unit that can be connected to any counter unit telling me the position of the count).

I understand this should be quite simple for a MICRO I just need to know how to do it and from the very beinging, including the control circuit and the software etc. I do have a PIC programmer and someone who knows how to; at my disposal.

Hopefully there is someone out there in 'forum land' who would be willing to help me I am happy to reimburse people for their time and effort.

Regards,

Stu

Back to top


Arun Kumar V
Sat Jun 21 2008, 07:08PM

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

Posts: 427
Thanked 178 times in 149 posts

Hello Stu,

Welcome to our forum !

No, you don't have to pay us for our time and efforts !

Yes, your project can be implemented, from what i understand from your post you want to have a MASTER Micro with LCD connected to it and Several Slaves connected to the master.

Master selects the Slaves Randomly or in particular Sequence and reads their Counter values and displays each slaves reading on LCD.

If you are not very particular about type of Micro - you could also use 8051 like 20 pin AT89C2051 which has Serial port and would be economical than PIC that have Serial Port.

you just need a long pair of twisted wire to connect to the master and slaves.

each slave is given a unique ID to which it responds,whenever master wants data from a particular slave, it sends out the unique ID for that slave and gets the info to be displayed on lcd.

so theres the project outline, if you are with me till this point we can continue.....................


theres a Thanks button which you can use ,if this reply helped you.


Arun
Back to top



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

Posts: 12
Thanked 0 times in 0 posts
Arun,

thanks for your reply,

I am not particular at all about what I use to do it. As long as it works, lol.

I probably was not real clear in my description. what you have described is a bit more complicated than I need. All I want to be able to do is have the lcd display being able to be removed and applied to other counter units.

Basically I dont want the counter to have its own LCD display I just want to be able to connect one when I need to know what the count is up to.

It is required for several pieces of equipment that run through a process and when they have done so 100times I need to perform maintenance on them. So basically at 100 I want them to stop functioning and they will be replaced with an overhauled unit and the count reset.

Also they are all in different geographical locations so having them connected is not an option.

Hopefully this explains my project a bit better.

Again any help would be greatly appreciated.

Regards,

Stu
Back to top


Arun Kumar V
Sun Jun 22 2008, 02:21AM

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

Posts: 427
Thanked 178 times in 149 posts
Hello Stu,

your second post explains what you intend to do.

but an LCD display cannot be inserted just like a plug into a running circuit, by doing so you'd ruin the LCD.

bcoz LCD needs to be initialized first or say warmed up before usage, there are particular control signals that are to be sent to the LCD first and later the data can be displayed.

i feel what you need is a 3 digit 7 segment display module which can be inserted into a molex connector that should be provided on the circuit board of each counter.

this way only you can know/read the count by plugging in the display module.

my suggested layout is like this :








Arun
Back to top



This post has been thanked 1 time
 SVHANS 
SVHANS
Sun Jun 22 2008, 03:10AM
 User Offline
Registered Member #8546
Joined: Sat Jun 21 2008, 05:01AM

Posts: 12
Thanked 0 times in 0 posts
Arun,

This solution would be perfect, I assumed I would need some sort of circuit to go along with the LCD's rather than just plugging them in.

If it is possible to have a separate LCD circuit board that can be plugged into any counting unit it would suit my needs perfectly.

I guess I could probably get away with just 2 LCD segments if it is easier considering 99 to 00 is actually 100 increments.

Also once it has finished the cycle and requires a reset if it could display something like 'E' would be good but not essential.

Thank again for your help so far.

Stu
Back to top


sashijoseph
Sun Jun 22 2008, 06:27AM

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

Posts: 524
Thanked 124 times in 117 posts
The lcd unit can be done with an additional micro to handle the lcd.A serial link between the two would facilitate fetching counter data from the main micro.

In the tutorial section we have some nice writeups for interfacing the 8051 with lcd's,serial communication and lots more.There are 'skeletal' codes too which you may adapt for your needs (& if you're feeling lazy).

In the hardware part you must connect the counter trigger-source to an 'external interrupt' pin of the micro after proper conditioning.
The other micro would interface to the lcd and a serial link will run between the two.

Could you plz describe what will trigger the counter and what appliance you need to switch on/off?

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



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

Posts: 12
Thanked 0 times in 0 posts
Arun,

I have re-read your posts and realise i have been using the term 'LCD' but meaning a 7 segment LED display. There is no need for an LCD and it would just over complicate things. Sorry for the confusion.

I think something like what you suggested in your first post would be good, I just dont need them connected all the time. So I may not need the complexity of having separate ID's etc.



Back to top


Arun Kumar V
Sun Jun 22 2008, 06:34PM

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

Posts: 427
Thanked 178 times in 149 posts
Hello Stu,

here's what an LCD display with Molex connector looks like:





and here's a Plug-In type two digit 7 segment LED Display Module :





solution in my second post suits your needs, there can be ONE 2/3 digit 7 Segment Display module

and SEVERAL Counter circuits installed at several locations

the counter circuit board/s with microcontroller, power supply & connector would look like this:





Now can you tell me what triggers the counter : External or Internal Source

external source would include rotations of a motor/equipment, so that the counter decrements/increments on each rotation.

internal source would include timer inside the micro providing pulses - every micro second,millisecond second,minute,hour,day,year


Arun
Back to top



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

Posts: 12
Thanked 0 times in 0 posts
Arun,

I think an external trigger would be easiest to adapt to my current equipment.

Also is there any way to reduce the number of connections the 7 segment LED requires? such as giving it its own power supply and micro?

Thanks
Back to top


Arun Kumar V
Mon Jun 23 2008, 03:28AM

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

Posts: 427
Thanked 178 times in 149 posts
Hello Stu,

Yes, its possible to reduce the connections to 3 wire if you are using separate power supply and dedicated micro on the display module.

3 wires would be : Rx, Tx, Gnd

the micros would communicate with each other using serial port. there would be a button or switch on the display module which when pressed would send a particular "character" to the micro on the counter board which then responds by sending the current counter value, after receiving the counter value the display micro puts it on the 7 segment display.

stu, you haven't cleared what is it you want to count, we surely know it has something to do with equipment. micro needs some sort of input so that it can increment/decrement the count.


for eg: lets assume we want to count the number of people entering a theater, the hall has only one
door way and a laser/light source is placed at one end of the door way and a phototransistor/LDR is
placed across the other end to which a micro is connected. when ever a person crosses the door way, he interrupts the light beam and the phototransistor would give a pulse to the micro which then increments the count and displays it on LCD/7 seg LED. finally before the show begins the door way can be closed and we can know how many people have come to the show


I hope you got my point


Arun
Back to top



This post has been thanked 1 time
 SVHANS 
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