albertaloop / T_SWE_2019_2020

Software for AlbertaLoop's first-generation pod.
MIT License
3 stars 1 forks source link

sample temp tests #50

Closed Kevin-was-here closed 2 years ago

Kevin-was-here commented 2 years ago

Summary

Created a (skeleton) testing procedure for the Temperature sensor. Applicable when testing temperatures in different locations as long as a reasonable range of temperatures is known.

Test

  1. Open the temperature tests file under /Testing/TemperatureSensor
  2. Make edits to the necessary temperatures (see file for more details)
  3. Compile the code under Arduino IDE 3.0. Install MAX6675 library by Adafruit v1.1.0 3.1. Make sure in Arduino settings under tools: the board is set to "teensy 3.6" 3.1.a. install teensy 3.6 to Arduino IDE here 3.2 In (Arduino IDE) File --> Preferences, make sure show verbose output during compile is checked
  4. Find the path to the .hex file under compiler and Locate the file (%temp% to access temp files for windows) image
  5. copy the path to the temp file once you are at the file location
  6. Open a command prompt and run: scp <path> pi@129.128.214.121:/tmp
  7. Open Putty, ssh into the pi and tycmd upload --board 10135960 /tmp/<file name>
  8. Check printout 'picocom -b 9600 /dev/serial/by-id/usb-Teensyduino_USB_Serial_10135960-if00'
mbardwell commented 2 years ago

a few cosmetic changes requested. Then we can merge. Your test section is very well done. Awesome work!

mbardwell commented 2 years ago

we should have either:

  1. one test file for all of the temperature sensors connected to the Teensy
  2. one test file for each temperature sensor connected to the Teensy

please make sure there is no duplicate code. Please make sure there is no "dead" code. If you need help testing them on the remote development setup, let's schedule something for the weekend.