Coder Social home page Coder Social logo

pegork / smahtsticker Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 5.73 MB

An AI-enabled, state-of-the-art SMART bumper sticker. The future is now.

License: MIT License

Python 100.00%
adafruit ai chatgpt-api geopy gps openai politics python raspberry-pi smart

smahtsticker's Introduction

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

[email protected]

smahtsticker's People

Contributors

pegork avatar

Stargazers

Matt Zarzecki avatar Prashant Wosti avatar  avatar matqua avatar muGGs avatar

Watchers

 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.