Simple Maths Going Wrong


Closed Thread
Results 1 to 40 of 44

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Bill,

    After more testing, I can say that the problem I was seeing was due to my averaging the circular buffer after each sample.

    By taking 16 samples (at high speed) then averaging, the vane can never go more than 128 unless it's crossing zero and everything works fine. If the samples are slow enough that the vane can go more than 128, the problem shows up again.

    I'm sticking with SIN/COS/ATN.<hr>

    The program I'm using is DT_InstruMental. Something I've been working on for awhile that makes it easy to display info from the PIC graphically.

    It's still in it's infancy, but the only way to figure out what I need to do with it, is to use it. ... So I'm using it.

    Here's one of my favorites so far ...

    <object id='stUkhdQ01IR11XRl9VWV1aVF5T' width='345' height='308' type='application/x-shockwave-flash' data='http://www.screentoaster.com/swf/STPlayer.swf' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0'><param name='movie' value='http://www.screentoaster.com/swf/STPlayer.swf'/><param name='allowFullScreen' value='true'/><param name='allowScriptAccess' value='always'/><param name='flashvars' value='video=stUkhdQ01IR11XRl9VWV1aVF5T'/></object>
    DT

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default

    It is what I 've been dreaming!

    Can I have it?

    Ioannis

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    NO! You can't have my KEG of beer.

    Oh, you meant the program ...

    I hope that everyone will have it someday, some kind of shareware/crippleware/demo, don't know yet.
    But right now, you would hate me for the grief you would endure.

    It really needs to be more user friendly, which is why I'm trying to use it as much as possible, so I can figure out the best way to go.

    Before anyone gets it .. It must BE a dream, not a nighmare.
    <br>
    DT

  4. #4
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136


    Did you find this post helpful? Yes | No

    Default Vectors

    DT,

    I used StampPlot from Selmaware for a PID motor control demonstration last year, thoughts on it ~ may be of some interest in your development?

    1. Fantastic that I could produce a PC interface without learning Visual Basic.

    2. I think it was free, or I paid a very small amount of $ for the improved graphic design function.

    3. The complexity of the commands was OK once you had an example to modify ~ working with the User Guide alone was, in some cases, very difficult.

    4. The supplied controls, whilst functionally good, were visually poor ~ I imagined they were modelled on instruments in a Soviet 1950 power station.

    5. I would have been prepared to pay more for a better product that had the benefit of lots of polishing.

    6. However, excellent value for the very low cost ~ a labour of love for the developer.

    Regards Bill Legge

    PS Any recomendations for a book on learn Visual Basic?

  5. #5
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default

    Bill,

    Take a look at this software
    http://www.abacom-online.de/uk/html/...ab-expert.html

    I haven't used it yet but it looks like it would do the job. Has anybody used it?

    Robert

  6. #6
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Thumbs up

    Quote Originally Posted by rsocor01 View Post
    Bill,

    Take a look at this software
    http://www.abacom-online.de/uk/html/...ab-expert.html

    I haven't used it yet but it looks like it would do the job. Has anybody used it?

    Robert
    Here is I use it and is very good.
    My scope project.
    Attached Images Attached Images  

  7. #7
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default StampPlot with USB interface to PIC 18F4550??

    Quote Originally Posted by Bill Legge View Post
    DT,

    I used StampPlot from Selmaware for a PID motor control demonstration last year, thoughts on it ~ may be of some interest in your development?

    1. Fantastic that I could produce a PC interface without learning Visual Basic.

    2. I think it was free, or I paid a very small amount of $ for the improved graphic design function.

    3. The complexity of the commands was OK once you had an example to modify ~ working with the User Guide alone was, in some cases, very difficult.

    4. The supplied controls, whilst functionally good, were visually poor ~ I imagined they were modelled on instruments in a Soviet 1950 power station.

    5. I would have been prepared to pay more for a better product that had the benefit of lots of polishing.

    6. However, excellent value for the very low cost ~ a labour of love for the developer.

    Regards Bill Legge
    Bill, I also am trying to get an application going without having to use VB6. I need to interface a laptop computer to an 18F4550 based microcontroller via USB to read the data stored by the 18F4550 in its EEPROM over a 31 day period [93 bytes = 31 daily measurements x (date value, Data_LSB, Data_MSB) ] . I need the data to be inserted on the PC side into an Excel spreadsheet for plotting and analysis purposes by the user. It appears that StampPlot might be a candidate to do this, but it appears it really only works with BasicStamp and RS232 or serial interfaces and not USB. As a user of StampPlot can you advise me if I can adapt it to use for USB and PICBASICPro without a huge learning curve? My controller is done and my project has a short fuse so can't spend a lot of learning time to get the PC side and USB interface going Would really appreciate your advice!~
    Last edited by jellis00; - 27th May 2010 at 01:28. Reason: quote fix

  8. #8
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136


    Did you find this post helpful? Yes | No

    Default Stamp Plot Pro

    Jellis,

    I thought this thread was long dead! My thoughts on PIC/USB/StampPlotPro:

    1. StampPlotPro won't talk USB.
    2. I don't know enough about USB comms to know how one would 'change' an incoming USB data stream, inside the laptop, to get it to talk to StampPlotPro.

    I've now modified my weather station to record CSV files on a thumb drive by using a Vdrive2 module from Vinculum - about $50 - and transfer the data about once a month. However, this does not solve your need to get a 'real time display.'

    I expect there must be some 'easy to customise' softwear for a PC that talks USB and gives a virtual instrument panel.

    I keep putting off starting to learn VB. I'm told that it's quite easy? Thoughts on StampPlotPro:

    1. Fast and easy to cobble displays together.
    2. Documentation is pretty good.
    3. I paid the extra ($20 I think?) for the add on bits - worth it.
    4. The graphics are a bit '1950 Soviet power station' style - but you can add your own.

    Sorry to be of little/no help to you. If you solve it, please let me know how.

    Regards Bill Legge

  9. #9
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    If you use USB as CDC, it looks just like a COM port to the PC.

    You should be able to convert any SEROUT's to ARRAYWRITE's, then send the array out USB to StampPlot.

    Or you can send CSV text using CDC and capture it to a file with HyperTerminal.
    Then import to excel.
    DT

  10. #10
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    NO! You can't have my KEG of beer.
    Of course not! If I drink half of glass thenfor the rest of the day I 'll keep singing. And trust me, I am really bad singer!
    About the software, I have no problem with the way you are going to distribute it, as long as I do not have to learn Visual $omething.

    Ioannis

  11. #11
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default DT_InstruMental

    Sorry Internet Explorer only.
    It displays fine on Firefox 3.0.12 here.
    Bo

  12. #12
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by boroko View Post
    It displays fine on Firefox 3.0.12 here.
    Bo
    OH! Great, thanks.

    It must be my very old installation of FirFox that I never use.
    I should update it I suppose.
    <br>
    DT

Similar Threads

  1. Simple RF remote control code
    By Bruce in forum Code Examples
    Replies: 13
    Last Post: - 22nd January 2014, 11:45
  2. Simple Blinking LED - WTF!!
    By johnnylynx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st February 2010, 07:19
  3. Simple LCD code not working!...WHY?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th November 2009, 20:48
  4. what's wrong 16F877A simple code?
    By Macgman2000 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 30th October 2009, 02:11
  5. Doing Simple Math - getting the wrong answer
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th March 2005, 15:27

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts