The encoder consists of 4 data pins whose data can be sent. It is the work of HT12E encoder to provide data to the transmitter. The Transmitter consist of one data pin, one antenna, one ground and power. The transmitter circuit consist of two parts: the Transmitter RF and the Encoder HT12E. Now to understand how to implement RF module in our project, let's work on the transmitter and receiver circuits sequentially. They use Amplitude Modulation to send data, but not getting into much technicalities and keeping things simple, they will be used to transmit command to the robot, that is: move forward, backward, right or left. The RF module uses Radio waves at 433hz frequency and thus the name RF-433. The function of RF module is simple: to transmit command data from wrist Arduino Nano to the motor controlling Arduino Uno. You can run this program to see what values you get for forward, backward, left and right tilt of your palm and wrist which will be used finally for controlling the robot. Serial.begin(9600) //To print data to Serial Monitor PinMode(A2,INPUT) //z-axis is connected to A2 PinMode(A1,INPUT) //y-axis is connected to A1 PinMode(A0,INPUT) //x-axis is connected to A0 A test code to understand working of ADX元35 is as follows: void setup()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |