Giter VIP home page Giter VIP logo

ti-rslk-example-sketches's Introduction

TI-RSLK Example Sketches

Arduino Compile Sketches Check Markdown Links

The Texas Instruments Robotics System Learning Kit (TI-RSLK) had an online embedded programming course based on it. As of November 2023, it appears that Texas Instruments is no longer supporting the programming course, and all references to it appear to have been deleted from the ti.com website.

An alternate development environment is available by using Arduino and Franklin Cooper's Energia-RSLK-Library which provides easy to use functions to access the various peripherals that are part of the robot chassis. Combined with the multitasking capabilities ("Energia-MT", based on TI-RTOS) and available on the MSP432 processor, a sophisticated robot control sketch can be created.

This repo contains various example and testing programs that I have created while experimenting with the TI-RSLK.

Sketch Descriptions

All sketches include code to display messages and status information to an external NewHaven 2x16 OLED. The MSP432 controller used by the robot has 256KB flash memory and 64KB RAM, which is more than adequate to support the OLED library and text string storage, whether or not an actual display is used.

01_Bump_Switch_with_OLED

This example has the TI RSLK driving forward until it hits an object (i.e. a bump switch is triggered), then it stops.

02_Simple_Line_Follower

The TI-RSLK follows a line on the floor using a simple (non-PID) algorithm.

Display Connection

The RSLK main board has connections to attach an LCD or OLED display to the robot chassis. The pins directly support SparkFun 10168, Adafruit 338, or Adafruit 938 displays. I don't have any of those displays, so I connected a NewHaven 2x16 OLED. Since the pin placement does not match, I created an adapter board that made use of the AF938 connector (which I use because it has a 5V supply pin). The pins are numbered 8 to 1 (left to right) when looking at the chassis from the top:

                   Display
SF 10168 LCD
AF 338   LCD
AF 938  OLED  8  7  6  5  4  3  2  1

            AF938  MSP432  J5   Energia
Signal       Pin    Pin    Pin    Pin    Comment
------      -----  ------  ---  -------  ---------------------------------
LCD-MOSI      8     P9.7    21     67    Called "SI" on NewHaven OLED
LCD-SCLK      7     P9.5    19     66    Called "CLK" on NewHaven OLED
LCD-DC        6     P9.6    20     NC    Not used with NewHaven OLED
LCD-RST       5     P9.3    11     62
LCD-CS        4     P9.4    18     49
NC            3      -       -      -    Pin is not connected
5V            2      -       -      -    Note that NewHaven OLED needs 5V, not 3.3V
GND           1      -       -      -   

References

License

The software and other files in this repository are released under what is commonly called the MIT License. See the file LICENSE in this repository.

ti-rslk-example-sketches's People

Contributors

andy4495 avatar

Watchers

 avatar

ti-rslk-example-sketches's Issues

Remove String and use const char instead.

Remove use of String class due to potential memory issues, particularly with resource-constrained processors. The RSLK library only uses String for displaying a status message to Serial, which can easily be replaced with a constant character C-string.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.