Skip to content

Teensy scripts to test if individual sensors work using the hardware debugger.

Notifications You must be signed in to change notification settings

monash-human-power/V2-sensor-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V2-sensor-tests

Teensy scripts to test if individual sensors work using the hardware debugger.

Test Files

IMU + GPS Sensor Test

Libraries

You will need the following libraries installed:

Common Problems

GPS module has no Red Light

GPS Module is not powered on properly. Your GPS module is probably broken.

IMU data values do not change

Your IMU is probably broken.

Reed Switch Test

Common Problems

No velocity or distance data

Check the following:

  • Reed switch mount is close to the magnet located in the rear wheel
  • RJ45 cable coupler is correctly connecting the two RJ45 cables together

Wheel RPM Logging

Logs reed switch events to the serial port.

  • Baud rate 115200. The led on pin 13 will flash fast until a serial terminal is opened.
  • Press send 'r' to the teensy to reset it.
  • Set SEPARATOR to " " for space separated values or to "," for comma separated values (csv).
  • See the notion page discussing this here.
  • Each row contains:
    • Time since the teensy started.
    • The number of rotations since the teensy started.
    • The time it took for the last rotation.
    • The revolutions per minute for the last rotation.
  • Data is sent and the LED toggled each time the magnet is brought near the switch.
  • All times are in microseconds (µs).

Saving to a file

Using PuTTY (Windows, Mac and Linux)

See here.

Minicom (Linux and Mac)

minicom -D /dev/ttyACM0 -C "WheelSpeed_$(date +%H-%M-%S).csv"

Picocom and other tools will be similar.

Arduino IDE (Windows, Mac and Linux)

This is tedious, but is another option. Simply copy and paste from the serial terminal. In the versions we tested, only the area currently visible on screen can be copied at a time.

Graphing / analysis

Python scripts

graph.py is a python file that graphs the angular velocity and angular acceleration over time.

Excel / spreadsheets

The output format from the DAS is in a CSV format that most software should be able to import.

About

Teensy scripts to test if individual sensors work using the hardware debugger.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •