element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Frank Milburn's Blog AIS Alarm - Everything Working
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fmilburn
  • Date Created: 8 May 2018 5:24 AM Date Created
  • Views 5292 views
  • Likes 10 likes
  • Comments 27 comments
  • fram
  • daisy
  • smartalarmch
  • ais
  • msp430
Related
Recommended

AIS Alarm - Everything Working

fmilburn
fmilburn
8 May 2018

Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range

 

May 11, 2018 Update:  Added video demonstration and added update on future plans

 

It has been a while since I have worked on this project - had to do my submission for the Open Arduino contest and the Portable Electronics Kit image.  But today I went back through the code and implemented the remaining features and did preliminary testing.  Everything seems to be working now so here is a photograph of the working AIS alarm itself as well as a screen shot of the display when connected to OpenCPN ship plotting software on my laptop.

image

image

AIS Alarm Operation and UI:

The alarm itself is loud enough that I have a piece of tape over the buzzer to attenuate it while working on it.  The LED isn't as bright as I might like but is satisfactory.  It can run off of a small LiPo battery for an extended time thus saving power on a small boat with a limited power budget.  The operation and user interface is very simple:

  • The ALARM starts immediately upon being powered.
  • AIS messages from ships are stored in  non-volatile FRAM as they are received and are not lost if battery power is removed and the alarm unit is then connected to a computer.
  • Up to 16 AIS messages are stored, with older messages dropped.
  • When a ship is detected the alarm sounds and the LED toggles
  • Pushing the SNOOZE button will turn the buzzer off but the LED will continue to toggle with AIS signals.
  • Pushing the REPLAY button will cause the latest messages to be sent over serial to a computer if connected where they can be displayed on software such as OpenCPN as shown above.
  • Pushing the REPLAY button and holding it for 3 seconds will turn the alarm off but allow the AIS receiver to continue operating and sending messages over serial if connected to a computer.  This is useful when operating in an area with busy ship traffic where otherwise the alarm would be sounding continuously.  It also clears the buffer of any messages held in FRAM.

 

Video Demonstration

This is a late add demonstrating the alarm.  It starts out in SNOOZE mode and the dAISy module can be seen sending AIS messages to the serial window.  The SNOOZE button is pressed again which sets the alarm again.  When the next AIS message comes in it moves to ALARM mode and the buzzer sounds.  The LED toggles with every AIS message.  When SNOOZE is pressed again it returns to SNOOZE again and the buzzer turns off.  I then press REPLAY which causes the most recent 16 AIS messages to spill quickly to the debug window of OpenCPN.  When REPLAY (ON/OFF) is held for 3 seconds the alarm turns off and the buffer is cleared.  Link is below...

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Concept Phase Working:

I plan to build another alarm and put it in the wild to get some feedback but concept is working!  I still plan to make some firmware modifications and possibly some changes to the User Interface in the next few months.

 

Past Posts from this Project:

AIS Alarm

AIS Alarm - The Process

AIS Alarm - Prototype Hardware

AIS Alarm - Timers and GPIO

AIS Alarm - Prototype Code Outline

AIS Alarm - UART

AIS Alarm - First AIS Messages

AIS Alarm - First FRAM Storage

AIS Alarm - Debouncing Momentary Button Switches

AIS Alarm - FRAM Ring Buffer

AIS Alarm - Schematic

AIS Alarm - PCB Version 0.1

AIS Alarm - PCB Version 0.1 Arrived

AIS Alarm - PCB Version 0.2

AIS Alarm - PCB Version 0.2 Populated

AIS Alarm - PCB Version 0.2 Tested

AIS Alarm - Faceplates Received

 

References and Links:

WEGMATT LLC - dAISy AIS Receiver - low cost AIS receiver

Texas Instruments MSP430FR2xx FRAM Microcontrollers - Post No. 4

TI MSP430FR2111

Maximize the Sound from a Buzzer

Attachments:
You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image
  • Sign in to reply

Top Comments

  • jw0752
    jw0752 over 7 years ago +3
    Hi Frank, I have really enjoyed following and learning from your build process. Thanks for the follow up post. John
  • fmilburn
    fmilburn over 7 years ago +3
    The comments and encouragement really is appreciated. Thanks again...
  • james.flynn
    james.flynn over 7 years ago +3
    Frank, excellent project. I've been thinking about implementing a temp/humidity sensor to output NMEA sentences to my Grarmin. Guess I'll have to go revisit that idea now that you've inspired me.
  • Dudley
    Dudley over 7 years ago in reply to fmilburn

    I tweaked your video and embedded it into the content.

     

    If you prefer it as a link, feel free to change it back, I just thought it would look better as embedded image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Dudley
    Dudley over 7 years ago in reply to fmilburn

    Glad you got it all working fmilburn image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 7 years ago in reply to Dudley

    Thanks Dudley - I ended up finally being able to upload it and just added it as a link.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fmilburn
    fmilburn over 7 years ago in reply to three-phase

    I tried again and it finally uploaded - luck of the draw I guess.  I have it as a link which is good enough....

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • three-phase
    three-phase over 7 years ago in reply to fmilburn

    I have had this error a few times after uploading videos. Sometimes just uploading it again solves the issue and it will work ok. Other times I have had to go back to my video editor and finalised a new copy of the video and uploaded that.

     

    Kind regards

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube