Here is the library that I made to use with my robots, that includes a bunch of sensors for all kind of stuffs.
It's the ArduinoSensors (https://github.com/ivanseidel/ArduinoSensors) and it's available at GitHub.
All the sensors are implemented using the ArduinoThread (https://github.com/ivanseidel/ArduinoThread) concept, and ready to work with almost every micro-controller.
- AnalogIn Class
- AnalogVoltage Class
- MLX90614 Temperature Sensor
- HMC6352 Compass sensor
- EZ Ultrasonic Sensor
- Ping Ultrasonic Sensor
- HC-SR04 Ultrasonic Sensor
- InvenSense IMU MPU9150
- InvenSense IMU MPU6050
- Sharp Infrared Short Distance Sensor (GP2D120XJ00F)
- Sharp Infrared Medium Distance Sensor (GP2Y0A21YK)
- Sharp Infrared Long Distance Sensor (GP2Y0A02YK0F)
This library of libraries was made to target many others sensors, with it's generic Interfaces.
I'm still documenting, but that's going to take time. If there is anyone interested in doing that, I appreciate the help!
Also, take a look at my others libraries, they might help: Arduino Thread | https://github.com/ivanseidel/ArduinoThread LinkedList | https://github.com/ivanseidel/LinkedList Due Timer | https://github.com/ivanseidel/DueTimer Arduino Gaussian | https://github.com/ivanseidel/Gaussian Arduino User Interface | https://github.com/ivanseidel/ArdUI