Project 3: Button and IP

The aim of the program is that when the button is pressed, it asks the user to input an IP Address. The program should ping the inputted IP and if the response is successful a green LED should turn on. If the response is not successful a red LED should turn on.

Further details are given below.

project 3.png

green button.jpg

red button.jpg

Components Implemented

  • A red wire that is connected to the 3v3 pin on the Pi is attached to the (+) side of the breadboard.
  • The black wire that is connected to the top third pin (Ground) on the Pi  and to the (-)side of the breadboard.
  • The green and yellow wires are connected to GPIO 17 and GPIO 20  and to the  (+) long leg of the yellow and red LED respectively.
  • The 330Ω resistors  are attached to the (-) short legs of the green and red LEDs and to the (-) side of the breadboard.
  • Insert button.
  • The 4.4kΩ resistor is connected from the positive rail to bottom right leg of the button.
  • Black wire from negative rail to top left leg of the button.
  • Blue wire attached to GPIO 21 and to the row of the bottom right leg of the button.

project 3 fritzing.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s