Shop OBEX P1 Docs P2 Docs Learn Events
Prop is King — Parallax Forums

Prop is King

I have most of the devices out there. Rasberry Pi ( Linux platform ) , Arduino , micro chip pickit3 , basic stamp2, sx and X-code (Apple) The rasberry used to be a mission to get loaded. You had to download noobs, rasbiam on a SD card then set- up your lan etc. I like the Basic stamp and Propeller. Just download the prop tool or stamp and your up and running with some examples. The stamp Basic is fun and easy to use.
«1

Comments

  • Heater.Heater. Posts: 21,230
    We all love the Prop. "King" though? Depends what you want to do.

    The Pi has always been dead easy to use. Download an image, blow it to SD, boot Pi, it connects to your LAN, job done. Mind you it always worked without a LAN connection as well.

    The Prop was troublesome, originally no way to program it without installing Windows first. Which one does not want to do.

    Luckily there were enthusiasts coming to the rescue, putting a lot of effort into creating, PROPASM, HomeSpun, BST, Catalina, prop-gcc, SimpleIDE, Propeller IDE, the various BASICs and Forths and a ton of stuff I have probably forgotten.

    A big thank you to everybody!


  • How about a propeller tool for Linux. Load the prop tool on your Pi and program the prop from your Pi
  • When I loaded the Pi I needed a Windows PC to load the noobs. No different then using a Win PC to load the prop tool. So I could not take the Pi out of the box and run it unless I bought a preloaded SD. For me two different animals Propeller multi core micro controller is like several arduinos in one package. Pi is like running your desktop PC. So it depends on your application if you want easy programming start with the Basic stamp2 and then transistion to spin. Pricing , all of those Cores for only seven bucks gives you eight cores and 32 I/O
  • That would be PropellerIDE, or OpenSpin and your favorite editor. There is a loader that will load the prop via USB or through the console port.
  • Heater.Heater. Posts: 21,230
    edited 2015-11-27 04:03
    You never needed a Windows PC to load noobs or any SD image. Linux or MAC would do fine. Unlike working with the Prop originally where Windows was the only choice. It it were not for Cliff Biffle's PROPASM and later BradC's BST I would have had to pass by the Prop.

    We already run SimpleIDE and Propeller IDE on the Raspberry Pi and program Props from there.

    You are right. Prop and Pi are very different animals for different purposes. I believe there is scope for them to work together in some applications, each offering the strengths they have.


  • @Heater

    You really need to get over this anti-Windows rant. MS has enabled many of us that don't have your expertise to actually get the job done and bring a product to market. Really is becoming tiresome to this forum reader.
  • Heater.Heater. Posts: 21,230
    Mickster,

    That was no kind of "rant". That was a very short, refrained, comment in passing, just an aside. Hardly noticeable.

    I'm very glad to see that Windows (or Mac or whatever) has allowed many people to work magic with the Propeller and everywhere else. I'm certainly not saying tools should not be usable there.

    However I do have an opinion about the dependency of things on a single source of supply which I express now and then. I believe such opinions are allowed here.

    It's pretty harmless isn't it? Not like I was advocating strangling kittens or something shockingly objectionable.

    I won't be getting over this particular issue, it has caused many problems over the years and continues to do so.
  • Heater. wrote: »
    It it were not for Cliff Biffle's PROPASM and later BradC's BST I would have had to pass by the Prop.

    Yet you have no problem using a single source chip from a company that is a tiny fraction of the size of MS?

  • lardomlardom Posts: 1,659
    edited 2015-11-27 18:29
    Mickster wrote: »
    Heater. wrote: »
    It it were not for Cliff Biffle's PROPASM and later BradC's BST I would have had to pass by the Prop.

    Yet you have no problem using a single source chip from a company that is a tiny fraction of the size of MS?
    Heater is an engineer. He's got the credentials to say what he said.
    If at some point you need a better understanding of, say, Fourier transforms...Heater did a tutorial.
    He is one of some very smart people here on the forum.

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2015-11-28 11:18
    There indeed is great utility in the Propeller to do many many things digitally.

    1. It provides a deterministic solution that multi-tasking OSes challenge with extra issues and often interfer with.
    2. Configuration and programing doesn't require learning a whole OS.

    Amongst microcontrollers without an OS, the Propeller is a compact, direct, and simple solution. Using a Linux solution from any source in its place when not needed is just additional complexity.

    You don't require mangement of Linux, as one does with Raspberry Pi.
    You don't require mangement of C++, as one does with an Arduino solution.
    Just a minimal effort to install and IDE in your OS of choice, and get to the task you desire.

    Linux is educationally useful and industrially useful. But Parallax does have to survive by sales, and much of the world is still bumping along in Windows.
  • Heater.Heater. Posts: 21,230
    Mickster,
    Yet you have no problem using a single source chip from a company that is a tiny fraction of the size of MS?
    A very good point.

    The size of the company does not protect you against obsolescence. Had you designed around Intel's 432 or i860 chips your investment would be have been lost. Chips disappear all the time. Luckily the abstraction of software eases the pain, just rebuild your code for a different chip/architecture with a bit of porting work perhaps. Been there, done that, many times.

    Down at the low levels of micro-controllers we have a bit of a problem. MCU's are generally single source items. You use Propeller, PIC or AVR or XMOS or whatever. Generally it's not trivial to move the code you create for one of them to another, especially if it relies on unique features of the device you chose.

    As much as we might like to use MCU's with multiple vendor support it's just not possible.

    Given Parallax's track record with the STAMPs I am prepared to trust them to keep the Prop available well into the future. As much, or more so than Microchip, ATMEL or XMOS etc. And therefore prepared to invest time in developing for the Propeller.

    Which brings us back to the dev tools. Closed source, single platform, dev tools dictate the operating system you must use which in turn dictates the hardware you can use to run them on. All the expense, fuss and bother we could do with out.

    As such I'm over the moon that Parallax belatedly embraced open source and cross platform dev tool support.
  • Heater.Heater. Posts: 21,230
    lardom,

    Thank you for the kind words.

    For sure there are many on this forum smarter than me. I learn from them. It's better no one asks me any deep questions about the Fast Fourier transform. It took me forever to get the little understanding of it I have.
  • Heater. wrote: »
    lardom,

    Thank you for the kind words.

    For sure there are many on this forum smarter than me. I learn from them. It's better no one asks me any deep questions about the Fast Fourier transform. It took me forever to get the little understanding of it I have.
    I tried for over a month to wrap my head around FFT's, DFT's and Goertzel's algorithm. I even bought a book on calculus. It's still too advanced for me. I'll eventually get back to it.
  • lardom wrote: »
    Heater. wrote: »
    lardom,

    Thank you for the kind words.

    For sure there are many on this forum smarter than me. I learn from them. It's better no one asks me any deep questions about the Fast Fourier transform. It took me forever to get the little understanding of it I have.
    I tried for over a month to wrap my head around FFT's, DFT's and Goertzel's algorithm. I even bought a book on calculus. It's still too advanced for me. I'll eventually get back to it.

    Off topic, I know, but go read the book at http://www.dspguide.com. That should help.
  • Heater.Heater. Posts: 21,230
    edited 2015-11-29 16:19
    The dspguide is a great resource. Unfortunately it will not help you understand the FFT unless you are well versed in complex numbers.
    That's reasonable as one has to contain the scope of a book and such maths is presented in many other books.

    Even if you have a grasp of complex numbers from school days it's still a struggle.

    I have the, perhaps crazy, idea that is possible to explain how the FFT works without ever frightening people putting them off by mentioning calculus or complex numbers or i. Just using the idea that we have a number type that comes in two parts [a, b] with some special rules for adding and multiplying such quantities. We are going to use that number type to represent out input signal samples and the sines and cosines of the frequencies we are testing for.

    I have yet to arrive at a good way to present this approach :(

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2015-11-29 17:19
    Flight control for the quadcopters use Madgwick to determine rotation from the 9DOH sensors. That is a completely different application of complex numbers -- similar problems of getting people started with understanding them.

    From a teaching standpoint, I have strong doubts about trying to work around them rather than just seeking out a better presentation in any actual application.

    Their use in Madgwick is a specific special case. So once the special case has an application, it becomes quite clear.

    Real applications provide the motivation to work through all the details. FFT means nothing to me without a useful application. The same goes for Madgwick.
  • Joseph Fourier did not use complex numbers when he developed the Fourier Transform. Another mathematician applied complex numbers to the Fourier Transform later on. So it is certainly possible to describe the FFT using just sines and cosines. It's just that the use of complex numbers makes the math more concise.

    To fully understand the FFT one should first acquaint themselves with the following:

    - Fourier Series
    - Nyquist Sampling Theorem
    - Discrete Fourier Transform (DFT)
    - Euler's Formula

    Without a basic understanding of each of these subjects it's hard to understand exactly what the FFT does and how it works.




  • Seairth wrote: »
    lardom wrote: »
    Heater. wrote: »
    lardom,

    Thank you for the kind words.

    For sure there are many on this forum smarter than me. I learn from them. It's better no one asks me any deep questions about the Fast Fourier transform. It took me forever to get the little understanding of it I have.
    I tried for over a month to wrap my head around FFT's, DFT's and Goertzel's algorithm. I even bought a book on calculus. It's still too advanced for me. I'll eventually get back to it.

    Off topic, I know, but go read the book at http://www.dspguide.com. That should help.
    That is a great link. It's 640 pages and downloadable for free. Thank you.

  • Actually, dspguide
    lardom wrote: »
    Seairth wrote: »
    lardom wrote: »
    Heater. wrote: »
    lardom,

    Thank you for the kind words.

    For sure there are many on this forum smarter than me. I learn from them. It's better no one asks me any deep questions about the Fast Fourier transform. It took me forever to get the little understanding of it I have.
    I tried for over a month to wrap my head around FFT's, DFT's and Goertzel's algorithm. I even bought a book on calculus. It's still too advanced for me. I'll eventually get back to it.

    Off topic, I know, but go read the book at http://www.dspguide.com. That should help.
    That is a great link. It's 640 pages and downloadable for free. Thank you.

    It's actually a fast read. Don't be tempted to skip sections you think you already know, though. The way he explains the simple stuff primes your brain for understanding the hard stuff.
  • Heater.Heater. Posts: 21,230
    Except the Madgwick IMU does not use complex numbers. It uses quaternions.

    Complex is a + ib
    Where a and b are real.
    And i * i = -1

    Quaternion is a + bi + cj + dk
    Where a, b, c and d are real numbers.
    And i * i = j * j = k * k = i * j * k = -1

    Of course if we set c and d to zero the quaternion reduces to a complex.

    A complex number can represent a point in a two dimensional plane. A quaternion can represent a point in three dimensional space. Hence the usefulness in calculating the orientation of a quadcopter.

    That's all I know. Let's not confuse the issue.
  • Heater.Heater. Posts: 21,230
    edited 2015-11-29 19:38
    Dave,

    I'm totally with you on the prerequisites for understanding FFT.

    Except I have a feeling it can be explained without mentioning complex or Euler or e or PI even.

    If a value is defined as the number pair [a, b] then an addition of two such values is defined as:

    [a, b] + [c, d] = [a + c, b + d]

    Multiplication is defined as:

    [a, b] * [c, d] = [ac - bd, bc + ad]

    These given as definitions. To be accepted no questions asked. In much the same way you might ask someone to accept Euler's identity without proof.

    It can then be demonstrated that using such rules gives rise to multiplication causing rotation of a point on a 2d plane around the origin.

    Ergo it should be possible to explain how the FFT does it's magic without any intimidating looking maths, only simple algebra.
  • jmgjmg Posts: 15,173
    Heater. wrote: »
    Down at the low levels of micro-controllers we have a bit of a problem. MCU's are generally single source items. You use Propeller, PIC or AVR or XMOS or whatever. Generally it's not trivial to move the code you create for one of them to another, especially if it relies on unique features of the device you chose.

    As much as we might like to use MCU's with multiple vendor support it's just not possible.
    8051 MCUs are binary compatible and multi-sourced, often in compatible footprints too.

    ARMs are binary compatible within sub-groups only, but are also multi-sourced, tho not so well in the compatible footprints area.

    That leaves peripheral code as the only porting issue, and maybe a PCB re-spin if the package choice changes.



  • Heater.Heater. Posts: 21,230
    The 8051 is a wonderful thing. The fact that many vendors produce it is great. Only thing is I left the 1980's, well, in 1990 and have no desire to go back to 8 bits unless I really have to.

    Thank goodness for ARM. Of course by the time we get to that level of device most of the code is on C and it starts to not matter about binary compatible. As you say, the peripheral code will probably need tweaking so your application needs recompiling anyway. In this way I have moved products around PowerPC, ARM and MIPs processors.

  • Heater. wrote: »
    It can then be demonstrated that using such rules gives rise to multiplication causing rotation of a point on a 2d plane around the origin.

    Ergo it should be possible to explain how the FFT does it's magic without any intimidating looking maths, only simple algebra.
    I looked at the equations and thought..."maybe if I..."
    Then I looked at the explanation quoted above.
    Sigh...I'll leave the room now.

  • jmgjmg Posts: 15,173
    edited 2015-11-29 20:59
    Heater. wrote: »
    The 8051 is a wonderful thing. The fact that many vendors produce it is great. Only thing is I left the 1980's, well, in 1990 and have no desire to go back to 8 bits unless I really have to.

    The new Silabs EFM8LB1 & EFM8BB3 are examples of what the 8051 has morphed into since 1990.
    This gives 12 or 14b ADC and 12b DACS and fast i2c slave, as well as UART/SPI/PWM, from under $1

    If I pop over to Digikey and look for 2-4 chan 12b DACs, they start at well above the MCU price. - the 50/72 MIP 8051 essentially comes for free....

    ( that is DAC alone, not even including ADC & Flash etc, 14b ADCs with 4+ channels start over $5/1k )

    That means you do not need to 'go back to 8 bits' - the main CPU you use can still be Prop/ARM/RaspPi/PIC32 etc, but the connected peripheral choices have quietly gotten cheaper and smarter.


  • Heater.Heater. Posts: 21,230
    That is cool jmg. As long as I don't have to think about programming it.
  • jmgjmg Posts: 15,173
    Heater. wrote: »
    That is cool jmg. As long as I don't have to think about programming it.
    Well, yes, there is that - but the code to run peripherals only is quite small and easily shared.

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2015-11-30 05:50
    My main point is that we usually start with applied maths, applied sciences, and applied engineering to make introduction to these topics easier. Complex numbers are easier to grasp with an actual application. Nonetheless, I was introduced to them in high school algebra without any application and no menton of thier related polar notation. So it was pretty much just abstract algebraic manipulation.

    ++++++++

    I went to bed last night wondering if fft on the Propeller might be used for voice identity recognition. After all, don't submarines use fft sonar data to identify the ships and boats nearby by an fft sonar signature?

    If so, it would be a useful application to restrict voice command inputs to one person.

    The Propeller would have a cog in a standby loop waiting for an audio input sample that is loud enough and long enough to analyize. This might be a name given to your Propeller. If the fft profile is appropriate, it would then say "Hello, sir" and then listen to a series of auto inputs and perform the related tasks. Another key word or phrase - such as "That's all" - would put it back into "awaiting recognition mode".

    If someone else attempts to call your computer by name, it simply would not reply. The fft would provide security.
  • Heater.Heater. Posts: 21,230
    I agree loopy. Unless you are a math head it helps to have any maths you are being taught related to some real world use. Not many people are stimulated by learning maths for it's own sake. At least not initially.

    I always like to have a picture in mind. Can hardly understand anything if I can't get a picture of what it is doing into my head.

    For example. The inverse square law. I = S / 4πr² Fine, means nothing without the picture of the geometry behind it.


  • It's not hard to wonder off and think "Why are we messing around with $8 micro-controllers when we can get full computers for $5?".

    http://www.adafruit.com/products/2885

    But, for me, they serve two different purposes. For one, you have the headache of managing a full-blown computer. Updates, patches, performance issues, threading, etc. Not to mention the insanely complicated/expensive process of creating your own kernel, graphic drivers, etc. for that platform.

    Much easier to just slap some "kernel of the week" on it and use it for a purpose like MAME emulation or robot brains.

    I'm going to buy about 10 of those when they are available. Just because they are so cheap. And it's for a good charity.

    But, at the end of the day, I am MUCH more excited about building computers based off 6502's and Propellers. :-)


Sign In or Register to comment.