Question

I am connecting relays at ports of microcontroller 8051. i want to operate them from website. so, i want to tx/rx their status to computer and then upload to web server.

Something like this but i have limitation to using 8051 for my school project.

I found that "Pyserial" can be used to receive data to a computer. is there any other way to do it?

i have some knowledge of c , php, javascript.

Was it helpful?

Solution

Without knowing your capabilities it is hard to answer such a general question.

If you are familiar with Python and can program the 8051, it should be relatively easy to have the 8051 receive a byte and control up to 8 outputs based on the bit values in the Byte and then have the 8051 echo the value back to the PC for output status confirmation.

I have not used Pyserial or Python but from what I have read Pyserial should be able to easily send and receive byte in this fashion.

Good Luck.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top