Week 2: Still cannot solve the most difficult problem
Our
work:
Method:
Firstly, we connected two Arduinos by linking their ‘tx’ and ‘rx’ pins. Next, we connected two ultrasonic sensors to the Arduino Nano. Next, we did some programming to transfer the distances detected by the ultrasonic sensor in the Arduino Nano to the Arduino Mega. After the transformation process was tested to be successful, we connect a pair of blue tooth sensor to the Arduino Mega and another Arduino Nano (this is different from the one we used to detect the distance). Next, we connected an ultrasonic sensor to the new Nano and did some programming. We wanted to transfer the distance detected by the new Nano to the main Mega and then compared the distances detected by these two Nanos. If the distances were very similar to each other, we can ensure that the car was followed by a right person. Although, in this week, we had solve all the transmission problems, we cannot compare the distances sent by the Arduino Nanos in the main Arduino Mega.
Results:
1. Focus on solving
the communication problems between two Arduinos
2. Solve the
problems about transfer information by blue tooth module
3. Connect the
ultrasonic sensors to the breadboard
Method:
Firstly, we connected two Arduinos by linking their ‘tx’ and ‘rx’ pins. Next, we connected two ultrasonic sensors to the Arduino Nano. Next, we did some programming to transfer the distances detected by the ultrasonic sensor in the Arduino Nano to the Arduino Mega. After the transformation process was tested to be successful, we connect a pair of blue tooth sensor to the Arduino Mega and another Arduino Nano (this is different from the one we used to detect the distance). Next, we connected an ultrasonic sensor to the new Nano and did some programming. We wanted to transfer the distance detected by the new Nano to the main Mega and then compared the distances detected by these two Nanos. If the distances were very similar to each other, we can ensure that the car was followed by a right person. Although, in this week, we had solve all the transmission problems, we cannot compare the distances sent by the Arduino Nanos in the main Arduino Mega.
Results:
Figure 1: The automatic following car in week 2
Figure 2: The codes of the
wire transmission and the wireless transmission
Problems:
1. We cannot compare
the information sent by the blue tooth and the information sent by wire
transmission. We might ask our academic advisor for help next week.
We
have almost completed the automatic follow-up function in first two weeks.
Therefore, we will add the buzzer to the car and complete all the functions of
this car next week.
Here
comes the plan for next week:
1. Realize the
automatic follow-up function of the car
2. Realize other
functions of the automatic following car
评论
发表评论