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 Yay!

    Now you can start to write some simple programs. They show some examples in the manual. You will need to look through the Quick Reference guide here: http://www.cpustick.com/downloads/quickref.v1.80.pdf for all the commands.

    Some of the interesting ones are:
    help
    help pins

    And you can set the heartbeat LED (if it is not blinking already) by:
    pins heartbeat RA1
    (You will have to look on the board to see which port goes to the LED you want to set as heartbeat, RA1 is PORTA.1 and works on my Explorer 16 board).

    This prints out an analog result to the terminal:
    Code:
    10 dim pot as pin an5 for analog input 
    20 print "potentiometer= ",pot
    You would probably be interested in the Servo example on page 30:
    Code:
    > new
    > servo
    45
    > 10 dim servo as pin dtin1 for servo output
    > 20 for servo = 50 to 250 step 10
    > 30 sleep 50 ms
    > 40 next
    > run
    Note that you will have to change the servo out pin to one your hardware has. To see the available ones, use the "help pins" command. It will show you at the bottom which pins are available for the servo command. In my case, I changed dtin1 to rd1.
    http://www.scalerobotics.com

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


    Did you find this post helpful? Yes | No

    Default Is there a way to capture this forum thread?

    scalerobotics,

    My focus is changing from teaching STEM to middle school kids to teaching the teachers about teaching STEM to public school kids.

    Documenting our conversations over the last months might give me some insight on the process. Is there a way to capture this thread as a .doc or a .pdf file?

    Ken

  3. #3
    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
    Documenting our conversations over the last months might give me some insight on the process. Is there a way to capture this thread as a .doc or a .pdf file?
    Once a routine is made, a lot of it can be forgotten (thankfully). I don't see any good ways to do this, but here is one way. It will only get you 40 posts at a time though. I have looked for a way to change this setting, and it looks like it is not settable, at least by me.

    If you goto thread tools, and click on show printable version, you get something of a better format. Then you can go to file, and save as, and save it as html. While you are on this printable version, you can then select the next page of posts, and select save as, then call it page2 or something. This isn't ideal, but it's the best I can come up with.
    http://www.scalerobotics.com

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


    Did you find this post helpful? Yes | No

    Default Saving the thread w as just a thought, but

    The cost of the PICWhacker ~$40 is too much. Its appeal is that all the PICspins are available through 0.1" centered holes. Is there any PC product of which you know that has this PDIP configuration with only the PIC and a USB connector aboard? You guys had a forum "off topic" that sounded like you all built some yourselves. Did this work? I know that I could not solder those tiny leads on the PICWhacker board.

    Ken

  5. #5
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    You have the $2 option by going with a 40DIP PIC16F887/4 and mikroC.

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


    Did you find this post helpful? Yes | No

    Default I have been using the 16F887

    My big hesitation with switching to MicroC is configuring a USB connection. I have been very successful with the PICkit2 package.
    This experience with the USB port using Hyperterminal has taxed my understanding of the system.
    I hesitate to change. I assume I can get a USB compatible (0.1" centers) connector at our local YouDoIt Electronics store. I'll do more reading from the mikroBasic WEB page.

    Thanks, Ken

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


    Did you find this post helpful? Yes | No

    Default I know why my first board did not work

    I just now found that very tiny Power Source switch. On the first board is was in the wrong position to get power off the USB.

    Now it tells me!

  8. #8
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    My big hesitation with switching to MicroC is configuring a USB connection.
    Why would you need a USB connection? Just program the PIC with the PicKit2 (or other compatible programmer) using ICSP - mikroC or mikroBASIC doesn't care.

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