Discussion in "Project Doubts" started by    onyot    Nov 23, 2010.
Thu Dec 02 2010, 02:36 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, 05:40 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 Thu Dec 02 2010, 08:17 PM ]
 romel_emperado like this.
Fri Dec 03 2010, 07:57 AM
#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, 01:17 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, 07:49 AM
#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, 01:34 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, 04:09 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, 01:07 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, 08:15 AM
#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.
Sat Dec 11 2010, 10:00 PM
#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

Conversation

Thu Nov 21 2019, 12:30 PM
raj2555
how to interface 8051 microcontroller with NRF24L01+ module
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

nabiha_anaya
Sun Dec 08 2019, 09:16 AM
ananyagupta
Tue Dec 03 2019, 07:53 AM
wells
Mon Nov 25 2019, 08:25 PM
auwal
Tue Nov 19 2019, 03:13 PM
ANKITPATEL
Mon Nov 18 2019, 11:00 AM
Casmir
Wed Nov 13 2019, 06:25 AM
DeepakBGattani
Mon Nov 11 2019, 01:31 PM
Jeanbusatta
Sun Nov 10 2019, 04:42 AM

Online

Guests: 37, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38108
Newest member: nabiha_anaya
Forum Activity
nabiha_anaya Avatar
Posted By nabiha_anaya
Sun Dec 08 2019, 09:19 AM
My teacher assign me a project on "voice control h...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Nov 29 2019, 04:24 AM
" Is it possible to interface a fingerprint scanne...
ilylily07 Avatar
Posted By ilylily07
Thu Nov 28 2019, 03:50 PM
You will not find any code for an 8051 as no one w...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 05:44 PM
You will not find any code for an 8051 as no one w...
ilylily07 Avatar
Posted By ilylily07
Tue Nov 26 2019, 04:13 AM
I tracked down a OV7670 data sheet.The OV7670 puts...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 12:08 AM
I tracked down a OV7670 data sheet.The OV7670 puts...
ilylily07 Avatar
Posted By ilylily07
Mon Nov 25 2019, 04:38 PM
The 8051 has too little memory to do anything us...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 19 2019, 10:44 PM
The 8051 has too little memory to do anything us...
ilylily07 Avatar
Posted By ilylily07
Mon Nov 18 2019, 09:54 AM
0v7670 camera interfacing with stc 8051.using asse...
Jeanbusatta Avatar
Posted By Jeanbusatta
Sun Nov 10 2019, 04:43 AM
ty, really needed it