Small Arduino project for controlling relay switches in an alternating manner using two shift registers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Martin Unzner ce10c08f11 first revision of software flashed to board 1 week ago
Arduino-CMake-Toolchain@e745a9bed3 add Arduino CMake Toolchain 1 week ago
lib extend Arduino test bed 1 week ago
test initialize output for system setup 1 week ago
.gitignore extend Arduino test bed 1 week ago
.gitmodules add Arduino CMake Toolchain 1 week ago
CMakeLists.txt extend Arduino test bed 1 week ago
LICENSE Initial commit 1 week ago
README.md add notes on setup 1 week ago
shifting_alternator.cpp first revision of software flashed to board 1 week ago

README.md

shifting-alternator

Small Arduino project for controlling relay switches in an alternating manner using two shift registers

Setup

Instructions are similar to that of Arduino-CMake-Toolchain.

First, install the official Arduino IDE from https://arduino.cc. Make sure that everything works by starting the IDE once and uploading some example to your Arduino.

Next, create a custom CMake configuration for Arduino within this project folder:

mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../Arduino-CMake-Toolchain/Arduino-toolchain.cmake -G "Unix Makefiles" ..

Then, follow the instructions on screen to customize your board. Manual editing of BoardOptions.cmake may be required even if you use the CMake GUI to set up everything. Google and patience are your friends. :)

Once everything works, you can simply build the project:

make

Then, upload it to your board to test it out:

make SERIAL_PORT=/dev/ttyUSB0 upload-shifting_alternator