Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 2.72 KB

File metadata and controls

44 lines (37 loc) · 2.72 KB

FriskBy for CC3200 Launchpad running Energia

A general framework for reading sensors and sending data to the friskby server, using Energia on the TI CC3200 Launchpad.

Currently the on-board die-temp sensor and the Sharp GP2Y1010AU0F dust-sensor has been implemented. The Adafruit_TMP006 library is needed for the temp-sensor, but this should be included in energia by default.

TODO

  • SSL
  • Timestamp (Will not be necessary if the friskby server adds this automatically #15)
  • Optimize for lower power consumption (check out sleepseconds(), suspend() etc.)

Getting started

  1. Get Energia + cc3200 up and running following the guides http://energia.nu/pin-maps/guide_cc3200launchpad/ and http://energia.nu/cc3200guide/
  2. Clone this repo and open it in energia
  • Set correct serial port in Tools - Serial Port.
  • Select Board Launchpad without EMT: Tools - Board - Launcpad w/cc3200
  1. Update configuration-section in code, e.g. Wi-FI SSID & password
  2. Build and upload (Ctrl+M is handy as it also brings up port monitor) - readings and messages sent to server should appear in port monitor (baud rate 115200)

Hardware and connections

Adding more sensors

See configuration-section on sensors. To add a new sensor:

  • Create a new sensor-struct, add it to the listOfSensors array, and increase NUM_SENSORS.
  • Implement initSensor() and readSensor(). Note! readSensor() must populate valueStr[] (the reading formatted as a string)
  • Framework will do the rest.

Misc.