PBP projects for R/C models


Closed Thread
Results 1 to 40 of 772

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Thank you very much Alain, just what I was looking for!

    Need to see how they do their "sync gap", but I notice he has a number of other enhancements as well ... interesting.

    Walter
    Last edited by ScaleRobotics; - 9th February 2010 at 22:28.

  2. #2
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Talking Been Preoccupied

    Thanks everyone for working on the RC PWM problems.

    Meanwhile I have built a autonomous toy car from the ideas voiced by fritsl in Lets Built Robots.

    The DPDT switches work. I have two separate battery packs. The power for the servo and the wheels shares nothing with the power for the PIC and other logic. Not even the ground circuit! This should keep the noise down.

    I am using the LED's on the PICkit2 to help debug. At least I can know which routines have been visited. I wish I could figure out a way to know what are in my variables. The USB programmer can read and write all memory locations. Where do I read about real time debugging?

    Oh, yes, my new PIC16F887 book arrived via air mail at the Fitchburg, MA Post Office. It is published by MIKROELEKTRONIKA d.o.o in Belgrade, Serbia. How small the world has become.

  3. #3
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Thumbs down Setting break points??

    That's the word I have been looking for.

    Is there a mechanism in PBP for setting break points.

    Once that is done, is there an easy way using PICkit 2 Programmer to read the contents of a particular register?

    Ken

  4. #4
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default They talk about using MPLAB IDE

    I see in the PICkit 2 Programmer HELP menu discussion of the Debugger tool. Part of MPLAB IDE.

    Trouble is, the programmer in MPLAB seems to not get along with the programmer in PICkit 2. I have not been able to make hide nor hair of MPLAB IDE. I have been using Microcode Studio PBP and PICkit 2 programmer.

    What am I missing?

    KEn

  5. #5
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Unhappy Serious hardware problem with PICkit2

    My PICkit 2 PORTB outputs do not consistently pull up the coils in the DPDT relays enough to activate them.

    The 16F887 outputs measure 2.8v to 3v when driving a coil. I did not find mention of this potential problem in the PICkit2 Manual.. Any ideas anyone?

    Is there another Microchip kit that has some output drivers?

    Ken

  6. #6
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    According to the data sheet, the output high voltage is VDD-0.7 (4.3V with 5V supply) when sourcing 3mA. The absolute max. current sourced/sunk by any I/O pin is 25mA. What does your relay require to activate?

  7. #7
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Unhappy You've got it.

    My ZETTLER AZ8222-2C-5DSE spec says:
    Nominal Coil VDC 5 volts
    Coil Resistance 125 ohms
    Must Operate VDC 3.8 volts.

    3.8/125 = 30ma

    One relay works out of six when driven by a PORTB output.

    NUTS!

    Ken

  8. #8
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    That's the word I have been looking for.

    Is there a mechanism in PBP for setting break points.

    Once that is done, is there an easy way using PICkit 2 Programmer to read the contents of a particular register?

    Ken
    The easiest way is to have your project do serial out using the debug statements. With your PicKit you can read the output using the uart tool. Using if then statements, you can set it to give you different information. I use this in trouble shooting a lot.

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. PBP Extensions, What are they?
    By PJALM in forum PBP Extensions
    Replies: 9
    Last Post: - 28th September 2021, 11:26
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. Making PBP code more modular
    By forgie in forum General
    Replies: 30
    Last Post: - 25th October 2005, 16:24

Members who have read this thread : 1

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