Skip to content

Latest commit

 

History

History
97 lines (67 loc) · 1.53 KB

readme.md

File metadata and controls

97 lines (67 loc) · 1.53 KB

MTG Sorter

Running it

open a terminal with

sudo cu -s 115200 -l /dev/tty.usbserial-57990087871

then reset the thing:

pause

The power is down, now set the baseplate so the center of container 0 is beneith the section cup. And the arm in the lowest position.

home
arm -70 // get the arm up by turning the arm 90degrees

now you can operate

plate <nr> // positions of the containers below.

vac 1 // turn on
vac 0 // turn off

platenumbers and degrees are increments of 191.5

0	0
1	192
2	383
3	575
4	766
5	958
6	1149
7	1341

Now start the servers in multiple terminals. But first close your terminal & arduino so the serial connection is available.

cd server && npm run dev
cd webapp && npm run dev

now open http://localhost:3000

ESP firmware

open Arduino studio, find your port and pick the board "adafruit feather esp32 v2". Change "upload speed" to 115200.

install libraries:

  • Stepper by Arduino
  • AccelStepper by McCauley
  • Adafruit NeoPixel by Adafruit
  • ESP32Servo by Kevin Harrington
sudo cu -s 115200 -l /dev/tty.usbserial-57990087871

Server

fucking hell, the nitro server in nuxt can't communicate with the esp.

so starting is:

cd server && npm run dev

cd webapp && npm run dev

# for development, also run:
cd server && npm run watch

Card metadata

this splits the files in /webapp/server/data/*.json into a json file per card, for easy readability

node data/splitPrices.js
node data/splitCards.js
node data/splitIdentifiers.js

outputs to /data/*