Today, I tried to use program to control feeder which is connected with the Raspberry Pi, however, amazing happens.
First, I tried to connected motor to 3.3V output pin (pin 1) in Raspberry Pi, the motor rotates normally as shown in Figure 1.
Figure 1: Schematic diagram for connecting motor to pin 1
However, when I program it and change pin 1 to pin 11, the diagram is shown in follows:
Figure 2: Schematic diagram for connecting motor to pin 11
However, the motor stopped all the time, but when I change motor to LED, the light will be turned on.
So I measured the voltage of pin 11, it is 3.3V, voltage of pin 1 is also 3.3V, so I do not know why. It is amazing I am so confused. I think that there is no problem in pin 11, motor or cables. Therefore, I need to test it and find a problem. I think maybe the terminal of cable which is connected to pin 11. maybe loose or connect to other pins. I will give an answer in the future.
No comments:
Post a Comment