GithubHelp home page GithubHelp logo

jalexanderbryant / ledtshirt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sphawes/ledtshirt

0.0 1.0 0.0 90.23 MB

Software for running the LED matrix T-shirt project as seen on Tom's Hardware!

C++ 0.08% Python 99.76% Shell 0.16%

ledtshirt's Introduction

T-Shirt News Ticker

Tom's Hardware <> Stephen Hawes

Demo Gif

Welcome to the software guide for the T-Shirt News Ticker! This will also serve as a repositiory for all code needed to get up and running.

Arduino

Go ahead and install the latest stable version of the Arduino IDE on your computer. Then download the git repository, and in "scrollWhenRead" find the Arduino sketch (called scrollWhenRead.ino) that interprets the data coming from the Raspberry Pi.

Next, connect your Arduino to your computer with a USB cable and upload the sketch! After uploading successfully, the Arduino will be able to interpret the signals from the Raspberry Pi and convert them into signals for the Neopixel panels.

Raspberry Pi

Grab a Raspberry Pi with built-in Wifi capabilities (or an older version and a Wifi dongle). Next, load a fresh version of Raspbian onto a micro SD card with at least 8GB of storage. The official guide for doing that is here.

Once you install your operating system and plug the SD card into the Pi, go ahead and connect a keyboard, an HDMI monitor, and power it through the Micro USB jack. When your Pi boots and you get a command line prompt, type the following commands in, hitting enter after every line and waiting to enter the next until you're given another command prompt:

git clone https://github.com/sphawes/ledTshirt.git
pip3 install feedparser
pip3 install pyserial

Awesome! Everything should now be installed! Running python3 ledTshirt/sendText/sendText.py will run the script that talks to tomshardware.com, gets the most recent titles, and sends them through a USB port to the Arduino. If you want to change what data is displayed, enter nano ledTshirt/sendText/sendText.py to make changes to the script.

Now that the script is all set to go, we need to make the Pi automatically run it on boot. We'll do this by making what's called a "service." You've already downloaded all the configurations for making this service, you just have to move them to the right place. Do this with:

cd ~/ledTshirt
sudo cp tshirt.service /etc/systemd/system/myscript.service

This might prompt you for a password; just type in "raspberry" which is the default Raspbery Pi password. Now that your configuration file is in the right place, you can start the service with the following command:

sudo systemctl start tshirt.service

Now the main script will run when you reboot your Pi! Awesome. But first we need to connect the Pi to wifi. Connecting to wifi is easier from the GUI. Start XFCE with this:

startx

Then click on the network icon in the upper right and connect. I recommend setting it up to connect to your phone's wifi hotspot so you can use the shirt on the go!

ledtshirt's People

Contributors

sphawes avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.