Shop OBEX P1 Docs P2 Docs Learn Events
Propeller and SPIN, endless possibilities — Parallax Forums

Propeller and SPIN, endless possibilities

DurbanFlyBoyDurbanFlyBoy Posts: 7
edited 2009-08-18 18:08 in Propeller 1
Good-day gentlemen.

As·a professional uP programmer new to object-oriented languages and·SPIN, the possiblities are quickly dawning on me regarding the aforesaid, particularly when combined with the flexibility of the propeller chip.

For example, i can in future make a generic-type processor board that includes the propeller and an FTDI UART (such as the FT232RQ), with a big fat 34=way ribbon connector that carries almost all of my I/O pins, to which I can connect to various forms of "break-out" boards.

With my basic main board, I can either:

a) create a stand-alone-type application, such as a process contoller·with it's own key matrix, display and I/O on a breakout board

b)·make·a device, such as an I/O controller that connects to a Windows application, the USB UART acting as a high-speed data pipe.

In the case of the latter, I can create an object·SPIN file in which user-parameters are written, and using the propellent.dll, can upload the application fresh every time the user changes a parameter, running it only in RAM, with the option to store it in EEPROM. The propeller is the answer to my headaches over the last few years, where in my profession, we have used a plethora of embedded processors, all with their quirks and quidities, but none that offer all-round ease of use and flexibility. I am truly impressed by the possibilities of the propeller and SPIN, and in the not-too-distant future as the·object library grows, it will offer unparalled all-round solutions to a myriad of applictions. Thanks to all those involved, especially to Chip and his team for the foresight and research into a phenomenal·product.
·

Comments

  • jazzedjazzed Posts: 11,803
    edited 2009-08-17 18:57
    Welcome to the forums. Yes, Propeller offers near infinite possibilities ... a lot for such a small device [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Steve


    Propalyzer: Propeller PC Logic Analyzer
    http://forums.parallax.com/showthread.php?p=788230
  • LeonLeon Posts: 7,620
    edited 2009-08-17 19:25
    SPIN isn't an "object-oriented" language!

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • Mike GreenMike Green Posts: 23,101
    edited 2009-08-17 19:31
    I beg to differ. See en.wikipedia.org/wiki/Object-oriented_programming. "object-oriented" languages don't need to have all (or even a majority of) features described. Admittedly, Spin doesn't have a lot of commonly included features like inheritance and operator overloading, but it's still "object-oriented".
  • HollyMinkowskiHollyMinkowski Posts: 1,398
    edited 2009-08-17 19:46
    Yes, the propeller is fun and versatile...
    You said...
    quidities

    What is a quidity smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Some mornings I wake up cranky.....but usually I just let him sleep in -
  • LeonLeon Posts: 7,620
    edited 2009-08-17 19:53
    Mike:

    It's not really object-oriented in the commonly understood sense of the term, though. Parallax themselves refer to it as "object-based", which is somewhat different.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 8/17/2009 8:03:49 PM GMT
  • potatoheadpotatohead Posts: 10,261
    edited 2009-08-17 20:15
    What I find most interesting is, despite the differences between SPIN and other "Object Oriented" languages, the goal; namely, being able to reuse code ends up very possible and practical on Propeller, all at a level of complexity well below that normally required for code re-use.

    Say what you want about how the prop "isn't". No worries. What it is really punches well above it's weight.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Propeller Wiki: Share the coolness!
    Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
    Safety Tip: Life is as good as YOU think it is!
  • RevAaronRevAaron Posts: 30
    edited 2009-08-17 22:35
    potatohead said...
    What I find most interesting is, despite the differences between SPIN and other "Object Oriented" languages, the goal; namely, being able to reuse code ends up very possible and practical on Propeller, all at a level of complexity well below that normally required for code re-use.

    I'm with Leon. SPIN is not an object-oriented language, although it is object-based. Communication comes to being able to relay larger concepts with smaller tokens of meaning. Being object-based has nothing to do with being able to program in an object oriented way, if that is important to you. You can do object-oriented programming in C or x86 MASM, but that doesn't make either an OOPL. I agree that the distinction can be subtle- all the more reason to stick to accurate terms.

    Why call the color teal by the name blue? You could argue that teal contains blue, and that some teals may be confused with blue in certain lighting conditions... but why bother?
  • SamMishalSamMishal Posts: 468
    edited 2009-08-18 00:21
    RevAaron said...

    Why call the color teal by the name blue? You could argue that teal contains blue, and that some teals may be confused with blue in certain lighting conditions... but why bother?
    Most people·do not care that a very slightly different shade of blue is called teal or blue....they call it blue

    Only interior designers and perhaps some sales people and advertising agents care....

    Not even an artist cares.....an artist does not care what the color is called.....s/he just uses it and
    creates a nice painting with it regardless of what it is called.....and s/he would not even care.

    I think that SPIN is a·TRUE BLUE....lol.gif but regardless even if it is more close to teal....I do not care
    I just like to use it and for working with the propeller (a microcontroller) it allows me to create nice
    "pictures".

    Samuel
    ·
  • Agent420Agent420 Posts: 439
    edited 2009-08-18 10:47
    The Propeller is a neat chip that I think requires a slightly different mindset to appreciate.·

    With regards to the original poster, I'm not sure I understand what elements he is referring to...· the development environment?· Certainly any of the common platforms can also be used quite easily to create the stand-alone application or I/O controller examples.· There are several variants of these that also offer embedded usb capabilties that would make a 1 chip solution.

    Spin looks like it takes the best parts of several languages to provide ease of use with the hardware depth needed for a ucontroller.· It seems heavily C based to me, and as a result I'm not sure that C is really all that much more difficult to use...· If you can learn Spin, you can learn C.

    The downside of Spin is it's speed.· If you need to accomplish time intensive tasks, you need to revert to Pasm.

    Not a knock against the Prop, but imo the examples in the OP are not the Prop's selling points; any controller can do that, and if you are a professional then I would guess you have decent tools available that should make the development process a productive one.
  • CassLanCassLan Posts: 586
    edited 2009-08-18 12:43
    Also I would like to add that this is the MOST active message board I have ever used...its unreal [noparse];)[/noparse]
    Welcome!!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    NYC Area Prop Club

    Prop Forum Search (Via Google)

    ·
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-08-18 13:05
    @DurbanFlyBoy

    Welcome to the Propeller and forums! The Propeller is extremely flexible!
    I refer to it as microcontroller sillypuddy here.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • he1957he1957 Posts: 58
    edited 2009-08-18 13:21
    Gidday DurbanFlyBoy,

    Welcome. Indeed, yes, the Propeller is one amazing piece of Engineering with some incredibly flexible application possibilities with minimal external support hardware/software.

    What platform (board) did you get and why?


    Cheers

    HarryE.
  • DurbanFlyBoyDurbanFlyBoy Posts: 7
    edited 2009-08-18 18:08
    I chose the demo board which has the vga, tv, usb, PS/2 ports etc. I also ordered a whole lot of toys with it (LCD TV display, accelerometer, and a few props and FT 232RQs to get me going in development. And I am having lots of fun from bothends, firmware and the frontend software development.

    I have 2 projects I ve earmarked to introduce the prop, it's a vital issue to port over, I dont know if you guys have heard but it's all over for the SX, received an end of life notification from Parallax a few days ago. Nevertheless, change is sometimes good, this case being no exception.

    Regards
    Allan
Sign In or Register to comment.