Skip to content

flosommerfeld/ESP8266-IKEA-Skarsta-Trotten-Web-Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266 IKEA Skarsta/Trotten Web Dashboard

ESP8266 project for adjusting the height of an IKEA Skarsta/Trotten table via a Web Dashboard.

The table only comes with a crank from the factory - this project replaces the manual crank with a motor so there is no more need for manual cranking. This project aims to show you how to digitize an IKEA table.

ShowcaseFeaturesCircuit 3D ModelFinite State MachineDependenciesHardwareCreditsLicense

Showcase

Dashboard

Features

  • Web Dashboard is accessible from anywhere within your WiFi network
  • No more manual cranking the table up or down
  • Controlling the height of the table via the web
  • Setting custom height modes via the web
  • Current height is being frequently displayed

Circuit

This circuit (source file) was designed with Fritzing. Please see the hardware section near the end of the README for a detailed list of the used hardware components which are shown in the circuit. Circuit

3D Model

The 3D models of user pashiran were used and adapted in this project. Small holes were drilled into the table in order to screw the Body1.stl with M3 screws to it. After installing Body1.stl, the Body3.stl (case) was screwed on to it. Some M3 insert nuts were installed to Body1.stl with a soldering iron.

Body1.stl (Download) Body3.stl (Download)
3D model 1 3D model 2

Finite State Machine

The implementation is based on the following FSM: FSM

State transitions to the current state i.e. UP->UP happen when the user requests nothing after requesting the table to go up. The implementation takes care of stopping if the user hasn't stopped the table manually before reaching the maximum height and vice versa. CUSTOM_HEIGHT automatically transitions to HOLD whenever the requested height has been reached. All other state transitions are done when the user requests something via the Web Dashboard through the following routes:

  • /motor/<string: action>/ with action being up, down, stop
  • /height/<string: height_in_cm>/ with height_in_cm in the range from 60 to 160.

Dependencies

Used dependencies for this project are:

The dependencies can be installed via the standard procedure for installing Arduino libraries:

  1. Open the Arduino IDE, select Sketch -> Include Library -> Manage Libraries....
  2. Search for Cytron Motor Drivers Library by Cytron Technologies Sdn Bhd/HCSR04 ultrasonic sensor Library by gamegine.
  3. Click Install to install the library.
  4. Restart the Arduino IDE.

Hardware

The hardware selection and 3D models of this project are mainly based on the Instructable of user pashiran. In comparison, this project uses a website ("web dashboard") for controlling the table height and a ultrasonic sensor for measuring the height instead of an optical endstop. There are no hardware switches, just the website which can be accessed via the hosted ESP8266 server (which shall be in the same network as your clients).

Total costs approx. 48 € if you are patient enough to wait for the Aliexpress delivieries from China. The table and 3D printed model are not included in my calculation.

Credits

License

The contents of this repository are covered under the GPLv3 license.

About

ESP8266 Arduino project for controlling an IKEA Skarsta/Trotten table via the web

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published