Skip to content

PegorK/smahtSticker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoverImage

With the political division in the US becoming increasingly polarized and the tech industry turning just about everything "smart" and integrated with AI, I figured it was time to summon the smahtSticker! The smahtSticker is an AI powered "smart" bumper sticker designed to let you blend in to any part of town. It features a Raspberry Pi Zero paired with an ~8" LCD and GPS module to pinpoint your exact location while you're driving. With this data we turn to one of OpenAI's cutting edge AI models to accurately* predict the most likely political view of that area. The response is then used to display the appropriate bumper sticker to fit you, and your car, right in.

*Using zip codes to determine political preferences is not super accurate. There are many additional factors that should be analyzed for accurate predictions, but this is all fun.

Waow. So, what's actually happening?
The GPS module is reading your location every second. If it detects you have moved 25 feet it uses geopy to get the zipcode of where you are. If the zipcode is different than the last zipcode that was checked, it sends a predefined message to openAI to get the probable political view of that zipcode. Its response is then used to randomly pick one of the 6 bumper stickers for that political view and display it on the LCD.



Since we are asking ChatGPT what it thinks the political preferences of areas are I figured it's only appropriate to also ask for suggestions regarding the types of bumper stickers to display. Seen below, I asked it what types of stickers a conservative person would have, as well as a liberal person.

ChatGPT response to conservative bumper stickers
ChatGPT's conservative bumper sticker suggestions.
ChatGPT response to liberal bumper stickers
ChatGPT's liberal bumper sticker suggestions.
With these responses I put together 6 bumper stickers for each view. Below is a GIF of them all.
Box housing the Raspberry Pi Zero & GPS Module
All of the current bumper stickers


Box housing the Raspberry Pi Zero & GPS Module
3D Printed box housing the Raspberry Pi Zero & GPS Module. its AI

smahtSticker stuck on my VW Bus. :)
smahtSticker stuck on VW Bus.

did I mention it has AI?
Huge disclaimer: I don't actually drive around with this thing. It's mainly a joke on tech and politics!

Parts

Instructions

  1. Configure Rpi to Kiosk Mode
  2. Install OpenAI & create an API key
  3. Install python-dotenv, create an .env file and slap your api key with in a variable named OPENAI_API_KEY
  4. Install Openbox and configured it to run main.py on startup. Steps 3-9 here are helpful. No need for chromium.
  5. Install adafruit_gps, geopy, and feh
  6. Connect GPS module to 5V, GND, and TX & RX pins of Pi.
  7. You will need to host a hotspot off your phone that the Pi can connect to.
  8. Should be ready to go! Reboot.

Contact

devPegor@gmail.com