Discussion in "8051 Discussion Forum" started by    Pogioskagia    Nov 7, 2007.
Wed Nov 07 2007, 12:09 am
#1
Hi there,

I found a project here called automatic plant irrigation system but the code is in assembly language and i would like to convert it into C language.Is there any tool or someone to help me make this code into C language?its only one page code.The thing is that im not very familiar with embedded electronics and im studing at uni now in my first year so you know that im struggling.

I look forward to listen from you

Many thanks

Pogioskagia

emai:[email protected]
Wed Nov 07 2007, 12:18 am
#2
no there is no tool for that..
but i can help you writing it in C.. so first tell me are you aware of programming 8051 in C? and which tool you use to for C programming of 8051?
Wed Nov 07 2007, 12:27 am
#3
hi there again

im very new in C programming so i would really appreciate it if you can help me.im gonna use the c compiler Proview 32 with the 8051 microprocessor.my level is a kind low cos im a first year student at uni and i have no previous experience.but the code should be small with different states i suppose.
If you want me to supply you with more information let me now.

Many thanks
Wed Nov 07 2007, 12:44 am
#4
i never heard of this Proview 32 can you give me any website so that i can get some information.. because when you program it also depends which tool you are using.
Also as you said you are in first year so why are you taking so hard things... make something simpler.. like chasing lights or any simple project.. as its just meant for learning process..
Wed Nov 07 2007, 12:49 am
#5
because my tutor things that we all students are like him so i have no choice.i got a web site for the c compiler proview 32 : http://www.fsinc.com/devtools/products/DS-PV32.htm
and you can download it from there if you like.
Wed Nov 07 2007, 01:03 am
#6
its not getting downloaded.. anyhow.. so now is what project he actually told you people to do.. i need to know so i can help better.. coz if he just told you to do something simple then will be easy for you too to understand things.. I guess you better consult him one more time and ask him what kind or level or project he is looking for..
Wed Nov 07 2007, 01:08 am
#7
Well he has already given that project to me and i have to work with another 2 persons cos its a group project.we have to convert that code in C language and run it in that silly C compiler proview32 and thats all.The other guys are out of order so im trying to find a solution and pass that crazy module.Is there anything else that you want from me?
Wed Nov 07 2007, 01:11 am
#8
no i guess.. that enough to understand the situation so what project he gave you? have you written any code till now? or done anything?
Wed Nov 07 2007, 01:18 am
#9
The project is listed here ----Automatic plant Irrigation (AT89C2051)
The Project presented here waters your plants regularly when you are out for vocation. The circuit comprises sensor parts built using op-amp IC LM324. Op-amp’s are configured here as a comparator. Two stiff copper wires are inserted in the soil to sense the whether the Soil is wet or dry. The Microcontroller was used to control the whole system it monitors the sensors and when more than two sensors sense the dry condition then the microcontroller will switch on the motor and it will switch off the motor when all the sensors are in wet. The microcontroller does the above job it receives the signals from the sensors, and this signals operated under the control of software which is stored in ROM.

He found the project in your web site and it seems that i found it here and i was excited when i said to my friends.But one of these guys said that its not C language and we have to convert it to C.and i asked you to help me now.this is the whole story and i have nightmares every day with that crazy project.Anyway the code and the ciruit diagram are in your web page so try to look for that name:Automatic plant Irrigation (AT89C2051
Wed Nov 07 2007, 01:01 pm
#10
Also please download the updated project from the website... the file was incorrect i just corrected it.. so please re-download it
have you gone though the assembly code? if i just explain you how the assembly code is working.. then you can convert it to C easily.. its really simple..
all you have to do is.. read the sensors and switch on the motors.. when you get dry signal from the sensors.. first you download the file again.. then i will explain you in a better way ok..

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am