Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

guntiss/tappy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Tappy is a Tapster based sofware adapted for TestDevLab needs. Includes improved calibration method using web browser, web based control panel and record and play tool for automating tests.

Installation

Tested with Node.js v10.11.0

$ git clone https://github.com/guntiss/tappy.git
$ cd tappy
$ npm install
$ npm start

Edit config.js according to your setup (config.pins, defaultPosition height, ..)

Robot Control panel

To access control panel, navigate to http://server_ip/control

Features available:

  • Servo motor position adjustment
  • Linear movements

Control panel screen

Calibration

Calibration consists of two parts:

  1. Manual servo arm calibration must be done only once after assembling the robot. While rods are detached you can use "Control panel" to adjust all servos for horizontal and vertical arm state, and put those values in config.js accordingly: config.sX = { pin: X, min: 19, max: 101 }; After this calibration, linear movement should work correctly, if not, something is wrong.

  2. Device calibration is done by opening http://server_ip/cal on mobile device web browser. This is needed to be able to work with phone screen coordinates. Make sure that phone recognises stylus touches (it must be grounded to arduino GND) and that screen coordinates are being displayed at server console when touching screen. Then you just press "calibrate" and automatic calibration happens, that writes correct values inside calibration.json. You should NOT edit this file manually. If during calibration stylus moves outside phone dimensions, decrease config.calWidth value.

Calibration screen

Record And Play

Navigate to http://server_ip/record_and_play You Should see this screen: Record and play tool To use just click on screen and coordinates will be added to textarea. Note: realtime screen update is not yet integrated. There is known bug if you stop and restart script.

About

Tappy is updated version of Tapsterbot developed for TestDevLab.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.4%
  • HTML 18.5%
  • CSS 2.1%