Hello world! I want to share with you a device I made, its name is "Yayagram", a machine that helps our beloved elders to keep communicating with their grandchildren . How? Let me open a thread to give you all the details of this contraption.
First, why Yayagram? Well, "Yaya" means "Granny" in Castillean, a warm way to refer to your grandmother. And, I use @Telegram to send and receive messages, so merge both words and you have the... #Yayagram!
The Yayagram has two features: 
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🔵" title="Blauer Kreis" aria-label="Emoji: Blauer Kreis">Send voice messages via Telegram by just pressing a button.  
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🔵" title="Blauer Kreis" aria-label="Emoji: Blauer Kreis">Receive Telegram messages and physically print them on thermal paper.
To send a new voice message you need first to choose the destination grandchild, the selection is made using a Jack connector, like the #cablegirls used to do!
And, what happens when you send a text message back to your Granny? Well, the Yayagram prints it on thermal paper so they can touch it and read it, like the old telegrams.
There are three LEDs to give the Yaya more information. One to show the Yayagram receives power, another one to show it& #39;s connected to Telegram, and the last one to show you are recording a voice message.
How is it made? A #raspberrypi 4 is the brain of the project. Everything runs on #Python and I use several third-party libraries to complete it. The rest is all analog, jack connectors, LEDs, cables, a printer, a mic, and a button.
The Python code uses three threads, one to receive messages, another to send messages, and the last one to monitor the Yayagram status that is later shown using the status led.
I created a Linux "systemctl" service that is in charge of starting the Yayagram application automatically whenever the device is started or rebooted because of an unexpected crash.
Regarding third-party libraries, this is the one I use to send and receive messages over Telegram: https://github.com/kenorb-contrib/tg

It& #39;s">https://github.com/kenorb-co... a fork that works like a champ. The main library doesn& #39;t work so well done! Help me to find the developer who wrote it!
To light up the LEDs and control the Jack connectors and the button I simply use the GPIO pins of the Raspberry pi, it has native Python support so it& #39;s a no-brainer. Here you can find more documentation about it:  https://raspberrypi.org/documentation/usage/gpio/python/README.md">https://raspberrypi.org/documenta...
The microphone is the cheapest one I could find, It has a USB connection and I use the “arecord“ CLI command, I don& #39;t use a Python lib for this component as I found it easy enough to use the CLI instead. More info about how to configure the mic here: https://pimylifeup.com/raspberrypi-microphone/">https://pimylifeup.com/raspberry...
Finally, for the thermal printer, I used the Rx and Tx pins to build a serial connection with the printer. There& #39;s a Python library from @adafruit that does the complicated stuff. More info here: https://learn.adafruit.com/networked-thermal-printer-using-cups-and-raspberry-pi/connect-and-configure-printer">https://learn.adafruit.com/networked...
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🔵" title="Blauer Kreis" aria-label="Emoji: Blauer Kreis">My Yaya suffers from hearing problems so using a Phone is usually hard. Moreover, she relies on my parents to take or make a call. Video calls are also not ideal.
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🔵" title="Blauer Kreis" aria-label="Emoji: Blauer Kreis">The Yayagram allows my Yaya to be more independent and start conversations with her grandchildren.
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🔵" title="Blauer Kreis" aria-label="Emoji: Blauer Kreis">My Yaya lives with my parents and I visit her a lot, but because of Covid-19 movement restrictions most of the family can& #39;t visit her, I believe this will help to improve communications.
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🔵" title="Blauer Kreis" aria-label="Emoji: Blauer Kreis">Do you want to know how to pronounce "Yaya"? Check this out, @offspring will help you with this masterpiece #YaYaYaYaYaGram  https://youtu.be/us8OhI-OTHg ">https://youtu.be/us8OhI-OT...
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🔵" title="Blauer Kreis" aria-label="Emoji: Blauer Kreis">I chose Telegram over Whatsapp because I don& #39;t like Facebook, Telegram is more open and easy to use.
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🔵" title="Blauer Kreis" aria-label="Emoji: Blauer Kreis">Soon I& #39;ll publish an Instructables project with all the build details so you can build one. I& #39;ll publish the source code on Github as well. Stay tuned!
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🔵" title="Blauer Kreis" aria-label="Emoji: Blauer Kreis">If you have any questions I& #39;ll be more than happy to assist. At least, I& #39;ll try to.
Here you have some photos of the Yayagram making up:
End!
You can follow @mrcatacroquer.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: