Mini4wdChrono is a fully free and open source project to make a functional 3-lane lap timer for Mini4WD Japan Cup tracks.
The hardware has been chosen to be as simple and cheap as possible, while still maintain accuracy.
- Hardware parts needed
- Hardware diagrams
- Flashing the arduino board
- Lap timer building
- Launching the software
The software has been built to ease the work of race organizers, while still having a clean interface that can be shown on a big TV screen during the race.
Note: the program reads data from the "Mini4WD Track Editor" and "Mini4WD Tournament Generator" websites to access track length and player names, so you are required to create your track and player list using those websites.
You can download the latest releases for Windows 10 (64-bit) or Mac OS (64-bit) from the releases page.
Main lap timer view, with position, delay from first place, average speed and split times.
Player roster view, sorted, showing best time of each player in red.
Tournament view with all rounds. Times are editable.
Race setup screen. You can import data from Mini4WD Track Editor.
Run brew install nodenv
and follow installation instructions here. https://github.com/nodenv/nodenv
brew cask install arduino
cd mini4wdchrono
nodenv install
npm install
# make sure the arduino board is connected via USB, then
npm start
To package the project run utils/build_darwin.sh, or
electron-packager . Mini4wdChrono --overwrite --icon=images/ic_launcher_web.icns --prune=true --out=release-builds
Make sure you are running a Powershell with administrator permissions, and Chocolatey is installed.
choco install python2
choco install arduino
choco install nodejs --version=10.16.3
npm install -g windows-build-tools
cd mini4wdchrono
npm install
# make sure the arduino board is connected via USB, then
npm start
To package the project run utils/build_win64.ps1, or
electron-packager . Mini4wdChrono --overwrite --asar --icon=images/ic_launcher_web.ico --prune=true --out=release-builds
sudo apt update
sudo apt install build-essential apt-transport-https lsb-release ca-certificates curl
curl -sL https://deb.nodesource.com/setup_10.x | bash -
sudo apt install nodejs
sudo apt install npm
cd mini4wdchrono/
npm install
./node_modules/.bin/electron-rebuild
sudo chmod 666 /dev/ttyACM0
# make sure the arduino board is connected via USB, then
npm start
If you get an error when running the program like
Serialport was compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 70. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install).
it means you need to run electron-rebuild
on the project. Please run npm run postinstall
inside the project directory.
Related issue: serialport/node-serialport#1910