Skip to content

JanChodorowski/cv2

Repository files navigation

CV SERVER

This project was created as a supplement to my job application to Mirumee.
It's purpose is to deliver fully functional web server in smallest form factor possible.

The battery should provide at least 2 hours of continuous usage.

Final product

Hardware

  1. ESP8266 WiFi SoC module - ESP-01S
  2. Winbond 25Q32BVSIG 4MB Flash memory chip
  3. TP4056 Lithium Battery Charger and Protection Module
  4. 250mAh 3.7V Lithium Polymer Mini Rechargeable Battery
  5. Bistable slide switch

Because ESP-01S modules come with 1MB of Flash memory, which was insufficient, the stock memory was desoldered and Winbond chip was soldered in it's place.

Embedded Software

The software running the web server was written using Arduino in PlatformIO environment.

In order to build the software run the following command inside the terminal form the esp8266 folder:

platformio run --target upload

After building the frontend (covered later) run the following command to put the data form the "data" folder inside of the chip's filesystem.

platformio run --target uploadfs

Frontend

The frontend was written using Preact.js - fast React.js alternative with small code footprint. Because the device is battery-driven it was decided to not use any lazy loading. Upon request the user is provided with index.html which in turn requests bundle file. Because ESP SPIFFS (SPI Flash File System) accepts filenames of maximum 36 bytes, the webpack-generated hash names for font files needed to be manually shortened. All the files including bundle, and excluding index.html, were compressed using gzip.

The only files not bundled inline are the PDFs with CVs which are, because of their size, loaded only upon explicit request.

In order to build the frontend, run the following from the terminal inside the root of the document:

npm install
npm run build

Case

The case for the server was designed in Rhino3d software and 3D printed. Because of the details and microscopic model gaps, the logo was printed using DLP technology, whereas the casing was printed with FDM.

Assembly

Instructions

HOW TO USE “CV SERVER”

  1. Turn the device on by sliding the switch outwards.

Instructions

  1. Connect to “Jan Chodorowski” Access Point using either mobile device or computer.
  2. Open your web browser of choice.
  3. Ignore the “no Internet” alerts if any.
  4. Navigate to 192.168.4.1.
  5. After using the device turn it off by reversing step 1.

*When navigating to github via link, user will be informed of the need of connecting to the WiFi with the access to the Internet.

IN CASE OF RUNNING OUT OF BATTERY

  1. Make sure the power switch is in the OFF position.
  2. Connect provided microUSB cable to the device.
  3. Connect the cable to 5V power source.
  4. Wait until the red light on the bottom of the device turns blue indicating fully charged battery.
  5. Disconnect the cable form the power source and the device.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published