Print-a-Tweet 2000 #piday #raspberrypi @Raspberry_Pi

8738487359 23Ddf037C5 H

Print-a-Tweet 2000. Nial writes –

Another great job by Sir Ben of Phenoptix Towers. He built me the original case in clear acrylic with the old style Phenoptix logo on the front access and cover panel whilst I was setting my Adafruit Mini Thermal Printer up with my Arduino Ethernet to run as a Electronic Fortune Cookie machine. It was pretty cool for a few months till everyone had played with it enough and we had gone through 3x 75ft rolls of paper printing random fortunes from a server.

I have recently been inspired Adafruit once again who brought some new life to its lovely little £40 Thermal receipt printer and created the Python Libs and files to run the Printer from the much more versatile and powerful RasPi which obviously has a far more appeal and range of uses due to being able to connect to any website, server, or database and run far more complex programs due to the almost unlimited space available compared to the measly 32KB of room the ‘Duino allowed and having it all being able to be coded in Python which is far easier to change around and cut and paste pieces.

Anyway with a bit of tweaking of their code for running a standard search f the Twitter API every 30 seconds and printing any matches to the criteria you give it, I went a little further with the API and created some custom searches and set it up so an RGB LED would be lit if a match occurred and then it prints the tweet. I have also just about got it working so depending on which search criteria it matches it displays a different color (Nothing fancy, Just Red, Green and Blue to keep it simple). It also responds to a secondary button push which also lights the RGB LED, this button is as well as the standard as set out in the Adafruit program which gives you Time & Temp printout for a tap and Safe Power Down of the Pi if you hold down for 2 seconds. Now in addition on a further momentary switch the Printer will print the last tweet from each of the 3 criteria I have set it up for depending on how long you hold the button down, each step is 2 seconds and the LED will light each of its 3 main colours for every 2 seconds its held down which match the search criteria result light colour… So hold for 2 secs and the LED Goes Red and Prints out last tweet from criteria #1 (To @RaW_Gaming) once it gets to 4 secs the LED will switch to Blue and print the 2nd criteria last tweet (From @xxxxxx) and then at 6 secs it goes to Green and prints criteria #3 which currently is (Farnell and Camera) – was keeping eye on tweets for the word as soon as Farnell put the RasPi cameras on sale, which worked well as I got the first tweet saying they were up on the Farnell site and immediately went there and pre-ordered one of the first new RasPi cameras in exactly the same way as I managed to get one of the first UK BeagleBone Blacks the week before by having the app run matches for “Farnell and BeagleBone”. After 8 Seconds the Main program kicks in and starts a safe shut down and tapping the other button still prints Weather and Time (Local).

Its a pretty cool setup!

Anyway it was starting to look a mess and I needed to hide alot of fly leads so Ben kindly once again hit the laser and cut me a new front in semi transparent Purple Acrylic (which I bought myself and had shipped to Phenptix for a project I eventually scrapped months ago and has been sitting up there with no use for ages) etched with the Twitter Logo so that its not visible and just a plain purple front when there are no notifier lights lit but the logo lights ups when the LED does with each colour and and looks pretty sweet diffused through the frosted purple!. Also replaced the two side panels with same Purple to hide the mass of wiring bundled inside the case.

Top Job!


Thermalprinter LrgId914Soldered Lrg975 Lrg
Thermal printer, cobbler and Pibow!


Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards

Join Adafruit on Mastodon

Adafruit is on Mastodon, join in! adafruit.com/mastodon

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 36,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


Maker Business — Philips, an electronics giant, has faded from its former glory

Wearables — Capture sounds

Electronics — Audio amplifier advice

Python for Microcontrollers — Python on Microcontrollers Newsletter: 100 CircuitPython Community Libraries, a New Arduino UNO and much more! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

Adafruit IoT Monthly — Boxing Glove Tracker, Disconnecting Smart Appliances, and more!

Microsoft MakeCode — MakeCode Thank You!

EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — JP’s Product Pick of the Week — 4pm Eastern TODAY! 3/28/23 @adafruit #adafruit #newproductpick

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.