Giter VIP home page Giter VIP logo

luffsensing's Introduction

Sensing Sail Luffing by Detection of Sail Shape

Research project by Rebecca Jordan, advised by Alex Morrow at Olin College of Engineering, and funded by a Clare Boothe Luce Fellowship.

This is an extension of Alex Morrow's Universal Sailing Project, aiming to provide blind sailors with all the information their sighted counterparts have access to while racing. The project detects sail luffing using flex sensors mounted on the jib of a Rhodes 19 or similar boat.

The Python3 code is meant to run on a Raspberry Pi. Run flex_testing.py on startup. Wiring information for LEDs and sensors is given in the UTS-16 Google Drive documentation. The objects are in flex_sensor.py, and a quick test that outputs readings to the command line for verifying sensors are working is in test.py.

When the status LED (white) is on, the system is ready to record. Press the button. The status LED will blink every half-second for five seconds, then every quarter-second for two minutes. During the two minutes, the sensor readings will be recorded every quarter-second to a CSV file in the folder LuffRecords (don't move or rename that folder) with a timestamp filename. The red and blue/green LEDs can indicate which tack the boat is on and whether it's luffing (as soon as you implement that method in flex_sensor.py) When the status LED turns solid again, the system can make another recording. The number of sequential recordings is not limited in the code. The Pi must be shut down properly (ie with 'shutdown' command) for the CSV files to save. I recommend a shutdown button/connection when testing headless on a boat.

After recording, CSV records in the LuffRecords folder can be plotted using the Matlab script in plotter.m or algorithmplotter.m, which must be in the same directory as the file. algorithmplotter.m contains the luff-detecting algorithm and plots show luffing was detected. These produce PNG files of the same name as the CSV.

luffsensing's People

Contributors

greenlightrj avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.