Shop OBEX P1 Docs P2 Docs Learn Events
stand alone woofer tester — Parallax Forums

stand alone woofer tester

hitswarehitsware Posts: 156
edited 2007-04-01 01:42 in Propeller 1
Could a stand alone woofer tester be done with the kit with the little lcd screen and keyboard? Using a flash memory (like for a digital camera) on the usb port (and boot up on it ?)

http://fullrangedriver.com/forum/viewtopic.php?id=1570


Post Edited By Moderator (Chris Savage (Parallax)) : 3/28/2007 3:14:02 PM GMT

Comments

  • T ChapT Chap Posts: 4,209
    edited 2007-03-28 02:20
    Your subject could be edited to make a little more sense for the post. First, what does the woofertester need to do to test the woofer? More than likely it could test it, but may or may not require external hardware depending on what the test is.

    Try to be a little more specific and someone may have a better answer. There is a method to boot up on an SD card, and new things in the works for booting off a USB drive, although I don't quite see what the purpose is yet to do that, as the board has an EEPROM already to boot from.

    Post Edited (TChapman) : 3/28/2007 2:33:18 AM GMT
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-28 02:24
    1) You'd have to define what you mean by a "woofer tester".

    2) By "kit with the little lcd screen and keyboard", do you mean the Propeller Starter Kit? Most Propeller setups have a small (32K or 64K) flash EEPROM that stores the initial boot program and is initialized using the Propeller Tool (IDE). The USB port is a USB to serial adapter only and won't work with a USB flash drive. There are 3rd party devices that can be attached (FTDI's Vinculum VDrive and GHI Electronics' USBwiz) that will let you read from a USB flash drive. You can attach an SD Card socket and there is a driver that will let you read and write PC compatible files and load other programs from the card, but not boot directly from it.
  • hitswarehitsware Posts: 156
    edited 2007-03-28 02:38
    >what does the woofertester need to do to test the woofer?

    produce a clean sinewave at incremented frequencies
    (flat response) through a 1kOhm resistor in series with a speaker.
    measure the voltage across the speaker.

    calculate from the f/v (impedometer)

    >There is a method to boot up on an SD card

    What's a "SD" card?

    >and new things in the works for booting off a USB drive

    I could use my windows pc to save the os on external 'e' drive
    and then take the flashcard and plug it into the usb on the kit?


    >although I don't quite see what he purpose is yet to do that, as the board has >an EEPROM already to boot from.

    Boots into what? Spin?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-28 02:56
    SD Card: "Secure Digital Card". This is a type of flash card used in digital cameras, PDAs like the Palm and Pocket PC.

    Again, the USB connector on the Propeller Demo Board (and Hydra) is slave-only and can only be connected to a PC. If you plug a USB device into it like a "USB thumb drive", nothing will happen. There are 3rd party devices you can buy pretty cheaply ($30) that can act as USB hosts and would connect to I/O pins on the Propeller.

    The Spin interpreter is in ROM on the Propeller chip. The included boot EEPROM is used to hold a Spin program (possibly with included assembly routines) that is loaded automatically and started on a reset (or power up).

    The Propeller can indeed synthesize a clean sine wave in the audio range. There is a demonstration program of this contributed in the Propeller Object Exchange (see ww1.parallax.com/Default.aspx?tabid=65 and www.parallax.com/dl/appnt/prop/AN001-PropellerCounters-v1.0.zip). The application note also discusses the Propeller's ability to do analog to digital conversions.
  • T ChapT Chap Posts: 4,209
    edited 2007-03-28 03:05
    The short answer is YES you can do what you want. The Propeller only needs to be programmed with the PC once after you have completed your code, after that the Propeller does not need the PC any longer. Your concerns for booting and the "OS" should not be a concern. Once you get a demo board of some sort, it will all makes very clear sense.

    If what you are getting at is the ability to "data log" the test freq response, then yes you can store this data on a USB drive or SD flash drive, and plug that into a PC for future use, graphing etc.

    Mike may be referring to the "Frequency Synthesis" object:

    Post Edited (TChapman) : 3/28/2007 3:11:45 AM GMT
  • rjo_rjo_ Posts: 1,825
    edited 2007-03-28 14:15
    Hitsware,

    Another version of the same answers stated differently:

    You would use your pc to program the Prop in the Spin Language/Environment... your testing program can then be permanently stored on the EEPROM.

    The Prop could then be completely disconnected from your PC and only attached to the woofer to be tested...

    To start the test you would push a button to reset the prop and start the test program running from the eeprom...

    If this is a pass-fail test with a few failure modes... then you could use an LED on the DEMO board to indicate pass or fail status.

    If you want to record the exact results of each test (frequency/response data)... those results could be stored to an SD card... which could then be removed and looked at on your PC.

    Any help you might need along the way is more than available in this forum. Simple questions are the best... everybody learns something from them.

    Everything you describe would be consider normal usage for the Prop.

    Rich

    If you can imagine IT... one or more Props can do IT... and the guys here can help you make it HAPPEN[noparse]:)[/noparse]
  • hitswarehitsware Posts: 156
    edited 2007-03-28 15:52
    Thanks for the responses. Just ran into a hitch. Downloaded the Propeller tool, but it won't install on my Win98. Any workaround?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-28 16:02
    The Propeller Tool won't work under Windows 98. It requires Windows XP (or Windows 2000).
  • hitswarehitsware Posts: 156
    edited 2007-03-29 02:00
    >The Propeller Tool won't work under Windows 98. It requires
    >Windows XP (or Windows 2000).

    LOL. Thanks. To transcend Bill Gates you gotta pay him.
  • hitswarehitsware Posts: 156
    edited 2007-03-29 04:35
    >There are 3rd party devices you can buy pretty cheaply ($30)
    >that can act as USB hosts and would connect to I/O pins on the Propeller.

    This is the thing (adaptor?) that I plug into the USB port (on my PC)
    And accepts (on the other end)
    The flashcard out of my wifes camera?
    In this case:
    external drive:/e
    Or something like that?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-29 04:53
    hitsware,
    Not quite. You're talking about a "memory card reader". This is indeed a thing that plugs into a USB port on a PC (or other USB "host") and accepts a flashcard from some digital camera. These come in several varieties depending on the kind of flashcard involved. Some of these "reader"s will accept several different varieties of flashcard. The most common varieties are: Secure Digital card, Compact Flash card, Smart Media card, and miniature versions of the SD card.

    I was talking about a device that can act like a PC with a USB port, but is designed to be controlled from a Stamp or Propeller or similar microcontroller.

    FTDI makes a series of such devices under the Vinculum name (see: www.vinculum.com). GHI Electronics (see: www.ghielectronics.com) makes the USBwiz.
  • hitswarehitsware Posts: 156
    edited 2007-03-29 05:17
    But mechanically is it the same?
    I.E. Is the 'USB' connector on the propellor board
    a conventional 'USB' connector?
  • T ChapT Chap Posts: 4,209
    edited 2007-03-29 07:58
    The actual "functionality" of the USB connection is the what you need to be concerned about on the Propeller boards. The boards that you can get with the Propeller do have USB connections, BUT, they are for programming the Propeller only. You cannot hook up a USB flash drive to them and get it to do anything. In other words, the Propeller will not recognize a USB flash drive if you plug it in, even thoyugh mechanically it will fit in the socket.

    What Mike has suggested to you is, that you CAN interface a whole lot of external devices to the Propeller, one such device is called the VDRIVE2, which IS a USB slave port that the Propeller can communicate with to read and write data. You have to buy it for under $30, and hook it up with a few pins to your Prop board. This particular device is new, and there is not a lot of code(objects rather) floating around for it as of yet, that will change soon.

    There is a fully functional object posted for another type of Flash card called an SD card, which is a memory card with various sizes available. This card also requires that you buy a card reader for it, and attach the reader to the Propeller board. Once connected, you can read and write data to it, then remove the card and take it to any PC that has a proper card reader attached(usually a dongle reader like what comes with cameras). You can dump the contents into the PC and read it just like a USB card. It appears just like a drive as you descibed.

    Post Edited (TChapman) : 3/29/2007 8:43:29 AM GMT
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-03-29 09:24
    hitsware,

    Now you know that you don't need a card to store the program are you just looking for something to store your results on?

    You can use a flash card with the propeller almost directly, you just need a socket and some code, it would not be worth trying to interface with a PC card reader:

    http://forums.parallax.com/forums/default.aspx?f=25&m=162235

    Or you could get a vdrive from FTDI like Mike mentioned and plug a little USB drive into it to store the data on. Then you can just plug it straight into your PC afterwards and read the data from a file.

    Graham
  • hitswarehitsware Posts: 156
    edited 2007-03-29 23:25
    Well, Hmmmmm......
    Backing up a little.
    Forget the 'woofer tester'.
    (refering to a thread linked to above(thanks)) [noparse]:)[/noparse] :
    What I would actually like is a stand alone 'computer'
    with a hardwired OS and accessible programmability.
    Like a C-64 (boots up in Basic (also the original IBM pc))
    My main emphasis being music.
    So I need fairly comprehensive 'sound' commands.
    At least 3 or 4 'voices'
    Definately a way to save programs.
    (I do algorhythmic pieces so not much memory required)
    I was thinking of the camera type flashcard (with attendant 'reader/writer')
    I.E. the gizmo on the end of a usb cable that I use to get pictures
    onto the pc from my wifes camera
    As a drive (to save files) (like the cassette with the C-64)
    Perhaps there's enough available memory on the Propellor
    to not need an external drive?
    It is non-volitile right?
    Obviously a newbie [noparse]:)[/noparse]
  • T ChapT Chap Posts: 4,209
    edited 2007-03-30 01:32
    Short answer is yes you can operate the Propeller as a small computer, the way to search is to go to the "Support for Using this Forum" and look under "Improved Search Engine", type in Femto Basic and read up on it, certainly you have some homework ahead of you before you start doing what you really want. You have to start small, so get a starter kit of your choice and budget, just anything to get started at square one, like making an LED turn on.

    You really have to be much more specific with what you are wanting to accomplish. If you say "fairly comprehensive 'sound' command", that doesn't translate very well to what the real functional goal is. Do you want to use the Prop as a multi voice synth, a sampler? There's no way to offer a suggestion with such limited info. Compared to many other processors, the Prop can offer a lot of capability with minimal external hardware. I'd suggest you just dive in and start learning. You will absolutely find applications for the Propeller.

    Post Edited (TChapman) : 3/30/2007 2:34:05 AM GMT
  • hitswarehitsware Posts: 156
    edited 2007-03-30 02:26
    >so get a starter kit of your choice

    Does the 'Hydra' do VGA?
    Or would it work with the little 2.5" LCD monitor?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-30 02:28
    Have a look at this thread: http://forums.parallax.com/showthread.php?p=604722. It talks about a Hydra Sound System, but, with minor changes, the same program can be used with other Propeller boards.
  • hitswarehitsware Posts: 156
    edited 2007-03-31 00:15
    Thanks Again [noparse]:)[/noparse]
    From the thread linked above it appears that on the Hydra the sound comes off pin 7 ?
    Can this be stereo ?
    On the Propellor board the sound comes off of 2 pins through attendant passive LP
    network ......
    To the 'headphone amp' [noparse]:)[/noparse] ???
    Is this more 'stereo' than the Hydra ?
  • hitswarehitsware Posts: 156
    edited 2007-03-31 00:24
    Plus !
    Somebody ought to do a DOS version of the 'Propeller Tool' [noparse]:)[/noparse]
  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-31 02:55
    The Hydra has monaural sound only. The Demo Board has stereo sound capability (two independent sound channels).

    Someday there might be a Spin compiler library like those available for the Stamps so that you could take a Spin source
    file and get a compiled binary file from it. I wouldn't count on it any time soon. You might get a compiler that actually
    runs on the Propeller first. You won't see anything for DOS unless you write it yourself. There just isn't a large enough
    market.
  • hitswarehitsware Posts: 156
    edited 2007-03-31 15:48
    The sound could be taken off any pin (or pins) though right?
    Seems like maybe the Hydra (book anyways) is geared more towards sound?
    What would be the best way to get a 'feel' for if I could handle 'Spin' without actually having the Propellor Tool installed? (sans Win2000)
    I'd go ahead and get one of the boards, but it appears I'd need to upgrade to Win2000 (and maybe my pc to handle the bloat), and that's quite an outlay for something that I may not be able to program. (plus the security issues with 2000)
    Thanks again for the help. [noparse]:)[/noparse]
  • hitswarehitsware Posts: 156
    edited 2007-04-01 01:36
    I have this on hand .....
    reading from the bottom of the pcb
    1 ea. BS2-1C
    1 ea. " NX-1000 " (a protoboard )
    1 ea. " Microcontroller projects with Basic Stamps " per Al Williams ....

    I've lost the software I had to go with it ...
    I ran ((may)run) it on a pc with no hardrive
    So I need to do bootable floopies ....
    I can download on my Win98 (and copy a floppy)
    BUT! ......
    Floppies with OS included .... dos 'system files'

    I did IIRC download (the floppy(lest system files)) from this site ?


    ·
  • hitswarehitsware Posts: 156
    edited 2007-04-01 01:42
    And perhaps important the cd that comes with the book ?

    maybe thats where I got the .exe ?
Sign In or Register to comment.