MO2 ICP3 - Abdullah-otb/IOT GitHub Wiki

**PARTS DONE - Mikaela: Wiki, Raspberry Pi, Twitter App, TwitterBot usage Dawn: Code, Wiki Abdullah: Osama:

ICP 2.3

Introduction:

The goal is as follows:

Part 1: Send tweet from raspberry pi using: a text and Image

Part 2: Should be done according to the following points:

1.Connect Arduino to raspberry using wireless module

2.Should be two-way communication

3.Send text from Arduino to raspberry pi which should be posted to twitter.

4.Send image from Arduino to raspberry and then to twitter.

Objectives:

-- Connect Raspberry Pi to the internet (failed with Pi 3B+, succeeded with new Raspberry pi 4)

-- Make Raspberry Pi work without hdmi connection for easy screenshots (connected via Widows remote desktop)

-- Download necessary additions for twython and write Code for twitterbot

-- Create new twitter development app for twitterbot

-- Post tweet with Raspberry (Text)

-- Post tweet with Raspberry (Image)

-- Connect Raspberry to Arduino

-- Post tweet with Arduino (Text)

-- Post tweet with Arduino (Image)

Methods and Workflow:

used nmap to ping the ip of the raspberry, which is needed for remote connection

successfully got raspberry to show on laptop

got the new app approved on twitter

got the python script written

ran the twitterbot for the first time to post a text tweet

modified the code to be able to post an image tweet

successfully posted an image tweet

Part 2

connected esp8266 wifi module to arduino

Evaluation and Discussion:

Most of this ICP was a success. Was unable to figure out how to connect the arduino to the raspberry in order to post a tweet. Part 1 of the ICP was completed in full.