Introduction: Control Arduino With Facebook - the Easy Way
Hello Friends Today I'm gonna show you how to connect your Arduino To FACEBOOK and remotely control your Arduino From anywhere in the world through your Facebook Account. Ok this is how it Works, there's a Facebook account which is connected to Arduino through a computer.
Then we send a message to that Facebook account which the arduino is connected. That message contains an instruction which is then sent to the arduino from your computer as a Serial port message.
Then the arduino works according to that message.
Step 1: Hardware Setup
Connect Arduino to 5 Leds through 470 ohm Resistors
Digital Pins 9,10,11,12,13 Will connect to those 5 LEDs
Step 2: Coding
Upload This Code to Your Arduino
Attachments
Step 3: Connecting Arduino to Facebook
Use this Arduino + Facebook Terminal Software to connect this arduino to Facebook.
Input the username or ID of the Facebook Account which is for Arduino, next for its password. You can Find Facebook ID from "Get Facebook ID"
Third field for the other Facebook Account's ID that Sends message to this Arduino.
Next Select the COM Port of the Arduino
Keep the Baud Rate as 9600
After making sure those details are correct, Click Connect
Then The Arduino Will Connect to Facebook.
Step 4: Testing
Now we can control LEDs by Sending messages to Arduino's Facebook Account through the other Account.
Send 1
Now the first LED will turn on
Send 2
Now the Second LED will turn on
Send 3 , 4 , 5 For other LEDs too
Send 0 To turn off them all.
By following the Arduino Code, You can add more Cases for more messages to control arduino in various Ways.
Thank You , Please Comment,Share this.
9 Comments
3 years ago
When i try the above, i am getting an error as
Arduino: 1.8.9 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
Sketch uses 2446 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 184 bytes (2%) of dynamic memory, leaving 8008 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't open device "\\.\COM3": Access is denied.
avrdude: ser_drain(): read error: The handle is invalid.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
the selected serial port avrdude: stk500v2_getsync(): timeout communicating with programmer
does not exist or your board is not connected
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Please tell what will be my error?
4 years ago
Thanks
5 years ago
thanks for the great tutorial! Is there an arduino + facebook terminal software for Mac? :)
5 years ago
I NEED APPLICATION FOR ANDROID PHONE ANYONE CAN HELP ME
5 years ago
I CAN USE PHONE REPLACED PC !!!!
6 years ago
thank you brother for share this beautiful method to controll anything from far with simple input but you forget something to explain how the arduino can receive your message ?? the arduino need to connect via wifi but i see the arduino in this point need to connect to pc
6 years ago
https://drive.google.com/file/d/0B2m6VEFcOQ34M2pPR...
heres the link for the software...
6 years ago
How can we get reply from the fb account that is connected to arduino
7 years ago
Hi, this is very nice. Where do we get the Arduino + Facebook terminal software?