This is an old revision of the document!
Author: Andrei-Alexandru Georgescu
Group: 332-CD
The intent is to make a hand-worn device that uses several sensors to internally store the position of each finger, as well as orientation measured with a gyroscope, and then using this data to interpret, based on set of logistic regressions, a corresponding letter according to the ASL standard alphabet.
The ML based interpretation of the gestures makes the device highly personalizable, as it could be trained for a specific individual's range of motion and manner of making the gestures.
Its primary and intended purpose is to interpret gestures, but it can also be used, once trained, in an educational fashion as it uses an LED to signal if the gesture is recognized.
An important part of the project's logic is based on the 6 IMUs used. One is the “Reference Sensor” and it is mounted on the wrist such that it doesn't much experience the rotational movements of the hand. The other 5 are each mounted on a fingertip and all funnel their outputs towards the controller through an I²C multiplexer. The microcontroller is going to in turn request data from each of the sensors over the I²C line, and use the values to determine the position of each fingertip relative to the wrist.
The intended function of the project has 2 possible running modes, which determine how the positional data is used:
Components:
Development Medium: Arduino IDE Libraries:
Algorithms and Datastructures:
Implemented Functions:
TCA9548 Functions:
void tca9548_init() { Wire.begin(SDA_PIN, SCL_PIN); }
void tca9548_select(uint8_t i) { if (i > 7) return; Wire.beginTransmission(0x70); Wire.write(1 << i); Wire.endTransmission(); }
MPU6500 Functions:
MPU6500::MPU6500(uint8_t mux_channel) { _mux_channel = mux_channel; _mpu = new MPU6500_WE(MPU6500_ADDRESS); }
void MPU6500::init() { tca9548_select(_mux_channel); _mpu->init(); _mpu->autoOffsets(); _mpu->enableGyrDLPF(); _mpu->setGyrDLPF(MPU6500_DLPF_6); _mpu->setGyrRange(MPU6500_GYRO_RANGE_250); _mpu->enableAccDLPF(true); _mpu->setAccDLPF(MPU6500_DLPF_6); _mpu->setAccRange(MPU6500_ACC_RANGE_2G); }
xyzFloat MPU6500::get_data() { tca9548_select(_mux_channel); return _mpu->getAngles(); }
LCD1602 Functions:
void lcd1602_init() { lcd.init(); lcd.backlight(); lcd.clear(); lcd.setCursor(0, 0); delay(25); }
void lcd1602_write_char(uint8_t pos_col, uint8_t pos_row, char c) { if (pos_col >= LCD_COLS || pos_row >= LCD_ROWS) { return; } lcd.setCursor(pos_col, pos_row); lcd.print(c); }
void lcd1602_write_char(char c) { lcd.write(c); }
void lcd1602_write_string(uint8_t pos_col, uint8_t pos_row, const char* s) { lcd.setCursor(pos_col, pos_row); lcd.print(s); }
void lcd1602_set_first_row() { lcd.setCursor(0, 0); }
void lcd1602_set_second_row() { lcd.setCursor(0, 1); }
void lcd1602_test() { lcd.setCursor(2, 0); lcd.print("Booting up!"); }
void lcd1602_clear() { lcd.clear(); lcd.setCursor(0, 0); }