Discussion in "8051 Discussion Forum" started by    Pogioskagia    Nov 6, 2007.
Tue Nov 06 2007, 01:39 PM
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


emai:[email protected]
Tue Nov 06 2007, 01:48 PM
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?
Tue Nov 06 2007, 01:57 PM
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
Tue Nov 06 2007, 02:14 PM
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..
Tue Nov 06 2007, 02:19 PM
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.
Tue Nov 06 2007, 02:33 PM
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..
Tue Nov 06 2007, 02:38 PM
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?
Tue Nov 06 2007, 02:41 PM
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?
Tue Nov 06 2007, 02:48 PM
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, 02:31 AM
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


Powered by e107 Forum System


Tue May 19 2020, 06:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 03:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 09:39 AM
Sir kindly send the code file i2c for 8051
Fri Mar 13 2020, 06:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 08:55 AM
how can get hadwere of this project
Sat Mar 07 2020, 12:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 11:58 AM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?
Sat Feb 01 2020, 05:12 AM
Pearl Olin
Wed Jan 22 2020, 01:16 PM
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.
Tue Jan 14 2020, 02:08 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me



Thu May 21 2020, 08:44 AM
Wed May 20 2020, 09:28 PM
Wed May 20 2020, 03:05 PM
Wed May 20 2020, 07:52 AM
Wed May 20 2020, 03:15 AM
Tue May 19 2020, 06:08 PM
Tue May 19 2020, 02:22 PM
Mon May 18 2020, 09:50 PM


Guests: 43, Members: 0 ...

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

Members: 38211
Newest member: Davidthils
Forum Activity
xrxx Avatar
Posted By xrxx
Thu Apr 30 2020, 06:59 AM
BCD MULTIPLICATIONAssume that you have to 2 BCD nu...
liqian Avatar
Posted By liqian
Tue Apr 28 2020, 05:26 AM
I happened to see your post and I got many useful ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Apr 28 2020, 04:21 AM
The code is hard to read.Please zip it and attach ...
rogermado Avatar
Posted By rogermado
Sun Apr 26 2020, 01:53 AM
@ExperimenterUK, thanks for your reply. You'll fin...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Apr 25 2020, 05:42 PM
Some simulators handle displays better than others...
rogermado Avatar
Posted By rogermado
Sat Apr 25 2020, 03:59 PM
Hello everyone, sorry in advance if i'm not in the...
PHANTOM28 Avatar
Posted By PHANTOM28
Fri Feb 28 2020, 10:25 AM
Hi.I hope you all can help me. I am relatively ne...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Feb 21 2020, 05:05 PM
ajay_bhargav Avatar
Posted By ajay_bhargav
Fri Feb 21 2020, 04:45 AM
Yes you can do that.1. Create a channel @Thingspea...
ananyagupta Avatar
Posted By ananyagupta
Thu Feb 20 2020, 03:58 AM
With regards to the particular characters sent to ...