Friday, February 19, 2016

TWITTER MENTION CATCHER

I had originally started off with a Morse code translator for my LED project. However, after some thought I decided to change my project to listen for twitter mentions and blink the LED accordingly. The raspberry pi monitors my Twitter account, and if anyone sends a tweet containing my Twitter username, the pi will blink the LED as well as display the message in the python shell.

The following link was my guide and starting point for this project:

https://learn.sparkfun.com/tutorials/raspberry-pi-twitter-monitor

When coding this project, I ran into a few problems. I was getting errors from python because I did not update and install the twitter packages to python correctly. It had appeared that everything was installed correctly at first but after doing some research I realized that Python 3, which I was coding in, required separate commands to install the packages. The other problem I ran into had to do with a print statement. It was a very simple solution when I finally figured out that Python 3 used parentheses after the print command while they are not present in python 2.

Below is my final updated code:

Sunday, February 14, 2016

PYTHON CODE ISSUES

https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/robot/morse_code/

Using the above link a a guide I was able to write a python program that uses all 6 of my LEDs from the light show in order to translate Morse code as flashes. The only problem I ran into was figuring out how to code the program to take user input for the translation. As of now the program will only translate a pre-defined string.

This is a video of my name "Tyler" in morse code:



 LED LIGHT SHOW

I have begun documenting my project using Fritzing. I created the breadboard schematic using the software and also wrote a description of how to assemble this project as well as a description of its workings. Once I set up my raspberry pi and connected the accessories, I began experimenting with the code for the light show. I wanted to create a light show that was a bit more complicated than the very first one I created, while still using the same 6 LEDs.

This is a video of the second light show I created:


This is a portion of my source code:


Sunday, February 7, 2016

LED LIGHT SHOW

In my LED project, I was required to set up an LED light show using the raspberry pi and python coding. I used the following chart as a reference when wiring my LEDs:



I started with one LED on a breadboard connected to the pi and tested several on/off commands in the console. Afterwards I added more LEDs and lit them according to the instructions given to me. At first I had a little bit of trouble figuring out how to code four LEDs to blink simultaneously, however, I eventually figured out that the solution to the problem was much more simple than I originally thought. Once I figured this out I was able to use what I learned in order to create my light show using six LEDs.

This project consists of:
- 6 LED lights
- 6 220 ohm resistors
- jumper cables
- breadboard (w/ T-cobbler)
- raspberry pi

Steps to build:
1. Use jumper cable or T-cobbler to connect the GPIO pins of the raspberry pi to the breadboard
2. Insert 6 LED's in a row on the breadboard, with the short leg going to ground and the long leg to a resistor
3. Wire the other ends of the resistors to GPIO 18, 23, 24, 25, 19, and 22.


This is a video of a very basic light show:



These are pictures of my LED/breadboard setup:



Monday, February 1, 2016

BEGINNING

I received my raspberry pi after ordering it from amazon.com where it took a little less than a week to arrive, and I was able to connect all of the accessories as well as power on and update the pi. I experimented with console commands learned in class and also explored the various menus and settings of the raspberry pi. After setting up the pi, I brought it to class where we experimented with turning on an off an LED light using console commands. My next step will be to create a simple sequence of LED lights that turn on and off using a circuit.