link to lab : https://itp.nyu.edu/physcomp/labs/labs-serial-communication/i2c-communication-with-an-infrared-temperature-sensor/
https://itp.nyu.edu/physcomp/lab-oled-screen-display-using-i2c/
TMP007 library
trying with the haptic motor
Trying the haptic motor
I installed the library and connected to my arduino . I don’t know if the following wiring is correct …
wiring 1
version 2
#include <Wire.h> #include "Adafruit_DRV2605.h"
Adafruit_DRV2605 drv;
void setup() { Serial.begin(9600); while(!Serial); if (!drv.begin() ){ Serial.println("No motor!"); } else { Serial.println("motor good"); }
// I2C trigger by sending 'go' command drv.setMode(DRV2605_MODE_INTTRIG); // default, internal trigger when sending GO command
drv.selectLibrary(1); drv.setWaveform(0, 83); // soft bump 100% drv.setWaveform(1, 71); // end of sequence drv.setWaveform(2, 0); // soft bump 100%
}
void loop() { drv.go(); delay(3000);
}
wiring 2