JBot Package
Hi,
I am new to programming Javelin stamps so I have been using hte JBOT manual (thanks to who made it!). However, I could not find the JBot package needed for the sample programs. The following website http://www.parallax.com/javelin/javelinbot.asp·no longer works. Could someone direct me to another place where i can buy a jbot package?
thanks!
I am new to programming Javelin stamps so I have been using hte JBOT manual (thanks to who made it!). However, I could not find the JBot package needed for the sample programs. The following website http://www.parallax.com/javelin/javelinbot.asp·no longer works. Could someone direct me to another place where i can buy a jbot package?
thanks!
Comments
regards peter
·
Thank you for helping me! However, what I am looking for is the JBot package that is used throughout the programs in that folder. For example most progarms import "package JBot ;"
The default installation of the Javelini ide program is
c:\program files\Parallax inc\Javelin IDE program
so install the jbot files in folder
c:\program files\Parallax inc\Javelin IDE program\lib\JBot
Then you can use import JBot.* or package JBot
regards peter
for example this one "stamp/util/os/Event was not found" I dont know how to fix this?
Unzip attachement in folder ...\lib\stamp\util\os
regards peter
error: Type Jbot/Event was not found
error: Type Jbot/Task was not found
error: No entity named "state" was found in this evironment
thats what i get if i want to compile PhotoresistorSensor.java
Check file PhotoresistorSensor.java.
Maybe the boolean state is corrupted (for example to stat)
Check file BaseSensor.java for entity event (which is of type Event)
Make sure you unzipped the os package
in folder ....\lib\stamp\util\os
(folder name is case sensitive)
regards peter
I give more details
C:\Program Files\Parallax Inc\Javelin Stamp IDE\lib\JBot ( here I unzipped al the JBot files from youre Yahoo peter )
C:\Program Files\Parallax Inc\Javelin Stamp IDE\lib\stamp\util\os ( here I unzipped youre OS files )
that`s all did I do something wrong?
aint there some kind of tutorial?
This Task class should extend Event
If it extends LinkedListItem then the old Task.java is still there.
I attached Task.java in case you need it.
Since the files are default readonly, this file is probably not overwritten.
regards peter
I know I ask 2 much
Now compiling PhotoresistorSensor does work ( yeee )
But RandomWalkTask now does not compile. I get this error ( see image )
Try closing down the IDE and then restart the IDE.
regards peter
But that is strange cause I copied youre Task in mine JBot map and also in mine os map
This will conflict with the Task.java in folder os.
regards peter
Post Edited (Peter Verkaik) : 2/5/2007 5:40:16 PM GMT
But when i try to send RandomWalkTask to my javelin stamp it says " No suitable 'main' method found " ?
It is common practice to write a special program class that has the main() method.
This program class then imports all the classes it needs.
AvoidObstacleTaskTest1.java is such a program class.
Note that the program class needs its variables and methods to be declared static.
Try RandomWalkTest1.java
regards peter
I can compile all the supprt classes, but when i compile AvoidObstacleTaskTest1.java that has a main method i get errors
I also tryed to compile RandomWalkTest1.java but it gives me this ( see image )
You should have the following at the top of RandomWalkTest1.java·
package JBot;
import java.util.* ;
import stamp.core.*;
import stamp.util.os.* ;
You do have the latest IDE v2.03 (see help->about)?
If not, download it from here:
http://www.parallax.com/javelin/downloads.asp
regards peter
I just uninstalled everything cause it was a mess
I did the following
- Install IDE v2.03 ( from http://www.parallax.com/javelin/downloads.asp )
- Remove everything from the os map then unzip os from peter ( Its in this topic )
- Make a map in de Lib named JBot then unizp de Rar file JBot ( http://tech.groups.yahoo.com/group/JavelinCode/files/Javelin Stamp IDE/lib/JBot/ )
Then everything must work
Only 2 bad there is no images in the Jbot manuals
Makgi
http://tech.groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/JBot/
That is the same manual but for the Basic Stamp. The figures are the same though.
Just locate the appropiate text and you have the pictures.
If anybody has a final version of this manual, please post it.
I only have the preliminary draft version.
regards peter
I made this ( see image )
and i used RandomWalkTest1.java
Which pin numbers I need in order to get this work cause they are in basic mode now but the java is different.
DAC pin
PWM pin
Detector pin
RandomWalkTest1.java
It declares a IrRangeSensor
········· ( new IrRangeSensor // IrRangeDropOffSensor
······················· ( CPU.pin7··· // left DAC pin
······················· , CPU.pin1··· // left PWM pin
······················· , CPU.pin0··· // left detector pin
······················· , CPU.pin8··· // right DAC pin
······················· , CPU.pin3··· // right PWM pin
······················· , CPU.pin2··· // right detector pin
······················· , 3·········· // deadband
······················· )) ;
From the picture (assuming top detector is left)
left detector pin is 9 -> becomes 0
right detector pin is 0 -> becomes 2
left dac pin is 8 -> becomes 7
right dac pin is 2 -> becomes 8
left pwm pin is left white wire -> becomes 1
right pwm pin is right white wire -> becomes 3
in picture pins 1 and 10 are used for current limiting resitors to LEDS.
regards peter
right pwm pin is right white wire -> becomes 3
Here I am stuck cause I know they must be in pin 1 and 3 but where go`s the other end?
How do I tell which servo is connected to P13 and which servo is connected to P12?
You just plugged your servos into headers with numbers above them. If the number above
the header where the servo is plugged in is 13, it means the servo is connected to P13. If
the number is 12, it means it’s connected to P12.
It looks you need to change the pwm pins in the javelin program
to comply with the board of education.
regards peter
Sorry for being a noob, but how does it actually work?
I mean, since it's already being used for the servo.
I tried Makgi's circuit and this one, but I couldn't make it work:
I'm using AvoidObstacleTaskIrRangeTest1.
My BOE-Bot moves for a second and then takes a left turn as if it detected an obstacle on the right,
then moves forward again for another second, then turns left again and so on.
I tested the sensors using IrRangeSensorTest1 and they worked fine
(although the lowest distance printed in the debugger window was 7).
My batteries are fully charged (5xAA, 6V).
I noticed that the JBot manual mentions adding a couple of 10μF capacitors,
but I didn't use them, since I'm not that familiar with electronics and there are no pictures in the manual,
so I had no idea where to install them.
Once again, I used the same circuit Makgi did.
Post Edited (White Pawn) : 4/16/2007 12:05:43 AM GMT
So, my left PWM pin is my left servo pin?
Sorry for being a noob, but how does it actually work?
I mean, since it's already being used for the servo.
Yes, according to this schematic (USB BOE rev.C)
http://www.parallax.com/dl/docs/prod/boards/BOERevC.pdf
pins 12 to 15 are shared on connectors X2 and X4 and X5.
If you use pins 12 and 13 for left and right servo (X5)
then do not connect anything to P12 and P13 of X2.
Makgi's circuit uses
········· ( new IrRangeSensor // IrRangeDropOffSensor
······················· ( CPU.pin7··· // left DAC pin
······················· , CPU.pin13··· // left PWM pin
······················· , CPU.pin0··· // left detector pin
······················· , CPU.pin8··· // right DAC pin
······················· , CPU.pin12··· // right PWM pin
······················· , CPU.pin2··· // right detector pin
······················· , 3·········· // deadband
······················· )) ;
See some posts back, the pins specified above should match the picture.
You can add 10uF capacitors across vdd (+) and gnd (-) or vin (+) and gnd (-).
regards peter
I know pins 12 and 13 are the servo pins and that I'm not supposed to connect anything to 12 and 13 of X2.
I got confused because of this:
So, what I'm still not getting is whether I'm supposed to
"combine the DAC/IR LED combination with a 38.4kHz PWM output" of my servo pins or use different pins.
I already noticed you were suggesting to use pins 12 and 13; that's why I asked how it works.
What I'm not getting now is the piece of code in your previous post:
( new IrRangeSensor // IrRangeDropOffSensor
( CPU.pin7 // left DAC pin -- I don't see anything connected to pin 7
, CPU.pin13 // left PWM pin
, CPU.pin0 // left detector pin -- this one seems connected to the RIGHT IR detector
, CPU.pin8 // right DAC pin -- this one seems connected to the LEFT IR LED
, CPU.pin12 // right PWM pin
, CPU.pin2 // right detector pin
, 3 // deadband
)) ;
Are we looking at the same picture: CIRCUIT?
http://forums.parallax.com/attachment.php?attachmentid=45339
I suggested that to keep the class mostly intact.
To use the picture as is,
use
········· ( new IrRangeSensor // IrRangeDropOffSensor
······················· ( CPU.pin8··· // left DAC pin
······················· , CPU.pin13··· // left PWM pin
······················· , CPU.pin9··· // left detector pin
······················· , CPU.pin2··· // right DAC pin
······················· , CPU.pin12··· // right PWM pin
······················· , CPU.pin0··· // right detector pin
······················· , 3·········· // deadband
······················· )) ;
regards peter
In that case, back to my first post:
I'm using AvoidObstacleTaskIrRangeTest1.
My BOE-Bot moves for a second and then takes a left turn as if it detected an obstacle on the right,
then moves forward again for another second, then turns left again and so on.
I tested the sensors using IrRangeSensorTest1 and they worked fine
(although the lowest distance printed in the debugger window was 7).
My batteries are fully charged (5xAA, 6V).
So it appears the pwm signals are NOT the servo signals. They are used to modulate the LED.
I have drawn only one channel.
regards peter
I tried using pins 1 and 11, but still can't make it work.
As I already mentioned, I'm a total amateur when it comes to electronics,
so I have no idea if I got your diagram right.
It's still acting weird. Now it moves forward and detects obstacles (i.e. my hand; with a delay of a couple of seconds),
but acts weird afterwards (pivots left, then right, then left again, then continues moving forward).
Here's what my circuit looks like now: