• Overview
  • Blog
  • The Team
  • Mechanical
  • Electrical
  • Software
  • BOM
  • Gems of Wisdom
  • Gallery
  • Contact Us
  • Overview
  • Blog
  • The Team
  • Mechanical
  • Electrical
  • Software
  • BOM
  • Gems of Wisdom
  • Gallery
  • Contact Us
Silly Rabbit, PICs are for Kids
  • Overview
  • Blog
  • The Team
  • Mechanical
  • Electrical
  • Software
  • BOM
  • Gems of Wisdom
  • Gallery
  • Contact Us

Software

FARMER Software Structure

The software for the FARMER (controller) consists of three orthogonal state machines. The first is the main state machine that deals with the hardware of the controller, such as the buttons, LEDs, potentiometer (thrust control spoon), and variable resistors (bunny ears). This state machine is a hierarchical state machine. The other two orthogonal state machines are the transmit and receive flat-level state machines that deal with the transmit and receipt of data to and from the DOG. The receive and main state machines trigger the transmit service to send the DOG data. The receive service parses the data from the DOG and triggers actions in the main and transmit state machines. 
Picture
Picture
Picture
Picture
Picture
Picture

Farmer Files

The files from the FARMER software for use on the TI Tiva are below. Also, you can download the entire project from: gitlab.com/ME-218C/FinalProject/FARMER.
farmermainhsm_pseudocode.docx
File Size: 6 kb
File Type: docx
Download File

farmertransmitservice_pcode.docx
File Size: 8 kb
File Type: docx
Download File

farmerreceiveservice_pcode.docx
File Size: 5 kb
File Type: docx
Download File

fannypackisrs_pseudo_code.docx
File Size: 5 kb
File Type: docx
Download File

farmerimu_sm_pseudo_code.docx
File Size: 67 kb
File Type: docx
Download File

farmersenserv_pseudo_code.docx
File Size: 96 kb
File Type: docx
Download File

newbyteisr_pseudocode.docx
File Size: 5 kb
File Type: docx
Download File

es_configure.h
File Size: 13 kb
File Type: h
Download File

eventcheckers.c
File Size: 3 kb
File Type: c
Download File

farmermainhsm.c
File Size: 17 kb
File Type: c
Download File

farmertransmitservice.c
File Size: 23 kb
File Type: c
Download File

farmerreceiveservice.c
File Size: 9 kb
File Type: c
Download File

fannypackisrs.c
File Size: 8 kb
File Type: c
Download File

farmerimu_sm.c
File Size: 36 kb
File Type: c
Download File

farmersensserv.c
File Size: 13 kb
File Type: c
Download File

newbyteisr.c
File Size: 7 kb
File Type: c
Download File

defines.h
File Size: 5 kb
File Type: h
Download File

eventcheckers.h
File Size: 0 kb
File Type: h
Download File

farmermainhsm.h
File Size: 0 kb
File Type: h
Download File

farmertransmitservice.h
File Size: 1 kb
File Type: h
Download File

farmerreceiveservice.h
File Size: 0 kb
File Type: h
Download File

fannypackisrs.h
File Size: 0 kb
File Type: h
Download File

farmerimu_sm.h
File Size: 2 kb
File Type: h
Download File

farmersensserv.h
File Size: 0 kb
File Type: h
Download File

newbyteisr.h
File Size: 0 kb
File Type: h
Download File


DOG Software Structure

The DOG software has a similar structure to that of the FARMER. There are again three orthogonal state machines with the same relations: the main hierarchical state machine that controls the DOG's hardware, a flat state machine for transmitting data to the FARMER, and a flat state  machine for receiving data from the FARMER. 
Picture
Picture
Picture
Picture
Picture
Picture
Picture
Picture
Picture

DOG Files

The files from the DOG software for use on the TI Tiva and the 12F752 PIC are below. Also, you can download the entire project from: gitlab.com/ME-218C/FinalProject/DOG.  The code for the lift fan was written in assembly for the 12F752 PIC, which can be found: gitlab.com/ME-218C/FinalProject/TREAT. 
es_configure.h
File Size: 14 kb
File Type: h
Download File

defines.h
File Size: 4 kb
File Type: h
Download File

dogimu_sm.c
File Size: 81 kb
File Type: c
Download File

dogimu_sm.h
File Size: 2 kb
File Type: h
Download File

dogmainhsm_pseudocode.docx
File Size: 6 kb
File Type: docx
Download File

dogmainhsm.c
File Size: 13 kb
File Type: c
Download File

dogmainhsm.h
File Size: 0 kb
File Type: h
Download File

dogreceiveservice_pseudocode.docx
File Size: 7 kb
File Type: docx
Download File

dogreceiveservice.c
File Size: 21 kb
File Type: c
Download File

dogreceiveservice.h
File Size: 1 kb
File Type: h
Download File

dogtransmitservice_pseudocode.docx
File Size: 7 kb
File Type: docx
Download File

dogthrustersm_pseudocode.docx
File Size: 6 kb
File Type: docx
Download File

newbyteisr_pseudocode.docx
File Size: 5 kb
File Type: docx
Download File

dogtreatsm_pseudocode.docx
File Size: 5 kb
File Type: docx
Download File

dogtransmitservice.c
File Size: 25 kb
File Type: c
Download File

dogthrustersm.c
File Size: 14 kb
File Type: c
Download File

newbyteisr.c
File Size: 11 kb
File Type: c
Download File

spi_sm.c
File Size: 9 kb
File Type: c
Download File

treat_sm.c
File Size: 15 kb
File Type: c
Download File

dogtransmitservice.h
File Size: 0 kb
File Type: h
Download File

dogthrustersm.h
File Size: 0 kb
File Type: h
Download File

newbyteisr.h
File Size: 0 kb
File Type: h
Download File

spi_sm.h
File Size: 0 kb
File Type: h
Download File

treat_sm.h
File Size: 0 kb
File Type: h
Download File

Powered by Create your own unique website with customizable templates.