Project Description

125

The Fan Arm controls the eagle freely and can turn On and Off the FAN. It is Controlled by joystick and the Pushbutton with Wi-Fi.The  Fan Arm can be controlled wherever we want and where the person is.

Components:

1. WIZwiki-W7500 : as MCU. It is a mbed platform

2. Two WizFi250 shields: as communication

3. Motor shield: for DC motor voltage and It needs 5V supply.

4. Joystick shield: It is totally optional. I regret to buy it.. you will know next why I did..

5. Two AX-12A: for the arm. It is the serial motor.

126

Client:

The WiFi(left one in the picture) as UDP Client with joystick & push button.

First, it connects AT.Then Get the analog and digital data from joystick and push button and send it to UDP Server.

Server:

WiFi uses the AT mode and UDP Server with Servo & DC motor.It always opens and waits for the data from Client.Right after receiving data, Servo and DC controlled with UART and PWM.

FAN ARM:

127

FAN ARM has two serial Servo motor and one DC motor.

Two servo make angle and DC turn on/off fan. (As I did before, I didn’t put a fan)

Controller can control it with WiFi and the communication protocol is UDP.

Hardwired:

128

“Controller” is UDP Client and it sends analog data from the joystick and digital data from push buttom to UDP Server.

“FAN ARM” , UDP Server, receives the data from “Controller” and control the Servo and DC motor as I want.

129

The UDP is chosen apart from the TCP.TCP has many rules to send data to the server like synchronization, acknowledgement.

But whereas the UDP Protocol is very simple to use.The client just sends packets.It doesn’t matter to check it is going to the server and can be received.

 

Demo: