Skip to content

14. Networking and communications

  • Group assignment:

Send a message between two projects

I am going to connect my board together with an Arduino UNO by using a serial bus.

Hardware connection by using a serial bus

Step 1:

Firstly, you find that this is my board. I am going to connect myboard by using a serial bus.

Step 2:

I am going to control my board. Therefore I also connect my board to my notebook computer.

Step 3:

On the other side, I have to use a client arduino UNO.

Step 4:

The audunio UNO is connected to my notebook computer.

Step 5:

In this diagram, you find that both my board and arduino UNO are well conncted by using a serial bus.

Step 6:

Also, my board and arduino UNO are connected to my notebook computer.

Therefore I could control both chips and let them to communicate to the other.

Step 7:

In the following video, you would view that my board and ardunio UNO are well conncted.

Testing for message is sent between two projects.

Step 8:

You could read that here is the message prototype and communcation between two clips.

Step 9:

Now I am going to view the code of my board first.

My chip only do two jobs.

Job 1 : When the button (pin PA3) is pressed, message "A" will be sent to arduino UNO.

Job 2 : Keep checking if message "B" sent from ardunio UNO. If it is found, LED will turn on and flashing for two times.

You may also download the arduino program ino file here.

Please click here to download the ino file

Step 10:

Also, we are going to view the program from arduino UNO.

The program keep checking message "A" is sent from my board. If it is found, the LED will turn on and flashing for two times.

Also, a message "B" will send to my board.

You may also download the arduino program ino file here.

Please click here to download the ino file

Step 11:

In the following video, you would view the testing.

It behave like as expected.

Here is my used files

Please click here to download the broad file


Last update: July 3, 2021