Skip to content

MicroController

Johannes Ernstsen edited this page Mar 19, 2021 · 2 revisions

Micro-Controller

This part of the project contains the code for the vehicle, which is executed on a Propeller Activity Board WX.

The code is developed using the SimpleIDE, which is also used in deploying the software to the developer board.

Structure

The propeller board is based on the Parallax P8X32A octa-core processor, enabling proper multi-thread applications. This project will utilize this, by using between 1 and 8 threads, each assigned to a task, as follows:

  1. Main Thread - Initializes the other threads, and listens for messages sent through serial connection
  2. Lights Control - Controls vehicle lights
  3. Motor Control - Controls the motor(s) powering the vehicle - if direction is controlled by motors switched on/off this also happends here
  4. Currently Unused
  5. Currently Unused
  6. Currently Unused
  7. Currently Unused
  8. Currently Unused

Each non-main thread has behaviour defined in own file, in an attempt at improved readability. Main-thread behaviour is found in the main file

Vehicle configurations

As each vehicle will have different setups and requirements, they will also be contained in separate files, and have a page for themselves.

Each vehicle will have a subfolder in PropellerBoard with a .side file containing the project in a compilable and runnable state. The physical builds are described in their corresponding wiki-pages

  • MiniCar Small Proof-of-concept vehicle