Making a .txt from a PIC Microcontroller? (Melanie may help)


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    hawk72500's Avatar
    hawk72500 Guest

    Exclamation Making a .txt from a PIC Microcontroller? (Melanie may help)

    I use a PIC16F876 to drive a DC motor with PWM.For sending the commands i have a Serial RS-232 connection of my PIC with my computer.If the PIC can compute the Torque and the rpm that motor spins how can i send the back to computer the values and save them to my computer as a text?

    e.g in form of

    0.000 12.00
    1.200 15.00
    2.300 5.00

    For MELANIE: Melanie once during a discussion inthis forum you referred to something like sending back values from pIC nad making them an Excel file.Can you send me a code or whatever might help me

    Thanks very much in advance either if you reply or not

  2. #2
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Lightbulb

    Setup a data packet with the values you want to log, and send them back to the PC over the serial line. Use the PC application to retrieve the data and store it however you need. You will more than likely have to develop a protocol so you can send commands to move the motor or commands to gather the data from the PIC. Sounds like you have half of the work already done. I'm assuming you wrote the PC interface with the PIC. Bruce... no need to pay for advertising... yet another free plug! HERE'S an example of what you could do. Get to know Bruce's site (if you haven't already), there's tons of examples to learn from there. Hope I've helped... Good luck!

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 18
    Last Post: - 7th April 2009, 21:46
  3. 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
  4. Useing Cygnal microcontroller with pic basic
    By Jhdgkss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th April 2006, 20:14
  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