Serial communication is widely used when the control system has to be actuated from the computer(PC).I will show you as how to send data from PC to 8051. In return, 8051 will acknowledge the data which we sent. So basic component required in serial communication is MAX232 IC. It is used to convert Rs232 voltage levels to TTL and vice versa. Read more here. Max232.
I have used Matlab to send data serially from PC, and used 8051 to receive the serial data and display appropriately. Simulation is done in Proteus.
I have used compim. So that matlab and proteus are connected.I have used 2 inverters in the main circuit before max232 because, MAX232 inverts the data.These inverters are very important.Otherwise you'll not be able to send the serial data and serial communication fails.
Here is the Simple Matlab code for serial communication, shown below
fprintf(s,'2') will send 2 to the 8051.. In the code I have written such that, if i send '2' from PC to 8051 serially. 8051 will receive the serial data and checks if it received correctly and acknowledges by displaying "got2" in the virtual terminal.
Set the circuit as shown in the figure. And if anyone needs project code and simulation. Let me know!
I have used Matlab to send data serially from PC, and used 8051 to receive the serial data and display appropriately. Simulation is done in Proteus.
We have used Virtual serial port emulator. Connect two ports in pair. I have connected COM2 and COM3. Edit COMPIM as COM3. Next, write a serial code which travels through COM2 in MATLAB.Since both com ports are in pair, if you write in COM2 data will get through COM2 and through rest of circuitry.
I have used compim. So that matlab and proteus are connected.I have used 2 inverters in the main circuit before max232 because, MAX232 inverts the data.These inverters are very important.Otherwise you'll not be able to send the serial data and serial communication fails.
Here is the Simple Matlab code for serial communication, shown below
fprintf(s,'2') will send 2 to the 8051.. In the code I have written such that, if i send '2' from PC to 8051 serially. 8051 will receive the serial data and checks if it received correctly and acknowledges by displaying "got2" in the virtual terminal.
Set the circuit as shown in the figure. And if anyone needs project code and simulation. Let me know!
hi. can u please e mail me the code and the schematic for the pc serial communication using matlab? mail is smandy_dan@yahoo.com ty
ReplyDeletehi. can u please e mail me the code and the schematic for the pc serial communication using matlab? mail is surdipsurdip@gmail.com ty
ReplyDeletehiee...can u plz mail me d code ...to send data from pc to 8051 using c..asap
ReplyDeletesnehmaske@gmail.com...
I have mailed codes and schematic for all of you. Happy learning!! Thanks for contacting!
ReplyDeletehi. can u please e mail me the code santione92@hotmail.com
ReplyDeletei have mailed,check out
ReplyDeleteMail asap ketroon@gmail.com plz
ReplyDeleteYes i have mailed you. Please Provide feedback if it helps you in your Project.
DeleteCan u just mail pls everything at shah.maanav.07@gmail.com
ReplyDeletecan you mail asap the whole thing at gagandeep.bawa@hotmail.com
ReplyDeleteI have mailed to both of you.Check out.See the video for better understanding!
ReplyDeleteplease mail code to me rahuldeepak@gmail.com
ReplyDeleteI have mailed you!
DeleteCan u just mail pls everything at kmsatheesha@gmail.com
ReplyDeletecheck your Mail
Deleteheee...
ReplyDeletecan u mail me code and simulation ...
mail id : vasantpatel3584@gmail.com
I have Mailed You.
Deletehi.
ReplyDeleteplz can you mail me the layout and everything else you have. my email id is baswati586@yahoo.com
heyy..can u please mail me everything related to this project including the code.my email id is nitinpurohit258@gmail.com
ReplyDeleteHassan and Nitin, check the mail.
ReplyDeletehi. can u please e mail me the code and the schematic for the pc serial communication using Proteus ? mail jaganikushal@gmail.com thnx
ReplyDeleteMailed!
ReplyDeletecan u please mail me everything related to this project including the code.my email id vajuethiopia@gmail,com
ReplyDeleteHi! A good job! Please send me files of this your project. Thank You!
ReplyDeleteMy e-mail is: zh1 at inbox.ru
Thank You for your job!
hello ! can u mail me codes for interfacing of PIR sensor to 8051 to MatLab webcam triggering ??? if you can than pls send me on hetupatel11h2@gmail.com
ReplyDeletethank you..
sir please me the code.....pranav24031993@gmail.com
ReplyDeletecan you please me the files for sachinsajjan1@gmail.com
ReplyDeletekindly mail me the code, thank you,
ReplyDeletemwasiddiqui@outlook.com
Mailed people.
ReplyDeletecan you please send me the codes and simulation file at faisal_mustafa5@yahoo.com. thankyou..
ReplyDeleteMailed.
Deleteplease mail me the matlab code on sonawane.mandar65@gmail.com
ReplyDeleteMailed. Keep Visiting!
Deleteplease mail me the codes and simutation details.
ReplyDeletecan you please mail me the code and proteus schematic
ReplyDeleteMail ID!?
Deletemohan08426@gmail.com
Deletecan you please your contact number
ReplyDeleteCan you please send me c code for this project to:
ReplyDeletes.askaruly@gmail.com
Thanks
can you please mail me the code.
ReplyDeletehellsluck@gmail.com
thankyou
can u mail e evythng related toproject ,..preetiaman.kaur703@gmail.com
ReplyDeleteplease email me simulation
ReplyDeletebilal.akbar2@gmail.com
Can you plz mail me the code to vinaysrihari93@gmail.com
ReplyDeletecan u pls mail me the code @ rks29507@gmail.com
ReplyDeleteHi, can you please mail me the code and Proteus schematic -
ReplyDeleteMy mail id-bherwani.rakhi@gmail.com
ReplyDeletesir please can u mail me proteus simulation code it is very urgent
ReplyDeletethanks a lot for video it solve my all problem
ismailbagalkote@gmail.com
Hi can you please send me the project files?
ReplyDeletemy email ID is chetansupe@gmail.com
sir please can u mail me the project files?
ReplyDeletemy email is mutazmesmar20@gmail.com
if anyone have simulation and code can u pleas mail me aumar2826@gmail.com
ReplyDelete