Can a pic do several things at once?


Closed Thread
Results 1 to 32 of 32

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    There's probably reasons why they came with installation CDs...
    Well it's unlikely an installation cd would be much use to me the way I want to use it.....
    And the USB version has no drivers on cd.

    Anyway I've found a sual mini usb/bluetooth GPS receiver that uses the same chipset i wanted, and outputs all the NMEA sentences I would be interested in
    Output terminal: Mini-USB (CMOS Level)
    ‧ NMEA protocol output : V 3.01
    ‧ Baud rate : 38400 bps
    ‧ Data bit : 8
    ‧ Parity : N
    ‧ Stop bit : 1
    ‧ Output format :
    Standard : GPGGA (1time/1 sec), GPGSA (1 time/5 sec.), GPGSV (1time /5 sec.), GPRMC (1time /1 sec.), GPVTG (1 time/1 sec)
    Would this CMOS level interface directly to a pic with no other hardware needed so I could wait for the nmea sentence I wanted and then act upon that sentence?

    In case anyone's interested... http://www.holux.com/JCore/en/produc...ec.jsp?pno=227

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    If all you are after from the GPS is speed, one of these might do. I have not used them yet but I hear they are OK. Both are serial interfaced.

    http://www.sparkfun.com/commerce/pro...roducts_id=465

    http://www.parallax.com/Store/Microc...%2cProductName
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    You need a USB host to receive data from a USB device. A PIC is not powerful enough to act as a USB host.

  4. #4
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA.
    Posts
    130


    Did you find this post helpful? Yes | No

    Default

    Karen,
    according to the link you provided, you could get RS-232 serial out of the gps unit using an RJ-45 connector. These are the same connectors used for ethernet connections, and you can purchase a cable that has this on one end and a nine pin serial plug on the other. You can make your own cable, but you need a tool to press the wires into the connector. You can also get PS-2 connectors, but they are harder to find and cost more. Of course you might find a broken PC keyboard, and take the cable off of it. Darrel's Instant Interrupts will be your best friend for this project.

    Jerry.
    If your oscilloscope costs more than your car...

  5. #5
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    A cheaper option would be to use a hall sensor mounted on your drive shaft and have the pic count the rpm. Convert that to mph and voila! You have your speed.
    (If you want to get even more fancy, you could then hook the pic into your throttle and hey presto!, you've just built a cruise control for your car. Lets see the GPS do that!!)

    Good luck.

    Squib

  6. #6
    Join Date
    Mar 2008
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Squibcakes View Post
    A cheaper option would be to use a hall sensor mounted on your drive shaft and have the pic count the rpm. Convert that to mph and voila! You have your speed.
    (If you want to get even more fancy, you could then hook the pic into your throttle and hey presto!, you've just built a cruise control for your car. Lets see the GPS do that!!)

    Good luck.

    Squib
    I would have considered that but I've already got something similar, its my speedometer, my reason for wanting to do the above is the accuracy of speed derived from GPS signals, where using sensors on the driveshaft or anywhere else will never be anywhere near accurate due to tyyre sizes, and even the tyre pressure dropping would change the speed reading's accuracy thats why I ruled out sensors on the cars mechanical bits

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking

    Hi, Karen

    I think you could use one and only Pic ...

    Let's see ...

    Speed : you can't read digits @ more than 2 Hz ... and how often can you retrieve data from the GPS ???
    DS1820 : Needs around 1 sec to make it's measure ... same comment for reading.

    the PWM clock also can be used as the digits Multiplexing clock ...

    Controling Solenoïds : aha ... that look dealing with a turboCharger wasteGate ... which is the PWM refreshing rate 40 Hz ? 100 Hz ? 200 Hz ?

    No matter ... the PWM can Handle that with little trickery ( look at the recent convenient Thread on how to do that ... on MkBasic forum !!! )

    Sooo, that lets plenty of time to make calculations on temp, GPS Data, Solenoid drive ...
    just have a neat "scenario" ( Organigram ) and it's in the pocket !!!

    Alain

    PS: Mhhhh, Blondes put their hands under car hoods now ??? That's really THE news !!!
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  8. #8
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by karenhornby View Post
    I would have considered that but I've already got something similar, its my speedometer, my reason for wanting to do the above is the accuracy of speed derived from GPS signals, where using sensors on the driveshaft or anywhere else will never be anywhere near accurate due to tyyre sizes, and even the tyre pressure dropping would change the speed reading's accuracy thats why I ruled out sensors on the cars mechanical bits
    Well thats your call, but as others have said, this approach would be more accuate than a gps. Whats more, the car needs to be moving to get an accurate speed (and direction). It would look a bit funny when your stopped at the traffic lights and your display shows you are moving at 1mph. I guess you need to take this into concideration and perhaps using a sensor on the shaft show zero speed when the car is stopped.

    Oh yeah, and as far as nmea is concerned, the pic (speed) can handle it just fine untill the you start processing very long strings where you run out of memroy.

    One problem I have had though is when sitting in a waitstring($GPVTG) waiting for that string to arrive, the pic can't do anything else. In those cases you could use a second pic just.... but then it all starts to get messy.

    Thats my 2c worth.

    Squib

    squib

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. Midi, Interrupts and Pic better than SX28?
    By Lajko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th September 2008, 00:26
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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