PBP projects for R/C models


Closed Thread
Results 1 to 40 of 772

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Oh, yea, the error message

    That came after I hit the WRITE button. I was asking it to load that .hex file. It seems to load mostly correctly, but comes up with that funny error.

    Ken

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


    Did you find this post helpful? Yes | No

    Default The schematic shows.....

    The BIT Whacker schematic shows the connections from the 4 pin USB port [UBUS and USBID] to be different than the connections from 5 pins into J6 [PGB,PGC and RB2]. When "Writing Device PROGRAM FLASH and BOOT FLASH" it just sits there with the little red BUSY light flashing on the PICkit2 connector. Forever.....

    I tried to use the USB port. Both to load the .hex file and to communicate. No success of any kind. Notta.

    At least PICkit2 through J6 illuminates the blue POWER LED.
    And apparently embeds the EEPROM.

    I tried loading HELLO WORLD.hex. No luck at all. Same error message but no success loading EEPROM.

    I do not know what to do. I can write fine in C. But I have no idea where or how to start. The only communication I get with the BITWhacker is with my PICkit2 USB connector.

    I am getting discouraged. The only reason for leaving the original 16F887 was the cost of multiple PBP licenses. I really don't need the 32bit power just to move my robocar.

    Ken

  3. #3
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    I am getting discouraged. The only reason for leaving the original 16F887 was the cost of multiple PBP licenses. I really don't need the 32bit power just to move my robocar.

    Ken
    Take a look at this mikroBasic PRO for PIC
    You can download a fully functional FREE demo version (and all relevant documentation) of the software. The only limitation is that the compiler output is limited to 2,000 words of generated PIC code - you code will probably fit within this limitation so any number of students can use the compiler legally for free. Over 415 PIC microcontrollers are supported (PIC12, PIC16 and PIC18). There is a also a C compiler available which I highly recommend over BASIC to get your students started on the right track from the get go.


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


    Did you find this post helpful? Yes | No

    Default 2000 words is probably enough

    Quote Originally Posted by rmteo View Post
    Take a look at this mikroBasic PRO for PIC
    You can download a fully functional FREE demo version (and all relevant documentation) of the software. The only limitation is that the compiler output is limited to 2,000 words of generated PIC code - you code will probably fit within this limitation so any number of students can use the compiler legally for free. Over 415 PIC microcontrollers are supported (PIC12, PIC16 and PIC18). There is a also a C compiler available which I highly recommend over BASIC to get your students started on the right track from the get go.

    rmteo, you have a good point. I have not yet used 2000 words in my PBP programs with the wall racing robocars. My guess is that using photo cells will be no more expensive code-wise.

    Thank you for the link.

    Ken

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


    Did you find this post helpful? Yes | No

    Default NUTS! Wrong again

    UART's echo was ON.

    Ken

  6. #6
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    You may be interested in this.


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


    Did you find this post helpful? Yes | No

    Default Thanks, remteo, for the video link

    Quote Originally Posted by rmteo View Post
    You may be interested in this.

    This vehicle reminds me of the original 'turtle' for which LOGO, the language, was developed.

    I am on a slightly different tact. I am trying for a robocar that looks like and is driven like a modern automobile. The model level 1/10 sized radio control vehicles fit that description. They have accurate miniaturization and good speed (up to 30 actural mph). This may connect with middle school students.

    Ken

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


    Did you find this post helpful? Yes | No

    Default

    Ok, but after you said that, you said:

    Quote Originally Posted by Kenjones1935 View Post
    Nutts. Wrong again!

    UART's echo was ON.
    And, you should get a "??HELLO?? command not recognized" or something to that effect back. So I would say nutts, it was the echo.

    But I still don't have enough information to advise you any further. I don't know what step you are on.

    Yes, the new .inf is different. It is for using with the firmware originally in your UBW32. (Which I believe is only in your untouched device). It is for step 2, if you are on step 2.

    Walter
    Last edited by ScaleRobotics; - 16th October 2010 at 19:56.
    http://www.scalerobotics.com

  9. #9
    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
    The BIT Whacker schematic shows the connections from the 4 pin USB port [UBUS and USBID] to be different than the connections from 5 pins into J6 [PGB,PGC and RB2].
    I think you are sticking your Pickit in the wrong port.

    I know they are not spelled out as nice as the schematic, but, your pickit goes on J5 (same one I mentioned earlier). Later, after programming, you can try to plug in the usb host cable. The other 5 pin spots on the board are for USB.

    Name:  pins.PNG
Views: 976
Size:  7.1 KB

    Here is where it goes. Should be a lot happier now...:

    Name:  plug in.PNG
Views: 1019
Size:  21.5 KB
    Last edited by ScaleRobotics; - 15th October 2010 at 04:27.
    http://www.scalerobotics.com

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


    Did you find this post helpful? Yes | No

    Default Not good....

    I think my PICkit2 is correctly connected. I may have typo'd J5 and/or J6. Here's what I have been doing.

    Name:  BITWhacker_PICkit2_72.jpg
Views: 1555
Size:  30.8 KBName:  BITWhacker_PICkit2_2_72.jpg
Views: 1587
Size:  29.2 KB

    If I attach the USB and the PICkit2 I get the blue POWER light. My Hyperteminal does seem to see the PIC. If I eliminate ASCII echo and I type 'hello' I do get 'hello' on my Hyperterminal GUI. That is GOOD. Trouble is I disconnected the PICkit2 and reconnected and HELLO no longer appears.

    I did not connect PICkit2 pin6. That is used as an input to the "LOGIC TOOL".. Everything seems normal except for that error message (about maximum). It seems to download the .hex correctly. But nothing happens. ie the EEPROM embedded code does not to do anything visible. If there were a LED blinking example I could try debugging. The HELLO WORLD would not embed.
    Last edited by Kenjones1935; - 16th October 2010 at 01:47.

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


    Did you find this post helpful? Yes | No

    Default UART tool does work..

    Note, below. I get what I type. I think 'echo' is turned off. I think I am connected. Still no StickOS, however.

    Name:  GITWhacker_UARTtool.jpg
Views: 1360
Size:  15.7 KB

    Ken

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