Tachometer code problems.


Closed Thread
Results 1 to 4 of 4
  1. #1
    PICy's Avatar
    PICy Guest

    Default Tachometer code problems.

    Hello.

    My ebay purchase came through the door this morning - A PIC programmer & PICBasic Compiler v1.44 :-)

    After a lot of confusion i managed to get PBC working with CodeDesigner Lite, but i havent managed to get much further!

    I have done a lot of programming in the past, and the samples i have read shouldnt be too hard to get my head around.

    My first project (after the blinking light etc) is to make a tachometer. I have been reading up and think that 'pulsin' will be the best way to go, but im not sure. I am a little confused as half of the resources i have found for 'PICBasic' have either returned PBP, or other types of PICBasic. e.g. i spent a while reading up on variables, 'Dim myvar as Byte' and 'myvar VAR BYTE' didnt work, it took a while for me to realise that it probably wasnt my fault! Also, many people making tachometers have used a 'Count' command, but i dont think that exists in PBC either!

    My questions are basically;

    *Would pulsin be the best thing to use?
    *Are variables just refered to as B0, W1 etc? (using 'Symbol' to name them)
    *What happens if a number is too big to fit into a variable? Will the number overflow into the next var, or will only the left hand side be stored?


    Thank you for your time!
    PICy



    P.S. Is it just me, or can nobody post in the mel PIC BASIC board?

    The posting problem is noted... for the time being, this thread is still resident in the General section for anyone wishing to reply - Melanie

  2. #2
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    1,033


    Did you find this post helpful? Yes | No

    Default

    Posting in the mel PIC BASIC forum is now possible.

    You were the first to mention it so i had no idea it was locked out!

  3. #3
    PICy's Avatar
    PICy Guest


    Did you find this post helpful? Yes | No

    Default

    lol. If i was the first to notice, then I wonder how long it will be before someone posts in here next!

  4. #4
    BiscutWheels's Avatar
    BiscutWheels Guest


    Did you find this post helpful? Yes | No

    Default

    I just made one for our SAE formula car. I used the pulsin and it worked fine. I also used another chip with the pulsout command to simulate the ECU tach output, worked great.

    Nate

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Line following robot... problems with some code
    By nepstar in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th March 2005, 01:10
  4. Code dsigner lite problems
    By toalan in forum Off Topic
    Replies: 2
    Last Post: - 23rd February 2005, 20:08
  5. Tachometer code problems.
    By PICy in forum General
    Replies: 6
    Last Post: - 31st October 2004, 11:47

Members who have read this thread : 2

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