Skip to content

A diy lovebox django docker framework with an esp8266 for the receiver with a tft screen and a servo

License

Notifications You must be signed in to change notification settings

kdani3/diy-lovebox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diy Lovebox

Hey, this project is about a diy version of the known lovebox gadget for your loved ones! It runs on a docker container running a django framework to be as portable as possible and also an esp8266 with a tft display and a servo.


Static Badge

Get Started

  1. To get started clone the repo and unzip it

  2. Inside the directory create a python venv

python -m venv venv
  1. Activate the venv
source venv/bin/activate
  1. Go into the django_docker dir and install the requirements.txt
cd django_docker && pip install -r requirements.txt
  1. Make the migrations for the django framework
python manage.py makemigrations
  1. Migrate accordingly
python manage.py migrate
  1. Create the admin user
python manage.py createsuperuser
  1. Test that everything works and login
python manage.py runserver
  1. If everything works as expected deploy the django docker, the default port I chose in the docker deploy file is 3030 you can change it to whatever you wish. I used a cloudflare tunnel on my Rock64 to make the django container accessible to the esp boards outside of my LAN. If you wish you could also use the local IP of your docker container to communicate with an esp in your LAN, but i haven't tested that yet.

Hardware

  • The TFT LCD screen I used is the 1.8-inch 128x160 with the ST7735 board that can be found here
  • The ESP8266 board can be bought here
  • Finally,the servo I used is the SG90 Micro Servo and can be found here
  • You will also need a way to power the arduino so plan accordingly

Wiring

The hardware that i mentioned above can be connected based on this schematic i have provided
Furthermore, the zip file contains the schematic, pcb design and gerber files for ordering the pcb or for the files to be tailored depending on your needs.

3D Models

You can find the heart to use with the servo from clait's 3d model of the LoveBox

TO DO

There are many things I would like to implement and improve

  • Implementing The Rest Api for improved security.
  • Maybe a GIF player?? (I'm not gonna sleep).
  • An auto update script for the esp boards that I'm not completely sure that is possible.
  • A 3D printed case for the hardware.
  • Many more that I'm going to think about down the road.

Notes

I will upload files of the working configuration once I return from my holidays. I designed the pcb while on holidays so I will order it and see if it is functional.

Code I s̶t̶o̶l̶e̶ borrowed

About

A diy lovebox django docker framework with an esp8266 for the receiver with a tft screen and a servo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published