I had this crazy notion that just a bunch of digital inputs and a bunch of digital outputs would be relatively easy. The hardware part, yeah, easy, I've been doing that stuff for decades.
I knew the code would be a challenge. I have done ladder logic and CNC G-code programming off and on for years but never any "C".
I bought a pretty old scissor lift, it didn't run and needed electrical work. I got that all done, but I want to make some functional improvements and simplify the wiring up to the platform from the base.
The electrical system is basic small engine and 12VDC.
In the platform, there are nine functions (inputs) all N/O and mostly momentary contacts. These include:
There are two more inputs coming from the base:
platform full down position
platform below 10 feet
forward (travel locked out when platform is above 10')
reverse (travel locked out when platform is above 10')
2nd speed (energized when platform is less than 10' up and joystick is at least half travel, forward or reverse.
3rd speed (energized when platform full down AND joystick is full forward or full reverse)
brake release (energized when travel only)
hydraulic pressure unloader (energized with any function)
I2C interface for above (http://www.iascaled.com/store/Hobbyist/I2C-RELAY16)
arduino micro (Arduino Micro — Arduino Official Store)
Im running Win7 64 bit.
downloaded arduino IDE: OK
downloaded Relay16 library: FAIL maybe. I have a lib folder Relay16 with Relay16.cpp and relay16.h files
at C:\program files(x86)\Arduino\libraries\Relay16
downloaded relay 16 example: FAIL invalid library
connected to arduino micro and configure IDE: OK
hardware breadboarded: ok (yes I know there are no pull down resistors on there yet)
no inputs on arduino configured yet.
Relay16 example will verify ok but fails to upload and fails with invalid library.