Table of Contents
The firmware for the FRDM-DAQ has been implemented in two different varieties. "FRDM_DAQ" contains the most up to date changes to the firmware, while "FRDM_ACC" is a hard-coded test bench for using the on-board accelerometer.
SD LibraryWe used the MBED standard SD library for connecting to a microSD card for testing. It is important to note that this library was modified in two ways:
- The SPI frequency was increased to allow for faster data throughput
- The SPI object was made accessible in order to allow the programmable gain amplifiers to use the same SPI interface for configuration
As it stands, this version of the firmware measures XYZ acceleration and stores the result to the SD card. IT is worth noting that the sampling appears to be taking twice as long as it is supposed to. This is similar to some of the other timing bugs with the KL25Z at this time. It is likely that the time conversion in the MBED firmware is off by a factor of 2.
The "FRDM_DAQ" firmware features:
- Analog input handing
- SD card read/write
- Reading of configuration files is a work-in-progress
- Does not include handling of accelerometer
This is the configuration utility for the FRDM-DAQ. It was written in Java 1.7 using the IntelliJ IDEA development environment. It provides:
- A graphical user interface for setting configuration setting for the DAQ
- The ability to run the application on any machine that supports Java 1.7 or higher
Progress As it stands:
- Settings are written out using key-value pairs in a Properties File
- The GUI allows for the all write based access to these configuration files.
- Reading of an existing file needs to be completed
The GUI for the configuration tool was written using JavaFX instead of the Swing environment.
- Is supported by all java implementations
- Uses an XML language (FXML) to specify the GUI
- Uses annotations to connect GUI objects to controller code
Specifically, the GUI was designed using the JavaFX SceneBuilder. This tool allows you to build entire graphical environments by click-and-drag addition of "widgets." Additionally, CSS properties can be used to set useful appearance properties such as:
- Text alignment
- Padding and Margins