Shop OBEX P1 Docs P2 Docs Learn Events
FemtoBasic variant for Propeller Servo Controller — Parallax Forums

FemtoBasic variant for Propeller Servo Controller

Mike GreenMike Green Posts: 23,101
edited 2010-06-28 04:38 in Propeller 1
As part of a talk for UPEW on extending FemtoBasic, I've put together a version of FemtoBasic for the Propeller Servo Controller. Essentially I stripped out all the SD card support and replaced the display/keyboard with a serial console using the built-in USB port much like DongleBasic. I've added a statement to control one or more servos using the same servo routines used in the standard firmware for the Servo Controller. I also added a statement to reinitialize the serial port with a specified Baud. The default Baud is 2400.

The serial driver and FemtoBasic have been modified to support a half duplex serial connection on the extra serial port if there's no USB connection, but this is not tested yet. I'll post updated versions as I continue to debug this.

Post Edited (Mike Green) : 6/24/2010 4:25:10 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-06-27 14:11
    Content of archive:

    Basic_I2C_Driver.spin - I2C Driver from ObEx

    FemtoBasic_ObEx.spin - FemtoBasic main file from ObEx

    FemtoBasic_PSC.spin - Current FemtoBasic for the PSC

    FemtoBasic_PSC1.spin - FemtoBasic with keyboard & display replaced with serial I/O and no SD card

    FemtoBasic_PSC2.spin - FemtoBasic_PSC1 with a few PSC-specific statements added

    FemtoBasic_PSC_More.spin - Small portion of FemtoBasic extracted to illustrate adding statements

    FemtoBasic_PSC_Notes.spin - Just method headers and their comments for most methods in FemtoBasic_PSC

    FullDuplexSerialMG.spin - FullDuplexSerial modified for larger buffers and half duplex option

    Servo32_Ramp_v2.spin - Servo32 driver from ObEx

    Servo32v7.spin - Servo32 driver from ObEx
  • Mike GreenMike Green Posts: 23,101
    edited 2010-06-27 21:15
    Here's the next version that includes an automatic program load capability. The interpreter will do a LOAD:RUN if the SAVEd program's 1st line is "99 REM AUTOEXEC.BAS"
  • TinkersALotTinkersALot Posts: 535
    edited 2010-06-27 21:17
    Wow! Thanks again Mike!

    With the feature of being able to save and run a program stored in eeprom as long as the first line of the program is

    99 REM AUTOEXEC.BAS

    makes the servo controller so that it can be a 'stand alone' animatronic platform (among other things).

    Thanks again, and great presentation!

    Cheers!
    TinkersALot
  • johnnycarlosjohnnycarlos Posts: 44
    edited 2010-06-28 04:38
    That was a great talk, Mike.

    Thank you,

    John
Sign In or Register to comment.