Software for 10 ft LED matrix sign that runs Arduino Yun pulling from twitter mentions
The board on the wall now is an Arduino Yun.
- Twitter Integration uses: https://temboo.com/library/Library/Twitter/Timelines/LatestMention/
- LED board is based on: https://learn.adafruit.com/guggenhat-bluetooth-le-wearable-neopixel-marquee-scrolling-led-hat-display/code
250 API calls allowed per month for free. 730 hours in a month >> 1 call every 3 hours (10800000 ms)
- git clone
- create LEDTwitterWall/TwitterMentionsWall/TembooAccount.h with your creds
- open LEDTwitterWall/TwitterMentionsWall/TwitterMentionsWall.ino sketch in Arduino IDE
- select Tools->Board-> Arduino Yun
- select Tools->Port->Arduino Yun WiFi (the-yun-ip)
- Compile and upload
- You should be good to go!
The main project, bringing it all together - seems to be an issue with getting NeoPixel_matrix to play with Temboo, OR the Console. maybe interrupts? https://learn.adafruit.com/neopixels-and-servos/overview
The YUN DOES NOT SUPPORT SERIAL OVER WiFi, so you have to use the Bridge with Console.println instead to get output. This is an example to do just that. Start the sketch, then on a computer connected to the same network as the YUN, run ssh root@10.1.10.33 'telnet localhost 6571' where 10.1.10.33 is the ip or hostname of the YUN. Console messages will be sent here.
USB only test of the Twitter/Temboo pulling code
WiFi varient of the above, switching out Serial debug messages for Console - same ssh command as above to get it to run.
Tests just the LED Matrix with a static message.
Tests Yun REST API, used to confirm Bridge is functional(Web API->Bridge->Ardruino->Bridge->Console). Requires console connection (use ssh command from Console_Test).
Due to the inability of NeoPixel and the bridge to play well together, trying out a different LED driver library. This is a basic test that scrolls through each light.
Extension of FastLEDTest adding in the Temboo code.
Sometimes you need to reset the wifi on the YUN, here are the steps:
- Press and hold the WLAN RST button for 30 seconds
- Power cycle the Arduino
- Connect to the wireless network the arduino sets up (it'll be Arduino-xxxxxx where xxxxx is the MAC address of wifi interface of the YUN)
- Open a browser and point it to http://192.168.240.1
- Go into the advanced page and set the WAN (eth1) to be a static IP
- Apply the settings
- Goto the basic configure page and setup the WiFi to your local WiFi, once you click apply and the settings are changed, you should be able to connect to it via WiFi, if you can't, then connect an eth cable to it and use the static IP.
- Adafruit-GFX-Library-master.zip - https://github.com/adafruit/Adafruit-GFX-Library
- Adafruit_NeoMatrix-master.zip - https://github.com/adafruit/Adafruit_NeoMatrix
- Adafruit_NeoPixel-master.zip - https://github.com/adafruit/Adafruit_NeoPixel
- FastLED(NeoPixel alternate) - https://github.com/FastLED/FastLED
- Temboo - https://github.com/temboo/Temboo
- http://kiwitobes.com/2013/09/26/twitter-lights-and-memory-limits-with-arduino-yun/
- https://temboo.com/library/Library/Twitter/Timelines/LatestMention/
- https://www.arduino.cc/en/Tutorial/ConsoleRead
- https://www.arduino.cc/en/Guide/ArduinoYun
- http://stackoverflow.com/questions/20681318/arduino-yun-serial-communication-not-working
- The Yun with everything connected (green data PIN-6 wire goes to LED Matrix)
- The matrix (power and ground are all wire paralell, data line is daisy-chained(serial) from one strip to the next)
- The matrix - other end(power and ground are all common, data line is daisy-chained)
- Basic 5v power supply to run it (probably can't manage whole thing lit up at once, haven't tried as text doesn't use much)