Difference between revisions of "Realtime OS on Embedded Systems"

From Embedded Systems Learning Academy
Jump to: navigation, search
 
(164 intermediate revisions by 38 users not shown)
Line 11: Line 11:
 
== Lab Assignments ==
 
== Lab Assignments ==
 
This article contains laboratory assignments and resources.  The assignments are under construction as we move towards SJ-One development board.
 
This article contains laboratory assignments and resources.  The assignments are under construction as we move towards SJ-One development board.
 +
*  [[Embedded System Tutorial Tasks | Lesson 0: Multiple Tasks]]
 
*  [[Embedded System Tutorial GPIO | Lesson 1 : GPIO]]
 
*  [[Embedded System Tutorial GPIO | Lesson 1 : GPIO]]
 
*  [[Embedded System Tutorial UART | Lesson 2 : UART]]
 
*  [[Embedded System Tutorial UART | Lesson 2 : UART]]
Line 18: Line 19:
 
*  [[Embedded System Tutorial FreeRTOS | Lesson 6 : FreeRTOS Tasks]]
 
*  [[Embedded System Tutorial FreeRTOS | Lesson 6 : FreeRTOS Tasks]]
 
*  [[Embedded System Tutorial File I/O | Lesson 7 : FreeRTOS Application Programming]]
 
*  [[Embedded System Tutorial File I/O | Lesson 7 : FreeRTOS Application Programming]]
 +
 +
==== Class Project ====
 +
* [[MP3 Player]]
  
 
==Other reference articles==
 
==Other reference articles==
Line 40: Line 44:
 
<BR/>
 
<BR/>
 
<HR>
 
<HR>
=== Grading Criteria ===
 
<font color="green">
 
*  How well is Software & Hardware Design described?
 
*  How well can this report be used to reproduce this project?
 
*  Code Quality
 
*  Overall Report Quality:
 
**  Software Block Diagrams
 
**  Hardware Block Diagrams
 
**:  Schematic Quality
 
**  Quality of technical challenges and solutions adopted.
 
</font>
 
 
 
== Autonomous Secure Delivery ==
 
 
 
== Abstract ==
 
Autonomous vehicle, that autonomously searches an area until it is able to locate a unique object. Once the unique object is recognized by the onboard Pixy Camera, the BOT will then drive towards the object. This will be done by the Pixy Camera sending a signal to the microcontroller that the object has been located. The microcontroller will then call a different function and control the servos to drive the vehicle towards the located object. Overall, the main idea of this project is to create the drivers for the pixy camera to find the object and to communicate with the Microstick II Controller.
 
 
 
== Objectives & Introduction ==
 
Show list of your objectives.  This section includes the high level details of your project.  You can write about the various sensors or peripherals you used to get your project completed.
 
 
 
=== Team Members & Responsibilities ===
 
*  Mohit Bhasin
 
** 
 
*  Nadim Sarras
 
** 
 
 
 
 
 
== Schedule ==
 
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.
 
 
 
{| class="wikitable"
 
|-
 
! scope="col"| Week#
 
! scope="col"| Start Date
 
! scope="col"| End Date
 
! scope="col"| Task
 
! scope="col"| Completion
 
|-
 
! scope="row"| 1
 
| 10/21/2016
 
| 10/28/2016
 
| Finish Proposal and confirm idea
 
| Completed
 
|-
 
! scope="row"| 2
 
| 10/29/2016
 
| 11/04/2016
 
| Draw schematics of final product and determine the materials we need
 
| Not Completed
 
|-
 
! scope="row"| 3
 
| 11/05/2016
 
| 11/11/2016
 
| Write Drivers for Pixy camera to learn and recognize objects
 
| Not Completed
 
|-
 
! scope="row"| 4
 
| 11/12/2016
 
| 11/18/2016
 
| Make a mount for the camera that is able to move around and follow objects
 
| Not Completed
 
|-
 
! scope="row"| 5
 
| 11/19/2016
 
| 11/25/2016
 
| Program Microcontroller to interface with the Pixy Camera, using SPI communication.
 
| Not Completed
 
|-
 
! scope="row"| 6
 
| 11/26/2016
 
| 11/02/2016
 
| Finish Free RTOS tasks for the camera and moveable mount
 
| Not Completed
 
|-
 
! scope="row"| 7
 
| 12/03/2016
 
| 12/09/2016
 
| Test and Configure Project Accordingly
 
| Not Completed
 
|-
 
! scope="row"| 8
 
| 12/10/2016
 
| 12/16/2016
 
| Final Tests
 
| Not Completed
 
|}
 
 
 
== Parts List & Cost ==
 
Give a simple list of the cost of your project broken down by components.  Do not write long stories here.
 
 
 
== Design & Implementation ==
 
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.
 
 
 
=== Hardware Design ===
 
Discuss your hardware design here.  Show detailed schematics, and the interface here.
 
 
 
=== Hardware Interface ===
 
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.
 
 
 
=== Software Design ===
 
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it. 
 
 
 
=== Implementation ===
 
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.
 
 
 
== Testing & Technical Challenges ==
 
Describe the challenges of your project.  What advise would you give yourself or someone else if your project can be started from scratch again?
 
Make a smooth transition to testing section and described what it took to test your project.
 
 
 
Include sub-sections that list out a problem and solution, such as:
 
 
 
=== My Issue #1 ===
 
Discuss the issue and resolution.
 
 
 
== Conclusion ==
 
Conclude your project here.  You can recap your testing and problems.  You should address the "so what" part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?
 
 
 
=== Project Video ===
 
Upload a video of your project and post the link here.
 
 
 
=== Project Source Code ===
 
*  [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]
 
 
 
== References ==
 
=== Acknowledgement ===
 
Any acknowledgement that you may wish to provide can be included here.
 
 
 
=== References Used ===
 
List any references used in project.
 
 
 
 
=== Appendix ===
 
=== Appendix ===
  
== Project Title ==
+
=== [[Fall 2022 | Fall 2022]] ===
  
 +
*  [[F22: DDRTOS]]
 +
*  [[F22: xGameCreate]]
 +
*  [[F22: Embedded Gamers]]
 +
*  [[F22: Bob Burgers]]
 +
*  [[F22: Space Warriors]]
 +
*  [[F22: Thunder Flash]]
  
== Abstract ==
+
=== [[Fall 2021 | Fall 2021]] ===
This section should be a couple lines to describe what your project does.
 
  
 +
*  [[F21: ACE MARIO]]
 +
*  [[F21: Skeh-lleybones]]
 +
*  [[F21: Sons of Ultron]]
 +
*  [[F21: Juvenile Jumpers]]
 +
*  [[F21: Treasure Dive]]
 +
*  [[F21: FollowMe]]
 +
*  [[F21: Flame Over]]
 +
*  [[F21: Space Rage]]
  
== Objectives & Introduction ==
+
=== [[Fall 2020 | Fall 2020]] ===
Show list of your objectives. This section includes the high level details of your project. You can write about the various sensors or peripherals you used to get your project completed.
+
*  [[F20: Jubeat]]
 +
*  [[F20: Flappy]]
 +
*  [[F20: Space Invaders]]
 +
*  [[F20: Treasure Diver]]
 +
*  [[F20: Tom & Jerry]]
 +
*  [[F20: Hungry Snake]]
 +
*  [[F20: Son of a Gun]]
 +
* [[F20: Corona Run]]
 +
*  [[F20: Maddening Marbles]]
 +
* [[F20: Bubble Shooter]]
  
 +
=== [[Fall 2019 | Fall 2019]] ===
  
=== Team Members & Responsibilities ===
+
*  [[F19: Smacman]]
Mohit Bhasin
+
*  [[F19: Tetris]]
**  
+
*  [[F19: Space Impact]]
Nadim Sarras
+
*  [[F19: Road Max Fury]]
**  
+
[[F19: T-Rex Run!]]
 +
* [[F19: Infinity Mirror]]
 +
* [[F19: Tower Defense in Space]]
 +
[[F19: Alien Wars]]
 +
* [[F19: Pocket tank]]
 +
* [[F19: M&B (Morph & Blend)]]
  
 +
=== [[Fall 2018 | Fall 2018]] ===
  
 +
*  [[F18: Flappy Bird]]
 +
*  [[F18: Catch me if you can]]
 +
*  [[F18: Zero Zero UFO]]
 +
*  [[F18: Goals of Glory]]
 +
*  [[F18: Spartan Warrior]]
 +
*  [[F18: Wireless sensor network]]
 +
*  [[F18: baem geim]]
 +
*  [[F18: Hit the Balloon]]
 +
*  [[F18: 2048]]
  
 +
<BR/>
  
== Schedule ==
+
=== [[Spring 2018 | Spring 2018]] ===
Show a simple table or figures that show your scheduled as planned before you started working on the project.  Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals.  The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.
 
  
 +
*  [[S18: Team Nemesis(SJSU Cam)]]
 +
*  [[S18: Death Race]]
 +
*  [[S18: Hand gesture controlled multiplayer game]]
 +
*  [[S18: Smart Rock Paper Scissors]]
 +
*  [[S18: Spybot]]
 +
*  [[S18: Audio Spectrum Analyzer with Graphics Display]]
 +
*  [[S18: XY-Plotter]]
 +
*  [[S18: RGB LED Sound Behavior on a Skateboard]]
 +
*  [[S18: Spark - MP3 Music Player with Audio Spectrum]]
 +
*  [[S18: Traffic Menace Video Game]]
 +
*  [[S18: M.E.O.W]]
 +
*  [[S18: Rahee]]
  
{| class="wikitable"
+
=== [[Spring 2017 | Spring 2017]] ===
|-
 
! scope="col"| Week#
 
! scope="col"| Date
 
! scope="col"| Task
 
! scope="col"| Actual
 
|-
 
! scope="row"| 1
 
| 10/8
 
| Task list
 
| Completed?  Problems Encountered?
 
|}
 
  
 +
*  [[S17: Wake up Barista]]
 +
*  [[S17: Propeller Clock]]
 +
*  [[S17: Sky Knight]]
 +
*  [[S17: MyAutoHealth]]
 +
*  [[S17: Logan]]
 +
*  [[S17: ElectricBoard]]
 +
*  [[S17: CamBot]]
 +
*  [[S17: Sphero Droid]]
 +
*  [[S17: Smart Planter]]
 +
*  [[S17: Boom-Z Equalizer]]
 +
*  [[S17: Interactive Snake and ladder ]]
 +
*  [[S17: Smart Health Gear]]
 +
*  [[S17: Halo]]
 +
*  [[S17: Squad]]
 +
*  [[S17: Smart security system]]
 +
<BR/>
  
== Parts List & Cost ==
+
=== [[Fall 2016 | Fall 2016]] ===
Give a simple list of the cost of your project broken down by components.  Do not write long stories here.
 
  
 
+
CMPE146:
== Design & Implementation ==
+
* [http://www.socialledge.com/sjsu/index.php?title=F16:_Seismograph F16: Seismograph]
The design section can go over your hardware and software design. Organize this section using sub-sections that go over your design and implementation.
+
* [[F16: Piano Glove]]
 
+
* [[F16: Object Detector]]
 
+
* [[F16: Autonomous Nautical System]]
=== Hardware Design ===
+
* [[F16: Autonomous Fire Extinguishing Vehicle]]
Discuss your hardware design here. Show detailed schematics, and the interface here.
+
* [[F16: Autonomous Runaway Alarm Car]]
 
+
* [[F16: E-Bike]]
 
+
* [[F16: NotifyBox]]
=== Hardware Interface ===
+
* [[F16: Wireless Tilt Controlled Camera Arm]]
In this section, you can describe how your hardware communicates, such as which BUSes used.  You can discuss your driver implementation here, such that the '''Software Design''' section is isolated to talk about high level workings rather than inner working of your project.
+
* [[F16: OBD2 Reader]]
 
+
* [[F16: Micro Watch Monitoring System]]
 
+
* [[F16: Door Alarm System]]
=== Software Design ===
+
* [[http://www.socialledge.com/sjsu/index.php?title=F16:_I2Coffee F16: UART Coffee]]
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it. 
+
* [[F16: SJone to FPGA wireless integration]]
 
 
 
 
=== Implementation ===
 
This section includes implementation, but again, not the details, just the high level.  For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash.  You can include sub-sections for each of your component implementation.
 
 
 
 
 
== Testing & Technical Challenges ==
 
Describe the challenges of your project.  What advise would you give yourself or someone else if your project can be started from scratch again?
 
Make a smooth transition to testing section and described what it took to test your project.
 
 
 
 
 
Include sub-sections that list out a problem and solution, such as:
 
 
 
 
 
=== My Issue #1 ===
 
Discuss the issue and resolution.
 
 
 
 
 
== Conclusion ==
 
Conclude your project here.  You can recap your testing and problems.  You should address the "so what" part here to indicate what you ultimately learnt from this project.  How has this project increased your knowledge?
 
 
 
 
 
=== Project Video ===
 
Upload a video of your project and post the link here.
 
 
 
 
 
=== Project Source Code ===
 
* [https://sourceforge.net/projects/sjsu/files/CmpE_S2016/ Sourceforge Source Code Link]
 
 
 
 
 
== References ==
 
=== Acknowledgement ===
 
Any acknowledgement that you may wish to provide can be included here.
 
 
 
 
 
=== References Used ===
 
List any references used in project.
 
 
 
 
 
=== Appendix ===
 
  
 
=== [[Spring 2016 | Spring 2016]] ===
 
=== [[Spring 2016 | Spring 2016]] ===

Latest revision as of 05:12, 17 October 2022

Program History

My contribution in Embedded System courses started with CmpE146. This course teaches students on how to write UART, SPI, and I2C Drivers and interface their drivers to peripherals. There are about 8 weekly labs in which students not only write drivers, but also learn the core of Real-time Operating Systems including threading (tasks), and inter-task communication using Queues and Semaphores. FreeRTOS is the operating system used with C/C++ Compiler based on GNU.

When the course was started by Dr. Ozemek @ SJSU (sometime before 2005), not many resources were out there. Still, with helpful guidance from Dr. Ozemek, interesting projects were created. This is when I started to help out in Embedded System Courses, and by collecting and sharing knowledge, we've raised the bar at SJSU!

There have been many great projects at SJSU, but since no one knew about them, the hard work went to a waste for anyone but the creator. But now we've got the infrastructure to share the projects, which turn out as great references for future students. Here is my project that started around 2007, and turned into Bachelor's Senior Design Project:
YouTube Video of Self-Navigating Car

As of 2013, I have broadened my contribution to other embedded system courses like CmpE240, CmpE243 and CmpE244.

Lab Assignments

This article contains laboratory assignments and resources. The assignments are under construction as we move towards SJ-One development board.

Class Project

Other reference articles


Senior Design Projects


Semester Projects

Every semester, students are given about 7-10 weeks to complete their projects. During this short time-span, students form groups, order parts, and begin working on their projects. The work performed during the semester is documented at this Wiki.

Here is the list of Preet's documented projects:

Here is another resource for good project references : Cornell EE476 Projects



Appendix

Fall 2022

Fall 2021

Fall 2020

Fall 2019

Fall 2018


Spring 2018

Spring 2017


Fall 2016

CMPE146:

Spring 2016


Cmpe 146:



Fall 2015

CmpE146:



Spring 2015


CmpE146:

Spring 2014



CmpE146

Fall 2013

Spring 2013

Fall 2012

Spring 2012


Handy References