Learning arduino by trying to build a compact rangefinger for Warhammer.
Since current servitor mind-locking technology is somewhat limited, I opted for a Robotdyne clone of the Arduino Nano.
I'm using the Arduino IDE to develop the program. Here are my Arduino IDE tool settings;
- Tools->Board: Arduino Nano
- Tools->Processor: ATmega328P (Old Bootloader)
Both of the devices have I2C interfaces for binaric canting, and are attached to the A4(SDA) and A5(SCL) pins. The components recieve the motive force via the Nano's 3.3v regulated power supply.
A monochrome 128 x 64 OLED display. I'm currently using Adafruit's GFX and SSD1306 libraries for graphics.
I was amazed this sensor exists. It has a SPAD reciever, VCSEL IR laser emitter, and some signal modulation and processing to figure out the phase shift of the reflected signal. All in a 2 x 4 mm surface mount chip for two bucks. Possibly xenos tech heresy.
I use Polulu's VL53L0X library to command it, which was derived from the ST software I believe.
- Power
- Determine battery
- figure out convenient charging
- Calibration
- Convert to Imperium units
- characterize accuraccy up to 48" in tabletop conditions
- measure cone angle to see if this can even be used in a cluttered environment.
- are optics an option if this needs to be corrected?
- Beam Forming
- The light cone is actually 15 to 25 degrees wide. I should have read the sheet...
- Are there cheap 940nm IR colaminating lenses?
- Do I need to have separate ones for receiver and emitter?
- ask optics suppliers- maybe something like this?
- research ST support, then ask if I can't figure it out.
- Targeting laser
- I need a cheap-o visible laser to point the sensor accurately
- Test if it degrades sensor accuracy?
- Didn't noticably affect the range of samples(usu. 0.2-0.3") from 3 to 14". Though I wasn't too scientific about it.
- If you shine the laser directly into the receiver you get more and more missed measurements, with more distant measurements being more susceptible.
- Cabinet
- investigate 'Tiny Duino' for better form factor
- Cut portal and mount screen
- Cut portal and mount sensor
- Cut portal and mount laser
- Mount controller
- Mount battery
- Etch ruler for shorter distance
- Arduino Language Reference
- To install the needed libraries go to Tools->Manage Libraries and search for the above projects
- I cobbled the hardware together from cheap clones bundled from kits and some amazon searches; Going forward I'll buy some from people making the convenient software and kits. Here are some links;
- Arduino nano or the Nano-every
- polulu's VL53L0X carrier
- adafruit's SDD1306 carrier
- I2C
- Power