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.
-
To get started clone the repo and unzip it
-
Inside the directory create a python venv
python -m venv venv
- Activate the venv
source venv/bin/activate
- Go into the django_docker dir and install the requirements.txt
cd django_docker && pip install -r requirements.txt
- Make the migrations for the django framework
python manage.py makemigrations
- Migrate accordingly
python manage.py migrate
- Create the admin user
python manage.py createsuperuser
- Test that everything works and login
python manage.py runserver
- 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.
- 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
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.
You can find the heart to use with the servo from clait's 3d model of the LoveBox
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.
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.
- Please check out the amazing repos that gave me the inspiration at first hand
- Also, thanks to clait that I borrowed from their 3d model to use the heart with my servo.
- Last but not least, check out @Bodmer's TJpeg Decoder that I used for fetching the jpeg to the Arduino esp8266