diff --git a/MMA8451Accelerometer/MMA8451Accelerometer.ino b/Accelerometers/MMA8451Accelerometer/MMA8451Accelerometer.ino similarity index 94% rename from MMA8451Accelerometer/MMA8451Accelerometer.ino rename to Accelerometers/MMA8451Accelerometer/MMA8451Accelerometer.ino index 30f2413..221a8b4 100644 --- a/MMA8451Accelerometer/MMA8451Accelerometer.ino +++ b/Accelerometers/MMA8451Accelerometer/MMA8451Accelerometer.ino @@ -22,7 +22,7 @@ void setup(void) { Serial.begin(9600); // initialize communications with the accelerometer: if (! mma.begin()) { - Serial.println("Couldnt start. Check wiring the to the sensor."); + Serial.println("Couldn't start. Check wiring the to the sensor."); while (true); // stop here and do nothing else } // set accelerometer range to 2G max: @@ -39,5 +39,4 @@ void loop() { Serial.print(mma.y); Serial.print("\tZ: "); Serial.println(mma.z); - } diff --git a/Accelerometers/readme.md b/Accelerometers/readme.md index 5cfdc12..47504f0 100644 --- a/Accelerometers/readme.md +++ b/Accelerometers/readme.md @@ -8,4 +8,8 @@ Analog Devices makes a family of accelerometers, the [ADXL3xx accelerometers](ht ## STMicroelectronics LIS3DH -STMicroelectronics' [LIS3DH accelerometer](https://www.st.com/en/mems-and-sensors/lis3dh.html) is an inexpensive accelerometer with a variable range of sensitivity. It connects to a microcontroller using I2C. It's a great one to use when budget is a consideration. It also has some nice features like tap detection on all three axes. \ No newline at end of file +STMicroelectronics' [LIS3DH accelerometer](https://www.st.com/en/mems-and-sensors/lis3dh.html) is an inexpensive accelerometer with a variable range of sensitivity. It connects to a microcontroller using I2C. It's a great one to use when budget is a consideration. It also has some nice features like tap detection on all three axes. + +## Freescale MMA8451 + +Freescale's MMA8451 is an inexpensive accelerometer that communicates over I2C. Adafruit has an [MMA8451 breakout board](https://www.adafruit.com/product/2019) \ No newline at end of file diff --git a/AdafruitJoystick/AdafruitJoystick.ino b/Joystick/Joystick.ino similarity index 70% rename from AdafruitJoystick/AdafruitJoystick.ino rename to Joystick/Joystick.ino index f56601d..6ff600f 100644 --- a/AdafruitJoystick/AdafruitJoystick.ino +++ b/Joystick/Joystick.ino @@ -1,20 +1,21 @@ /* - Adafruit joystick example + Joystick example - Reads an Adafruit joystick and maps the X and Y outputs to a range from - -1 to 1. Also inverts the button reading so that pressed = 1 and unpressed = 0 + Reads an Adafruit or Sparkfun joystick and maps the X and Y outputs to a range + from -1 to 1. Also inverts the button reading so that pressed = 1 and unpressed = 0 - circuit: Adafruit joystick attached to A0 through A4, with Vcc on A0 - (https://www.adafruit.com/products/512) + circuit: joystick attached to A0 through A4, with sensor pins on A1, A2, and A3 created 10 Sept 2012 + modified 18 Jan 2019 by Tom Igoe */ void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); - // configure analog pins for Adafruit joystick: + // configure analog pins for joystick + // Check your joystick breakout board for correct pins: pinMode(A0, OUTPUT); pinMode(A4, OUTPUT); pinMode(A3, INPUT_PULLUP); // joystick pushbutton diff --git a/AdafruitJoystick/README.md b/Joystick/README.md similarity index 100% rename from AdafruitJoystick/README.md rename to Joystick/README.md diff --git a/TCS34725_RGBSensor/TCS34725_RGBSensor.ino b/LightSensors/TCS34725_RGBSensor/TCS34725_RGBSensor.ino similarity index 100% rename from TCS34725_RGBSensor/TCS34725_RGBSensor.ino rename to LightSensors/TCS34725_RGBSensor/TCS34725_RGBSensor.ino diff --git a/TCS34725_RGBSensor/TCS34725_circuit_bb.png b/LightSensors/TCS34725_RGBSensor/TCS34725_circuit_bb.png similarity index 100% rename from TCS34725_RGBSensor/TCS34725_circuit_bb.png rename to LightSensors/TCS34725_RGBSensor/TCS34725_circuit_bb.png diff --git a/TCS34725_RGBSensor/TCS34725_circuit_bb.svg b/LightSensors/TCS34725_RGBSensor/TCS34725_circuit_bb.svg similarity index 100% rename from TCS34725_RGBSensor/TCS34725_circuit_bb.svg rename to LightSensors/TCS34725_RGBSensor/TCS34725_circuit_bb.svg diff --git a/TCS34725_RGBSensor/TCS34725_circuit_schem.png b/LightSensors/TCS34725_RGBSensor/TCS34725_circuit_schem.png similarity index 100% rename from TCS34725_RGBSensor/TCS34725_circuit_schem.png rename to LightSensors/TCS34725_RGBSensor/TCS34725_circuit_schem.png diff --git a/TCS34725_RGBSensor/TCS34725_circuit_schem.svg b/LightSensors/TCS34725_RGBSensor/TCS34725_circuit_schem.svg similarity index 100% rename from TCS34725_RGBSensor/TCS34725_circuit_schem.svg rename to LightSensors/TCS34725_RGBSensor/TCS34725_circuit_schem.svg diff --git a/TCS34725_RGBSensor/readme.md b/LightSensors/TCS34725_RGBSensor/readme.md similarity index 100% rename from TCS34725_RGBSensor/readme.md rename to LightSensors/TCS34725_RGBSensor/readme.md diff --git a/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_bb.png b/LightSensors/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_bb.png similarity index 100% rename from TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_bb.png rename to LightSensors/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_bb.png diff --git a/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_bb.svg b/LightSensors/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_bb.svg similarity index 100% rename from TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_bb.svg rename to LightSensors/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_bb.svg diff --git a/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_schem.png b/LightSensors/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_schem.png similarity index 100% rename from TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_schem.png rename to LightSensors/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_schem.png diff --git a/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_schem.svg b/LightSensors/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_schem.svg similarity index 100% rename from TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_schem.svg rename to LightSensors/TCS34725_RGBSensor_OLED/TCS34725_OLED_circuit_schem.svg diff --git a/TCS34725_RGBSensor_OLED/TCS34725_RGBSensor_OLED.ino b/LightSensors/TCS34725_RGBSensor_OLED/TCS34725_RGBSensor_OLED.ino similarity index 100% rename from TCS34725_RGBSensor_OLED/TCS34725_RGBSensor_OLED.ino rename to LightSensors/TCS34725_RGBSensor_OLED/TCS34725_RGBSensor_OLED.ino diff --git a/TCS34725_RGBSensor_OLED/readme.md b/LightSensors/TCS34725_RGBSensor_OLED/readme.md similarity index 100% rename from TCS34725_RGBSensor_OLED/readme.md rename to LightSensors/TCS34725_RGBSensor_OLED/readme.md diff --git a/TSL2591LightSensor/TSL2591LightSensor.ino b/LightSensors/TSL2591LightSensor/TSL2591LightSensor.ino similarity index 100% rename from TSL2591LightSensor/TSL2591LightSensor.ino rename to LightSensors/TSL2591LightSensor/TSL2591LightSensor.ino