words http://idiot.io
code https://github.com/idiot-io/TinyTony
to run Tony you need follow the connection diagram, and an ir remote for calibration. no coding is nessecery
- LDRx2 - voltage divider
- LINEAR - fixed side
the system has an initial guess for calibration,
but you will need to fine tune it to compensate
for diffrent material and lighting
when discussed in this document, [CH+] means press that key on ir remote
cover LDR #1 press the [CH+] to set maxval
cover LDR #2 press the [CH-] to set minval
uncover both LDRs press the [CH] to set midval
press [-] and [+] to subtract/add to trimval
value
after fine-tune you will have to trim the motor middle point
press until the motor doesn't turn or twitch in uncovered state.
usually no more then -/+10 is needed.
to put your settings in deep memory press the [200+] key
the setting you provide will be stored in TinyTony
so they are remembered and will reboot.
if DEBUG is on you can use the [EQ] button to watch your settings you will need a serial RX line connected to pin6 (TX)
[PREV] AND [NEXT] keys set the minimal motion threshold
to upload new firmware you will need
- arduino software runing on your machine and able to communicate with usb
- a programmer (it can be an arduino uno borad, or aspusb programmer)
- an SPI cable to connect tony to the programmer.
most of the libraries are included and referanced from the firmware folder.
ATTinyCore
EEPROM -used supplied one.
sofServo
SendOnlySoftwareSerial
tiny_ir , and ir_methods
check the PDF folder in this git to get datasheetsfor parts
RST -1+----+8- VCC
3/LDR -2| |7- 2/PWM
4/IR -3| |6- 1/SERIAL
GND -4+----+5- 0/SERVO