Shop OBEX P1 Docs P2 Docs Learn Events
robotic arm software — Parallax Forums

robotic arm software

anoopanoop Posts: 1
edited 2009-02-07 07:18 in Learn with BlocklyProp
I AM DOING A PROJECT USING PIC16F84A
THE PROJECT NAME IS ROBOTIC ARM
hay i have a program like this

Include "modedefs.bas" ' Include serial modes
si··· var PORTA.0 ···· ' Set portA.0 as our serial input pin
pos·· var byte··········· ' Define our storage location for the servo position information.
servo var byte········· ' Define our storage location for the servo number to move.
cont· var byte·········· ' Define a variable to hold the count.
portb = 0
trisb = 0 ··················· ' Make all of port B outputs to send position information to each servo.
start:
·· serin si,N2400,servo,pos· ' Get the servo# and position for that servo.
for cont = 0 to 50
·· pulsout servo,pos········ ' Send servo# ? to position ?.
·· pause 15 ······················· ' Wait 15 ms.
next cont ························· ' Next pulse.
·· goto start ····················· ' Return to get more serial input.

I GET THE HEX CODE FROM THE NET AND IT IS WORKING
I AM GIVING SIGNALS FROM THE COMPUTER AND THE CIRCUIT IS WORKING
MY PROBLEM IS,
1))
I DO NOT KNOW THE LANGUAGE WHICH IT IS WRITTEN .
IF I KNOW THE LANGUAGE I CAN MODIFY THE PROGRAM
2))
I WANT TO GET A CONVERTER FOR MAKING THE HEXCODE FOR THE PIC16F84A IC

HOPE I WILL GET THE SOLUTION FROM THIS SITE

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-02-07 07:18
    First off, go ahead an delete you duplicate post (the identical one with no replies) by opening it up and clicking on the red x in the upper right hand corner. No need for two.

    This forum is for the Basic Stamp series, of which a few (1?) use the PIC microcontroller. However, you cannot program it directly. What I think you meant is that you are using a BS2? The code looks alot like PBASIC with some other stuff thrown in. It might also be a third party BS2 knock-off chip.

    What is different from the PBASIC:

    PORTA.0
    Assigning a IO pin directly to a variable without using OUTs or INs.
    The include statement
Sign In or Register to comment.