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


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
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,
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
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
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.
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html
Thu Jul 11 2019, 07:44 PM
@praveen123. Can you give a link to the project ?



Wed Nov 13 2019, 06:25 AM
Mon Nov 11 2019, 01:31 PM
Sun Nov 10 2019, 04:42 AM
Sat Nov 09 2019, 03:41 PM
Fri Nov 08 2019, 10:06 AM
Fri Nov 08 2019, 07:28 AM
Tue Oct 15 2019, 04:32 PM
Tue Oct 15 2019, 02:27 AM


Guests: 44, Members: 0 ...

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

Members: 38103
Newest member: Casmir
Forum Activity
Jeanbusatta Avatar
Posted By Jeanbusatta
Sun Nov 10 2019, 04:43 AM
ty, really needed it
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Oct 22 2019, 05:18 AM
wimac Avatar
Posted By wimac
Mon Oct 21 2019, 09:18 AM
I’ve been following this thread and looking at the...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...