Introduction: IOT: IPhone Controlled Mini Fan

By Jayden Ma, Developer at Metalworks by Maxus

Be part of the Internet of Things (IOT) movement and use this tutorial to control a mini-fan over your iPhone. Who knows, you can be controlling other electronic appliances in your house after completing this Instructable!

Step 1: Materials

  1. iPhone
  2. Mac with xcode
  3. RFduino
  4. RFduino Battery Shield
  5. RFduino USB Shield
  6. Batteries
  7. Wires
  8. TIP120
  9. 2.2kOhm resistor
  10. Diode
  11. DC Motor
  12. Fan blade for DC Motor

Step 2: Circuitry

Setup the circuitry as shown in the diagram.

(If the servo is small enough, we could draw power from the RFduino instead.)

Step 3: RFduino DC Motor Code

https://github.com/nineten/RFduinoBLEDCMotor

The code itself is pretty simple. It listens to a connection via BLE and toggles the DC Motor speed based on the data it receives from that connection.

Biggest thing to note about the sample code is that it is set to output to pin 2.

Download the code and upload it onto the RFduino via the USB Shield.

Step 4: IOS App

https://github.com/nineten/RFduinoBLEControl

The iOS app connects to the RFduino via BLE and sends commands to control the fan speed.

Download the code and upload to your iPhone via xcode.

Run the App and scan for device. Ensure the RFduino is connected to the battery shield and turned on.

Connect to the device and now you can toggle the fan speed remotely!

Step 5: Test and Troubleshoot

See video demo.

Comments

author
CongD made it!(author)2015-08-30

you can using the bluetooth shield.Example :hc 05.Code

author
RajatV1 made it!(author)2015-07-29

How iPhone sends data to arduino, wifi, bluetooth, you have not mentioned it in circuit

About This Instructable

7,257views

106favorites

License:

Bio: #Innovation #Technology R&D lab of the the world's fastest-growing #media agency. #Creative makers working from a secret location in SG. #leanintochange
More by MaxusMetalworks:DIY Stereoscopic Camera for Oculus Rift VRDIY Wireless Mobile Phone Charger8 x 8 LED Pong with Arduino
Add instructable to: