Discussion in "Project Doubts" started by    onyot    Nov 23, 2010.
Thu Dec 02 2010, 08:06 pm
#81
hi onyot, i uploaded a portable keil uvision4 in the software section and mirza has a portable proteus also.. u can use that
Thu Dec 02 2010, 11:10 pm
#82


I am here in the middle of nowhere. I don't have a freedom on this computer. Yes! I have a computer here in the office, but, with a no freedom on installing software like Proteus or even download the file that was given by sir majoka. I don't know how I can start this project... sorry that I am telling you this here, but I am so pressured now.

onyot.josephian


You are being asked to work without tools.
Explain to your bosses that you need to download certain programs,
they might not understand what you need.
Tell them the programs come from safe place and can be trusted.

As this is for the company, ask them to buy you a simple ready made keyboard
of the type shown in thread, and any other parts you need,
do you have a programmer ?

As I understand it your program is not a password program, it is data entry
so don't get too involved with making the sample Password program work.

Concentrate on using the LCD and the keyboard.

Learn how to put messages on the LCD, it is a great help with testing,
and very encouraging

Then get practise using the keyboard to get input.
You said you needed to send the data to a PC,
so next I would add an RS232 connection and practise sending simple messages.

Finally... do the coding for the process code/values input
By the time you get that far it will not be hard and we can help if needed.
Don't worry,this project is not difficult once you have learned how the parts work.

RS232 connections, LCD control and keyboards have been covered many times
in the 8051 forum, so spend time (if you have any ) reading old threads.


[ Edited Fri Dec 03 2010, 01:47 am ]
 romel_emperado like this.
Fri Dec 03 2010, 01:27 pm
#83
hi onyot..

donwload this portable tools.. u dont need to install it. just extract then run... thats it!

for new version of proteus got to this thread..
http://www.8051projects.net/forum-t42125.html

for portable keil download it here:

http://www.8051projects.net/forum-t41070.html

if your have some doubts post it here many will help u buddy..
Fri Dec 10 2010, 06:47 am
#84
hi ExperimenterUK! I just wanna ask you, do you have any idea on how to make a database? In my project, I need to make a database for my 30 groups and in every group, there are 6 number combination. For example, 112014, 121430 and so on.....

Please help me.... I don't know how to make it...no idea...
Fri Dec 10 2010, 01:19 pm
#85
hi onyot

if u want to practice database in your local server download the xampp application or pgadmin program to have your local database.. Im also learning that now because Im required to..
Fri Dec 10 2010, 07:04 pm
#86
onyot you want to establish a similar kind of database on micro?

i suggest using an eerpom for the same.
Fri Dec 10 2010, 09:39 pm
#87


hi ExperimenterUK! I just wanna ask you, do you have any idea on how to make a database? In my project, I need to make a database for my 30 groups and in every group, there are 6 number combination. For example, 112014, 121430 and so on.....

onyot.josephian


Can you describe exactly how your device is used.

I imagine you carry it round the plant and record readings from different parts,
then send all the readings to a PC, is this correct ?.

Do you just take one reading from each process ?
Sat Dec 11 2010, 06:37 am
#88



hi ExperimenterUK! I just wanna ask you, do you have any idea on how to make a database? In my project, I need to make a database for my 30 groups and in every group, there are 6 number combination. For example, 112014, 121430 and so on.....

onyot.josephian


Can you describe exactly how your device is used.

I imagine you carry it round the plant and record readings from different parts,
then send all the readings to a PC, is this correct ?.

Do you just take one reading from each process ?

ExperimenterUK




as of now, I will not make a wireless, serial cable is okay, so it means that it will be connected to a PC using a serial cable. But if it is better to make it wireless, why not.

This device will read first what product code you have entered.
Second, if the product code is on the list of the product codes that you have saved in the microcontroller
Then, it will ask you, how many of the products, with that product code.
Third, after you input the number of products, it will directly saved to the PC.

So, what should be the code for that scenario.
I learn how to use the keypad and how to interface it, as well as the lcd.
And now my problem is how to combine it with the scenario above.
Sat Dec 11 2010, 01:45 pm
#89
hi onyot.josephian
ur idea is good
for a while leave the wireless do it in end
do first with wired connection first

I learn how to use the keypad and how to interface it, as well as the lcd.


make a code that display a key that is pressed on key pad
when u do this it mean now ur able to combine the keypad and lcd then go to next step
u can use eeprom for storing ID if u want it save after power failure
 romel_emperado like this.
Sun Dec 12 2010, 03:30 am
#90


This device will read first what product code you have entered.
Second, if the product code is on the list of the product codes that you have saved in the microcontroller
Then, it will ask you, how many of the products, with that product code.

onyot.josephian



I don't know Keil 'C' so I can't give exact codes, but from what I have seen
this method should work.

//Create an array of stock codes in ROM/program memory.. 5 in this example.
//and an array of storage bytes in Ram.

long stockCodes[]={707021,345678,232345,334455,998877};
uchar stockLevels[]={0,0,0,0,0};

//Create a storage area for the keyboard entry.
char keyBuffer[7];

//Create an index for the arrays
char index=0;

long value;



In your program prompt user to enter the stock code.
As each code is entered add it to keyBuffer (don't take more than 6).

When you have six digits add a "*" to the end and call "value=atol(keyBuffer)"
passing the address of the digits just entered.

atol() will turn the string into a number. ("value")

Use a loop to compare "value" to each entry in "stockCodes"
Use "index" to track the entries.

If none match, tell user the stock code is not recognized.
If it matches, prompt the user to enter the quantity.

Read the digits as before and convert as before to get a value.
Store the number in the "stockLevels" array using "index" as the address;

Note:
stockLevels are only bytes, and atol() returns a "long" value.
The compiler may need to be told to convert a "long" to a "uchar".

If you have enough memory you can store larger values.
 romel_emperado like this.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

AntoniaRoons
Fri Apr 19 2024, 09:59 pm
carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am