Our work: 1. Build the body of the automatic following car 2. Collect some data about the communication between two Arduinos. Method: Firstly, we used a plank to simulate the ‘body’ of the carriage. Secondly, some screws and nuts were used to fix the motors to the plank. Next, we used a motor driver L293D to control the speed and the direction of the two motors at the same time. We found some information of this IC in the internet. The interpretations of each pin mode of this motor driver can be found in the figure below. The link of that web page is: https://roboindia.com/tutorials/nodemcu-motor-driver-pwm Figure 1: The pin mode of L293D After learning some basic knowledge of the L293D, we connected the output 3, 4 and GND of the L293D to the motor and the input 3, 4 and enable1/2 to the Arduino. Next, we started to program the motor. The codes can be seen in the figure below. We set the inputs and the outputs...
Our work: 1. Refine the wire length in a proper visualization 2. Add some “feedback” functions to effectively control and monitor the car. Method: Firstly, reduce the redundant wires such on the polarity. Next, to improve the integrated system, the feedback, as the significant part in a system, should be considered by adding monitor. The buzzer was chose as the output signal to inform customer that the car is out of limiting distance (50 cm) from their position. Two pins on the buzzer, one for ground and the other is for pin on Arduino, which could be activated by processor. Finally, the initial speed of car is too fast to easily test. Therefore, the PWM number was adjusted to 150 as the minimum number which could drive the motors. It is also have an interval to calculate the codes during the movement. What is more, the application of this model was re-discussed as the “auto-convey”, for example, it could be applied in factory, bank and supermarket. It will r...
评论
发表评论