Skip navigation
Last summer my 5 year old grandson spent the week with me and I promised his mother it would be educational and him that it would be fun.  Early in the week we wired up LEDs, beepers and switches, learned about polarity, etc.  We played with a simple robot that could be programmed to run a route.  I kept it to only a couple of hours a day and allotted  time to do other stuff.  The highlight was a project we did at the end of the week.   My objective with the projec ...
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   With the schematic complete it was time to design a PCB.  This blog entry will outline the PCB design and layout along with the primary considerations. The "L" shape of the PCB is a direct result of the enclosure that will be used and is necessary to avoid interference with other components already inside the case.  The dAISy radio receiver will reside un ...
fmilburn

AIS Alarm - Schematic

Posted by fmilburn Jan 12, 2018
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   The breadboard prototyping and first pass at firmware are sufficient to proceed to hardware design.  After exchanges with the developer of dAISy and some early layout I have modified the pins used by the microcontroller and foresee the need to refactor the firmware.  At this point though no show stoppers are foreseen.  This post will describe the prelim ...
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   The prototype now receives AIS messages from the dAISy module and stores them in a persistent FRAM ring buffer.  The ring buffer will be described in this post and code to test the concept by emptying the ring buffer and displaying it implemented.   The ring buffer uses an algorithm presented by Jack Ganssle in Embedded Muse 110 and published in 2005.  I ...
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   The prototype now receives AIS messages from the dAISy module and stores them in a persistent FRAM ring buffer.  My intention today was to test the ring buffer but I discovered lots of bounce with the button used to push the buffer contents to UART.  This post will outline a software debounce scheme that makes use of the millisecond counting ISR already in t ...
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   The prototype is now receiving AIS messages from the dAISy module.  In this post a method for storing the messages in a persistent FRAM ring buffer will be described.  This is important to the project because persistent storage means the messages will not be lost when the device is unplugged from power.   The screen shot below taken from the CCS debug vi ...
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   In this post the dAISy receiver will be connected and the first AIS messages received. The green LED on dAISy indicates an AIS message!   The dAISy receiver is easily accessible.  A header is provided with RX, TX, GND, 5V, 3V3, and even RST and TST for the very brave.  Here TX on dAISy has been connected to RX on the FR2111 prototype breadboard. ...
fmilburn

AIS Alarm - UART

Posted by fmilburn Dec 30, 2017
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   This post will add 38400 baud UART to the existing code and test it. /* * dAISy_Alarm_V002 - adds UART at 38400 baud * dAISy_Alarm_V001 - implements millisecond timer and blinks LED * * MCLK, SCLK set to 8 MHz * ACLK set to 32768 Hz * Milliseconds counted on timer B0 * UART at 38400 baud * * Frank Milburn    30 December 2017 * Developed on MSP ...
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   Now that there is a working microcontroller that runs at the right clock speed and blinks a LED it is worthwhile to outline the firmware. /* * Outline of dAISy Alarm Prototype Code */ void main(){     initialize Clocks{     8 MHz MCLK, SMCLK     32 kHz ACLK   }   initialize GPIO{     LED alarm   ...
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   In this post I will start development of the firmware for the prototype by setting up the microcontroller's clock, setting up a timer that can be used for counting time elapsed in milliseconds, and use GPIO to confirm the timing.   I have started a spreadsheet to document what peripherals I will be using as shown below. At this point I just want to make sure the ...
Project Objective: Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range   In this post I will describe the hardware to be used for prototyping and why it was chosen. Starting in the upper left and going counter clockwise: dAISy Single Channel AIS Receiver - This receiver is inexpensive, reliable, and I have experience with it.  It is open source and the developer is open to working with hobbyists on their projects.  The antenn ...
fmilburn

AIS Alarm - The Process

Posted by fmilburn Dec 28, 2017
Project Objective:  Develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range Time to get back to work on the AIS project.  In this post I will lay out a plan for developing the hardware and firmware.   I have no formal training in electronics or programming.  But when I was a mechanical engineering student 40+ years ago all engineering disciplines at my university were required to follow a simple outline when solving homework ...
This is a project I did with a friend just before Christmas that I was able to get my grandson involved in.  The idea is to use a CR2032 coin cell to power LEDs as it rolls down a ramp.  The project is constructed from foam board cut out with a hobbyist knife and copper tape used to make the connections with the coin cell.  It is best understood by seeing it in action.... My grandson thought this was the greatest and even suggested an improvement for next year:  Put 25 LED ...
fmilburn

AIS Alarm

Posted by fmilburn Dec 21, 2017
I have been experimenting with the Texas Instruments MSP430FR2xx microcontrollers and have selected it for a project I have been thinking about for a while.  The objective is to develop an open source AIS Alarm that alerts sailors that a new marine vessel with AIS is within range.  AIS (Automatic Identification System) is a tracking system for ships that gives information on among other things location, direction, and speed.  It is required on vessels of 300 or more gross tonnage ...
Introduction   I ran into this interesting post today: https://www.thingiverse.com/thing:2592741   What a cool device!  I am waiting on delivery of a board for my current project and had some time so decided to look into the determination of Plank's Constant with LEDs myself.  Judging by the number of hits in an internet search this is a common experiment now in undergraduate physics labs.  See for example this link: http://home.sandiego.edu/~rskelton/phys197lab/Planck ...