Programming problem Basic atom pro28

Hi,

I have a PS2 Brat with the Bot Board 2 that i’m converting to Autonomous: I added the Sharp gp2d12 sensor, and the buffered 2-axis accelerometer. I have triple checked that all Jumpers are set up correctly. Here’s my problem: I’m not too clear on how the IDE program works. I have version 8017 of the Basic atom Pro28 and am trying to load the Brat autonomous walk code in (not too sure how to do that! I’ve been clicking and dragging. However when i hit program, i instantly get a message saying “no source files specified and error detected” and my brat keeps beeping at me…

Can someone walk me how to use the IDE correctly when loading programs?

THanks so much!

Robin

This might help…

lynxmotion.com/images/html/build147.htm

I programmed the autonomous walk code into my brat and it works great. But when I try to program the autonomous GP2D12 code into my brat it seems like it does not recognize the sensor. But it does say no errors detected. It just won’t avoid any obstacles… it jest runs into things. :cry:
can some one help?

Sorry, but there is not a lot of information in your post. Like what code, how is the sensor hooked up…

Have you tried any quick and dirty test programs, like some of them that are listed in the atom pro example code thread(viewtopic.php?f=4&t=4714)

Maybe something like:

    val var Word
    prev var word
loop:
    ADIN P19, val
    if val <> prev then
        serout s_out, i9600, [dec val, 13]
        prev = val
    endif
    pause 20
goto loop

Note: I just typed this in so it could have typos. This code assumes that the sharp sensor is on P19, if it is not change the code to the pin it is on. (p16-P19, p0-p3). If this works, then you know your sensor is working. Then you need to look at your code to see how the input is being processed.

Kurt

No, I haven’t tried any quick and dirty test programs… i just tried yours as well as two that were on the link you provided. The two run then give me a long green bar that says something like “add in P19, my…” i just don’t know what to do from this point. Can you give me any other suggestions?

Thanks! Robin

If you seriously want help please post an image of your wiring. We have tutorials for this, so you really need to refer to the tutorials. If you tell us what step in what tutorial it does not work. It would be a lot easier to provide intelligent help.