I'm attaching a link to github with Energia code examples for various sensors. I started this as a place to put examples for students in a course I was helping to develop for middle and high school level students using the MSP430F5529. Unfortunately the course was not held but I'm putting them out there in the hope they might help someone. Where the code has been tested with other LaunchPads I've noted it.
Here it is: https://github.com/fmilburn3?tab=repositories
You won't find anything sophisticated
but many are at least somewhat unique in that I couldn't find an example for that sensor tailored specifically for the F5529, or I wanted to better document it for beginners. Essentially all are variants of work done by others, including work on 43oh, and I hope I've recognized the contribution in the code. There is a wiki associated with some that has the schematic and photographs. There is some other example code that is almost complete - e.g. using small DC motors and servos and I might add them. Here is a list of sensors and devices currently out there:
- CNY70 - used as a proximity switch
- CNY70 - used as a tachometer
- MCP41010 - digital pot
- HC-SR04 - distance sensor
- 3 watt high intensity LED
- MAX4466 -sound level
- I2C LCD (4x20)
- HC-SR501 - PIR movement detection
- SW-180xxP - vibration sensor
- Joystick
- PFatFs - compiles and runs on the F5529
- Hall effect rainfall sensor
- TMP36 - temperature
- Sharp GPf1S53VJ000F - photo interrupter
- Using low power modes (LPM) in Energia