Will a process run independent of the main once it is called from the
main?
What I want to do is to check for a condition 'continuously' and
basically, whenever this condition is true, the `main' should
terminate. But I don't want it the case where I call on this process or
function at the beginning of the loop or at the end or any other
pattern as such.
Is there a way of coding so that the process is continuously running
with the others tasks running simultaneously in the background or vice
versa?
Any help is greatly appreciated!
Using processes is one way to solve this kind of problem. essentially,
you have a system where you want to perform or continue to perform some
action while checking for other possibly more important events that may
change or modify the action. One approach is to use a form of decision
logic called "subsumptive logic" (you should be able to find a
number of references via an internet search for that phrase). In this
approach you can think of your robots system of sensors as separate
"observers" each contributes a "vote" toward the
robots current state.The states are pre-rated in order of importance and
the most important is acted upon until resolved and then the next in
importance takes over.
Whether you use processes, or a sequence of calls to the respective
routines is really not relevant. What is important is that the current
and favored states are visible from all of the necessary parts of the
logic.
The IC tutorial has some good instructions on using the process
functions.
As far as changing the control values while the process is running, this
will involve using global variables in IC (and in most standard C
implementations). Object oriented languages (like C++ and Java for
instance) will probably use class variables and "setter"
functions for this type of data.
Hope that helps,
Jim
At 04:19 PM 11/1/2006, you wrote:
I have a implementation of a
controller on the Sumo11 that control the
speed of the car. But it takes about 5 seconds or so to bring the car
to the desired speed.
Can I run other functions or parts of the code while the controller is
running to bring the speed of the car to the desired one?
Also, is there a way of updating a new "desired" speed before
the
sampling time 5 seconds is over. That is, let say, the initial command
or the desired speed is 4 ft/sec and then 2 seconds later, it changes
to 10 ft/sec and you want to pass this new value into the process or
function.
Is there a way to do this?
I would imagine it would have to be by using a 'process.'
I have a implementation of a controller on the Sumo11 that control the
speed of the car. But it takes about 5 seconds or so to bring the car
to the desired speed.
Can I run other functions or parts of the code while the controller is
running to bring the speed of the car to the desired one?
Also, is there a way of updating a new "desired" speed before the
sampling time 5 seconds is over. That is, let say, the initial command
or the desired speed is 4 ft/sec and then 2 seconds later, it changes
to 10 ft/sec and you want to pass this new value into the process or
function.
Is there a way to do this?
I would imagine it would have to be by using a 'process.'
Any ideas?
Your help is appreciated... thanks in advance.
Does anyone know if this might work with the sumo11 and IC 6.0.14? thnax everyone. All your commits are much apriciated. _Duane
> > Awsome, thnaks for the replay. I'll most likly try to > pick one up today at office depot. > _Duane > An off topic note: > AMD64 x2's rock.... I cant belive how lag free this > thing is compaired to my p4. > > --- Jim Peterson <jimcp@...> wrote: > > > Pretty much anyone with a computer less than 4 years > > old. Any correctly > > installed USB to serial should do. > > > > > > > > -----Original Message----- > > From: Sumo11users@yahoogroups.com > > [mailto:Sumo11users@yahoogroups.com] > > On Behalf Of ribron32 > > Sent: Saturday, October 21, 2006 3:37 AM > > To: Sumo11users@yahoogroups.com > > Subject: [Sumo11users] Using IC 5.0 with a > > usb/serial adapter. > > > > > > > > Hello,. everyone. I was wondering if anyone had > > tryed to use a > > usb/serial adapter with the sumo11 and IC 5.0. I > > just bought a new > > comp, and it has no serial ports. So I'm kinda stuck > > at the moment. > > Any help would be helpfull, thnaxs. _Duane > > > > > > > > >
Does anyone know if this might work with the sumo11 and IC 6.0.14?
thnax everyone. All your commits are much apriciated.
_Duane
I don't have any direct experience with this particular piece, but as
stated before, any correctly installed USB to Serial Adapter should do.
The page you provided has the necessary installation instrucions.
>
> Awsome, thnaks for the replay. I'll most likly try to
> pick one up today at office depot.
> _Duane
> An off topic note:
> AMD64 x2's rock.... I cant belive how lag free this
> thing is compaired to my p4.
>
> --- Jim Peterson <jimcp@...> wrote:
>
> > Pretty much anyone with a computer less than 4 years
> > old. Any correctly
> > installed USB to serial should do.
> >
> >
> >
> > -----Original Message-----
> > From:
Sumo11users@yahoogroups.com
> >
[
mailto:Sumo11users@yahoogroups.com]
> > On Behalf Of ribron32
> > Sent: Saturday, October 21, 2006 3:37 AM
> > To:
Sumo11users@yahoogroups.com
> > Subject: [Sumo11users] Using IC 5.0 with a
> > usb/serial adapter.
> >
> >
> >
> > Hello,. everyone. I was wondering if anyone had
> > tryed to use a
> > usb/serial adapter with the sumo11 and IC 5.0. I
> > just bought a new
> > comp, and it has no serial ports. So I'm kinda stuck
> > at the moment.
> > Any help would be helpfull, thnaxs. _Duane
> >
> >
> >
> >
>
--- In Sumo11users@yahoogroups.com, duane ribron <ribron32@...>
wrote:
I havn't been able to find a usb-serial adapter around town. I did
however find this one at parallax.com
http://www.parallax.com/detail.asp?product_id=28030
Does anyone know if this might work with the sumo11 and IC 6.0.14?
thnax everyone. All your commits are much apriciated.
_Duane
>
> Awsome, thnaks for the replay. I'll most likly try to
> pick one up today at office depot.
> _Duane
> An off topic note:
> AMD64 x2's rock.... I cant belive how lag free this
> thing is compaired to my p4.
>
> --- Jim Peterson <jimcp@...> wrote:
>
> > Pretty much anyone with a computer less than 4 years
> > old. Any correctly
> > installed USB to serial should do.
> >
> >
> >
> > -----Original Message-----
> > From: Sumo11users@yahoogroups.com
> > [mailto:Sumo11users@yahoogroups.com]
> > On Behalf Of ribron32
> > Sent: Saturday, October 21, 2006 3:37 AM
> > To: Sumo11users@yahoogroups.com
> > Subject: [Sumo11users] Using IC 5.0 with a
> > usb/serial adapter.
> >
> >
> >
> > Hello,. everyone. I was wondering if anyone had
> > tryed to use a
> > usb/serial adapter with the sumo11 and IC 5.0. I
> > just bought a new
> > comp, and it has no serial ports. So I'm kinda stuck
> > at the moment.
> > Any help would be helpfull, thnaxs. _Duane
> >
> >
> >
> >
>
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On
Behalf Of ribron32 Sent: Saturday, October 21, 2006
7:42 PM To: Sumo11users@yahoogroups.com Subject: [Sumo11users] if 5.0
download
Is there a download site someone might have the link
too? I seemed to
have lost my disk with had IC 5.0.
Thanks again Duane
Awsome, thnaks for the replay. I'll most likly try to
pick one up today at office depot.
_Duane
An off topic note:
AMD64 x2's rock.... I cant belive how lag free this
thing is compaired to my p4.
--- Jim Peterson <jimcp@...> wrote:
> Pretty much anyone with a computer less than 4 years
> old. Any correctly
> installed USB to serial should do.
>
>
>
> -----Original Message-----
> From: Sumo11users@yahoogroups.com
> [mailto:Sumo11users@yahoogroups.com]
> On Behalf Of ribron32
> Sent: Saturday, October 21, 2006 3:37 AM
> To: Sumo11users@yahoogroups.com
> Subject: [Sumo11users] Using IC 5.0 with a
> usb/serial adapter.
>
>
>
> Hello,. everyone. I was wondering if anyone had
> tryed to use a
> usb/serial adapter with the sumo11 and IC 5.0. I
> just bought a new
> comp, and it has no serial ports. So I'm kinda stuck
> at the moment.
> Any help would be helpfull, thnaxs. _Duane
>
>
>
>
Pretty
much anyone with a computer less than 4 years old. Any correctly installed USB
to serial should do.
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On
Behalf Of ribron32 Sent: Saturday, October 21, 2006
3:37 AM To: Sumo11users@yahoogroups.com Subject: [Sumo11users] Using IC
5.0 with a usb/serial adapter.
Hello,. everyone. I was wondering if anyone had tryed
to use a
usb/serial adapter with the sumo11 and IC 5.0. I just bought a new
comp, and it has no serial ports. So I'm kinda stuck at the moment.
Any help would be helpfull, thnaxs. _Duane
Hello,. everyone. I was wondering if anyone had tryed to use a
usb/serial adapter with the sumo11 and IC 5.0. I just bought a new
comp, and it has no serial ports. So I'm kinda stuck at the moment.
Any help would be helpfull, thnaxs. _Duane
RoboJDE is a software development environment for programming the IntelliBrain 2, IntelliBrain, Handy Board and Sumo11 robotics controllers using the Java programming language.In addition, RoboJDE includes an extensive robotics Java class library, as well as more than 60 example programs and a series of robotics tutorials.
RoboJDE is designed for use in introductory computer science, robotics and engineering courses and is in use at many universities, community colleges and high schools around the world.
RoboJDE version 1.5 is a free upgrade for all existing RoboJDE customers.RoboJDE Lite, a limited version of RoboJDE is free.RoboJDE-Lite can be upgraded to the full capabilities of RoboJDE by simply purchasing and installing a license key.
I'm not sure why my earlier post on this topic did not come through, but here it is again.
It's fairly simple to use a relay with the Sumo11, You will need a 10k resistor, a 1k resistor, and a 2N2222 (or equivalant) NPN transistor.
Connect one side of the 10k resistor to digital out 8 and the other side to the Base (middle pin) of the transistor. Connect one side of the 1k resistor to a 5v port and the other side to the collector of the transistor,
then also connect one side of your relay coil to the collector of the transistor. Connect the other side of your relay to another 5v port, and finally connect the Emitter of the transistor to one of the Ground ports. That's it, now you can safely run the relay from the Sumo11.
-Dan Gates
--- In Sumo11users@yahoogroups.com, Belal Ahmad <bxa1322003@...> wrote: > > Jim, > > Do you think it is advisable to operate a 5v relay on port 8 of the sum11? The relay will probably be 5v about 40 mA. > > Jim Peterson <jimcp@...> wrote: > Yes, the SRF08 is an I2C device. You would need to have the basic I2C logic working. I have not used I2C with the Sumo11 or any other HC11 board. A google search of "HC11 +I2c" has a number of links. The logic will need to be implemented in the IC platform if that is what you are using. This
would be a significant project. > > JIm > -----Original Message----- > From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com] On Behalf Of duane > Sent: Saturday, September 23, 2006 2:22 PM > To: Sumo11users@yahoogroups.com > Subject: RE: [Sumo11users] SRF08 Sonar Range > > Does't the srfo8 require l2c compatability? > > -----Original Message----- > From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com]On Behalf Of bxa1322003 > Sent: Saturday, September 23, 2006 10:30 AM > To: Sumo11users@yahoogroups.com > Subject: [Sumo11users] SRF08 Sonar Range > Does anybody know if the above model distance sensor will work with the > Sumo11 controller? If so, what do I have to do to get it working? > > > > > > > > > > > > > --------------------------------- > All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. >
Thanks, yeah, I was looking for something that will give me a constant value. I am using the GP2D12, it is fairly accurate.
Thank You!
Dan Gates <topazx2@...> wrote:
I'm not sure why you chose the GP2D01, but I recomend that you get a GP2D12. The Sumo11 was specificly designed to work with the GP2D12 sensor on Analog ports 2 & 3, there are even special connectors on the main board that mate with the GP2D12's. There is lots of code available showing how to use them,
and they are repeatably acurate. Not linear, but once you find the values that coinside with your distances, they will always remain the same. I've had the same code in one of my robots for about 4 years now using the sensor values that I originally measured, and they still coinside with the distances measured at those values. Hope that helps, -Dan
--- In Sumo11users@yahoogroups.com, Belal Ahmad <bxa1322003@...> wrote: > > Jim, > > Do you know if the SRF08 Sonar Range will work with the Sumo11? > > I tried so many sensors, but did not find one that will give me steady state value. I used the non-linear type, GP2D01 and the output of it is all over the place by a placing an object infront of it without ever moving it. > > I am not sure if it is my program or what. Below is the program I used: > >
float output[100]; > //persistent int voltage[50]; > void main() > { > int i, analogOut; > float v; > i = 0; > while (i<100) > { > //printf("%d\n",i); > analogOut = analog(3); > //voltage, v > v = (2.5/255.0)*( (float) analogOut); > output[i]= -0.0004166*(v)*(v)*(v)*(v) + 0.01097*(v)*(v)*(v) + 1.096*(v);//distance in cm I used a "fitting tool" to fit the output of the sensor > msleep(32L); > i = i+1; > } > beep(); > } > > I need something that will give a sort of a constant reading even if there is error involve > > Any suggestions? > > > Jim Peterson <jimcp@...> wrote: > > On the SUMO11 analog ports 2 and 3 are floating and can be used with the Sharp GP2Dxx analog sensors. > > -----Original Message----- > From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad > Sent: Tuesday, September 19, 2006 10:30 AM > To: Sumo11users@yahoogroups.com > Subject: RE: [Sumo11users] Re: Sonar Problem > > Thanks Jim, I appreciate your help. > > > > Are the sumo's analog ports floating as is on the board? > > Jim Peterson <jimcp@...> wrote: > > The GP2D12 has a non linear response to distance, The range is approximately one meter. No special code is required, however the analog ports need to be "floating" (that is no pull-up resister) due to the low current characteristics Values increase to a maximum reading (typically around 130 to 150) at about 10cm then decrease again as
objects get closer to the sensor. The field of view is narrow. Google gp2d12 and see what you find. The information you want is on the datasheet. Read it at least twice to decide where the information you want is. > > > > Don't Panic. > > > > -----Original Message----- > From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad > Sent: Monday, September 18, 2006 1:41 PM > To: Sumo11users@yahoogroups.com > Subject: Re: [Sumo11users] Re: Sonar Problem > > > > I am going to quit working with the sonar. I am going to use GP2d12. How is the accuracy of the sensor? Do I need any special code? Is there any time limitations between the
readings? > > > > > > Any help is greatly appreciated, thanks in advance. > > Dan Gates <topazx2@...> wrote: > > > Try loading the sonar by itself, get it working first then add it to > your other code. It's always best to isolate the problem to resolve > issues. Make sure you can get it to work by itself first. > > What is the power requirement of the sonar? You say your Sumo11 is > powered by 12v, but the Sumo11 regulates that power down to 5v so if > the sonar requires more than 5v you need to find a different solution > for powering it. > > -Dan > > --- In Sumo11users@yahoogroups.com, "bxa1322003" <bxa1322003@> wrote: > > > > I am having a problem with the sonar. It is reading (tics)a number that > > changes
around a region regardless of how far it is from an object. > > > > I was using port 7 for an encoder before, but now I changed it to use > > it with the sonar and port 8 is being used by the encoder. Is there > > interference problem? Any ideas why it is not working. > > > > > > > > > > > --------------------------------- > > Get your email and more, right on the new Yahoo.com > > > > > > > > > > > > --------------------------------- > > All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. > > > > > > > > > > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to
the US (and 30+ countries) for 2˘/min or less. >
Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail.
I'm not sure why you chose the GP2D01, but I recomend that you get a
GP2D12. The Sumo11 was specificly designed to work with the GP2D12
sensor on Analog ports 2 & 3, there are even special connectors on the
main board that mate with the GP2D12's. There is lots of code
available showing how to use them, and they are repeatably acurate.
Not linear, but once you find the values that coinside with your
distances, they will always remain the same. I've had the same code in
one of my robots for about 4 years now using the sensor values that I
originally measured, and they still coinside with the distances
measured at those values.
Hope that helps,
-Dan
--- In Sumo11users@yahoogroups.com, Belal Ahmad <bxa1322003@...> wrote:
>
> Jim,
>
> Do you know if the SRF08 Sonar Range will work with the Sumo11?
>
> I tried so many sensors, but did not find one that will give me
steady state value. I used the non-linear type, GP2D01 and the output
of it is all over the place by a placing an object infront of it
without ever moving it.
>
> I am not sure if it is my program or what. Below is the program I
used:
>
> float output[100];
> //persistent int voltage[50];
> void main()
> {
> int i, analogOut;
> float v;
> i = 0;
> while (i<100)
> {
> //printf("%d\n",i);
> analogOut = analog(3);
> //voltage, v
> v = (2.5/255.0)*( (float) analogOut);
> output[i]= -0.0004166*(v)*(v)*(v)*(v) +
0.01097*(v)*(v)*(v) + 1.096*(v);//distance in cm I used a "fitting
tool" to fit the output of the sensor
> msleep(32L);
> i = i+1;
> }
> beep();
> }
>
> I need something that will give a sort of a constant reading even
if there is error involve
>
> Any suggestions?
>
>
> Jim Peterson <jimcp@...> wrote:
>
> On the SUMO11 analog ports 2 and 3 are floating and
can be used with the Sharp GP2Dxx analog sensors.
>
> -----Original Message-----
> From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad
> Sent: Tuesday, September 19, 2006 10:30 AM
> To: Sumo11users@yahoogroups.com
> Subject: RE: [Sumo11users] Re: Sonar Problem
>
> Thanks Jim, I appreciate your help.
>
>
>
> Are the sumo's analog ports floating as is on the board?
>
> Jim Peterson <jimcp@...> wrote:
>
> The GP2D12 has a non linear response to distance, The
range is approximately one meter. No special code is required, however
the analog ports need to be "floating" (that is no pull-up resister)
due to the low current characteristics Values increase to a maximum
reading (typically around 130 to 150) at about 10cm then decrease
again as objects get closer to the sensor. The field of view is
narrow. Google gp2d12 and see what you find. The information you want
is on the datasheet. Read it at least twice to decide where the
information you want is.
>
>
>
> Don't Panic.
>
>
>
> -----Original Message-----
> From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad
> Sent: Monday, September 18, 2006 1:41 PM
> To: Sumo11users@yahoogroups.com
> Subject: Re: [Sumo11users] Re: Sonar Problem
>
>
>
> I am going to quit working with the sonar. I am going to
use GP2d12. How is the accuracy of the sensor? Do I need any special
code? Is there any time limitations between the readings?
>
>
>
>
>
> Any help is greatly appreciated, thanks in advance.
>
> Dan Gates <topazx2@...> wrote:
>
>
> Try loading the sonar by itself, get it working first then
add it to
> your other code. It's always best to isolate the problem to resolve
> issues. Make sure you can get it to work by itself first.
>
> What is the power requirement of the sonar? You say your Sumo11 is
> powered by 12v, but the Sumo11 regulates that power down to 5v so if
> the sonar requires more than 5v you need to find a different solution
> for powering it.
>
> -Dan
>
> --- In Sumo11users@yahoogroups.com, "bxa1322003" <bxa1322003@> wrote:
> >
> > I am having a problem with the sonar. It is reading (tics)a number
that
> > changes around a region regardless of how far it is from an object.
> >
> > I was using port 7 for an encoder before, but now I changed it to use
> > it with the sonar and port 8 is being used by the encoder. Is there
> > interference problem? Any ideas why it is not working.
> >
>
>
>
>
>
>
>
>
> ---------------------------------
>
> Get your email and more, right on the new Yahoo.com
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------
>
> All-new Yahoo! Mail - Fire up a more powerful email and get things
done faster.
>
>
>
>
>
>
>
>
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and
30+ countries) for 2˘/min or less.
>
I'm not sure why my earlier post on this topic did not come through,
but here it is again.
It's fairly simple to use a relay with the Sumo11, You will need a 10k
resistor, a 1k resistor, and a 2N2222 (or equivalant) NPN transistor.
Connect one side of the 10k resistor to digital out 8 and the other
side to the Base (middle pin) of the transistor. Connect one side of
the 1k resistor to a 5v port and the other side to the collector of
the transistor, then also connect one side of your relay coil to the
collector of the transistor. Connect the other side of your relay to
another 5v port, and finally connect the Emitter of the transistor to
one of the Ground ports.
That's it, now you can safely run the relay from the Sumo11.
-Dan Gates
--- In Sumo11users@yahoogroups.com, Belal Ahmad <bxa1322003@...> wrote:
>
> Jim,
>
> Do you think it is advisable to operate a 5v relay on port 8 of
the sum11? The relay will probably be 5v about 40 mA.
>
> Jim Peterson <jimcp@...> wrote:
> Yes, the SRF08 is an I2C device. You would need to
have the basic I2C logic working. I have not used I2C with the Sumo11
or any other HC11 board. A google search of "HC11 +I2c" has a number
of links. The logic will need to be implemented in the IC platform if
that is what you are using. This would be a significant project.
>
> JIm
> -----Original Message-----
> From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On Behalf Of duane
> Sent: Saturday, September 23, 2006 2:22 PM
> To: Sumo11users@yahoogroups.com
> Subject: RE: [Sumo11users] SRF08 Sonar Range
>
> Does't the srfo8 require l2c compatability?
>
> -----Original Message-----
> From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com]On Behalf Of bxa1322003
> Sent: Saturday, September 23, 2006 10:30 AM
> To: Sumo11users@yahoogroups.com
> Subject: [Sumo11users] SRF08 Sonar Range
> Does anybody know if the above model distance sensor will work
with the
> Sumo11 controller? If so, what do I have to do to get it working?
>
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------
> All-new Yahoo! Mail - Fire up a more powerful email and get things
done faster.
>
Personally,
I would a properly current limited optoisolator and power the relay independently
of the controller. Do a google search on “optoisolator” for
sources, costs and usage details.
Jim
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On
Behalf Of Belal Ahmad Sent: Sunday, September 24, 2006
9:47 AM To: Sumo11users@yahoogroups.com Subject: [Sumo11users] A Relay on
PORT 8 of the Sumo
Jim,
Do you think it is advisable to operate a 5v relay on port 8 of
the sum11? The relay will probably be 5v about 40 mA.
Jim Peterson
<jimcp@...> wrote:
Yes, the SRF08 is an I2C device. You would
need to have the basic I2C logic working. I have not used I2C with the Sumo11
or any other HC11 board. A google search of “HC11 +I2c” has a
number of links. The logic will need to be implemented in the IC platform if
that is what you are using. This would be a significant project.
JIm
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On Behalf Of duane Sent: Saturday, September 23, 2006
2:22 PM To: Sumo11users@yahoogroups.com Subject: RE: [Sumo11users] SRF08
Sonar Range
Does't the srfo8 require l2c
compatability?
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com]On
Behalf Of bxa1322003 Sent: Saturday, September 23, 2006
10:30 AM To: Sumo11users@yahoogroups.com Subject: [Sumo11users] SRF08 Sonar
Range
Does anybody know if the above model distance sensor will work with the
Sumo11 controller? If so, what do I have to do to get it working?
Do you think it is advisable to operate a 5v relay on port 8 of the sum11? The relay will probably be 5v about 40 mA.
Jim Peterson <jimcp@...> wrote:
Yes, the SRF08 is an I2C device. You would need to have the basic I2C logic working. I have not used I2C with the Sumo11 or any other HC11 board. A google
search of “HC11 +I2c” has a number of links. The logic will need to be implemented in the IC platform if that is what you are using. This would be a significant project.
JIm
-----Original Message----- From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com] On Behalf Of duane Sent:Saturday, September 23, 20062:22 PM To: Sumo11users@yahoogroups.com Subject: RE: [Sumo11users] SRF08 Sonar Range
Does't the srfo8 require l2c compatability?
-----Original Message----- From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com]On Behalf Of bxa1322003 Sent: Saturday, September 23, 2006 10:30 AM To: Sumo11users@yahoogroups.com Subject: [Sumo11users] SRF08 Sonar Range
Does anybody know if the above model distance sensor will work with the Sumo11 controller? If so, what do I have to do to get it working?
Yes, the SRF08 is an I2C
device. You would need to have the basic I2C logic working. I have not used I2C
with the Sumo11 or any other HC11 board. A google search of “HC11 +I2c”
has a number of links. The logic will need to be implemented in the IC platform
if that is what you are using. This would be a significant project.
JIm
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On
Behalf Of duane Sent:Saturday,
September 23, 20062:22 PM To: Sumo11users@yahoogroups.com Subject: RE: [Sumo11users] SRF08
Sonar Range
Does't the srfo8 require l2c
compatability?
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com]On
Behalf Of bxa1322003 Sent: Saturday, September 23, 2006
10:30 AM To: Sumo11users@yahoogroups.com Subject: [Sumo11users] SRF08 Sonar
Range
Does anybody know if the above model distance sensor
will work with the
Sumo11 controller? If so, what do I have to do to get it working?
-----Original Message----- From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com]On Behalf Of bxa1322003 Sent: Saturday, September 23, 2006 10:30 AM To:
Sumo11users@yahoogroups.com Subject: [Sumo11users] SRF08 Sonar Range
Does anybody know if the above model distance sensor will work with the Sumo11 controller? If so, what do I have to do to get it working?
-----Original Message----- From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com]On Behalf Of bxa1322003 Sent: Saturday, September 23, 2006 10:30 AM To: Sumo11users@yahoogroups.com Subject: [Sumo11users] SRF08 Sonar Range
Does anybody know if the above model distance sensor will work with the Sumo11 controller? If so, what do I have to do to get it working?
Do you know if the SRF08 Sonar Range will work with the Sumo11?
I tried so many sensors, but did not find one that will give me steady state value. I used the non-linear type, GP2D01 and the output of it is all over the place by a placing an object infront of it without ever moving it.
I am not sure if it is my program or what. Below is the program I used:
float output[100];
//persistent int voltage[50];
void main()
{
int i, analogOut;
float v;
i = 0;
while (i<100)
{
//printf("%d\n",i);
analogOut = analog(3);
//voltage, v
v = (2.5/255.0)*( (float) analogOut);
output[i]=-0.0004166*(v)*(v)*(v)*(v) + 0.01097*(v)*(v)*(v) + 1.096*(v);//distance in cm I used a "fitting tool" to fit the output of the sensor
msleep(32L);
i = i+1;
}
beep();
}
I need something that will give a sort of a constant reading even if there is error involve
Any suggestions?
Jim Peterson <jimcp@...> wrote:
On the SUMO11 analog ports 2 and 3 are floating and can be used with the Sharp GP2Dxx analog sensors.
-----Original Message----- From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad Sent: Tuesday, September 19, 2006 10:30 AM To: Sumo11users@yahoogroups.com Subject: RE:
[Sumo11users] Re: Sonar Problem
Thanks Jim, I appreciate your help.
Are the sumo's analog ports floating as is on the board?
Jim Peterson <jimcp@...> wrote:
The GP2D12 has a non linear response to distance, The range is approximately one meter. No special code is required, however the analog ports need to be “floating” (that is no pull-up resister) due to the low current characteristics Values increase to a maximum reading (typically around 130 to 150) at about 10cm then decrease again as objects get closer to the sensor. The field of view is narrow. Google gp2d12 and see what you find. The information you want is on the datasheet. Read it at least twice to decide where the information you want is.
Don’t Panic.
-----Original Message----- From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad Sent: Monday, September 18, 2006 1:41 PM To: Sumo11users@yahoogroups.com Subject: Re: [Sumo11users] Re: Sonar Problem
I am going to quit working with the sonar. I am going to use GP2d12. How is the accuracy of the sensor? Do I need any special code? Is there any time limitations between the readings?
Any help is greatly appreciated, thanks in advance.
Dan Gates <topazx2@yahoo.com> wrote:
Try loading the sonar by itself, get it working first then add it to your other code. It's always best to isolate the problem to resolve issues. Make sure you can get it to work by itself first.
What is the power requirement of the sonar? You say your Sumo11 is powered by 12v, but the Sumo11 regulates that power down to 5v so if the sonar requires more than 5v you need to find a different solution for powering it.
-Dan
--- In Sumo11users@yahoogroups.com, "bxa1322003" <bxa1322003@...> wrote: > > I am having a problem with the sonar. It is reading (tics)a number that > changes around a region regardless of how far it is from an object. > > I was using port 7 for an encoder before, but now I changed it to use > it with the sonar and port 8 is being used by the encoder. Is there > interference problem? Any ideas why it
is not working. >
Thanks, that was what I was told, I just wanted to make sure.
Jim Peterson <jimcp@...> wrote:
On the SUMO11 analog ports 2 and 3 are floating and can be used with the Sharp GP2Dxx analog sensors.
-----Original Message----- From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad Sent: Tuesday, September 19, 2006 10:30 AM To: Sumo11users@yahoogroups.com Subject: RE: [Sumo11users] Re: Sonar Problem
Thanks Jim, I appreciate your help.
Are the sumo's analog ports floating as is on the board?
Jim Peterson <jimcp@...> wrote:
The GP2D12 has a non linear response to distance, The range is approximately one meter. No special code is required, however the analog ports need to be “floating” (that is no pull-up resister) due to the low current
characteristics Values increase to a maximum reading (typically around 130 to 150) at about 10cm then decrease again as objects get closer to the sensor. The field of view is narrow. Google gp2d12 and see what you find. The information you want is on the datasheet. Read it at least twice to decide where the information you want is.
Don’t Panic.
-----Original Message----- From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad Sent: Monday, September 18, 2006 1:41 PM To: Sumo11users@yahoogroups.com Subject: Re: [Sumo11users] Re: Sonar Problem
I am going to quit working with the sonar. I am going to use GP2d12. How is the accuracy of the sensor? Do I need any special code? Is there any time limitations between the readings?
Any help is greatly appreciated, thanks in advance.
Dan Gates <topazx2@yahoo.com> wrote:
Try loading the sonar by itself, get it working first then add it to your other code. It's always best to isolate the problem to resolve issues. Make sure you can get it to work by itself first.
What is the power requirement of the sonar? You say your Sumo11 is powered by 12v, but
the Sumo11 regulates that power down to 5v so if the sonar requires more than 5v you need to find a different solution for powering it.
-Dan
--- In Sumo11users@yahoogroups.com, "bxa1322003" <bxa1322003@...> wrote: > > I am having a problem with the sonar. It is reading (tics)a number that > changes around a region regardless of how far it is from an object. > > I was using port 7 for an encoder before, but now I changed it to use > it with the sonar and port 8 is being used by the encoder. Is there > interference problem? Any ideas why it is not working. >
On the
SUMO11 analog ports 2 and 3 are floating and can be used with the Sharp GP2Dxx analog
sensors.
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On
Behalf Of Belal Ahmad Sent: Tuesday, September 19, 2006
10:30 AM To: Sumo11users@yahoogroups.com Subject: RE: [Sumo11users] Re:
Sonar Problem
Thanks Jim, I appreciate your help.
Are the sumo's analog ports floating as is on the board?
Jim Peterson
<jimcp@...> wrote:
The GP2D12 has a non linear response to
distance, The range is approximately one meter. No special code is required,
however the analog ports need to be “floating” (that is no pull-up
resister) due to the low current characteristics Values increase to a maximum
reading (typically around 130 to 150) at about 10cm then decrease again as
objects get closer to the sensor. The field of view is narrow. Google gp2d12
and see what you find. The information you want is on the datasheet. Read it at
least twice to decide where the information you want is.
Don’t Panic.
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad Sent: Monday, September 18, 2006
1:41 PM To: Sumo11users@yahoogroups.com Subject: Re: [Sumo11users] Re:
Sonar Problem
I am going to quit working with the sonar. I am going to use GP2d12.
How is the accuracy of the sensor? Do I need any special code? Is there any
time limitations between the readings?
Any help is greatly appreciated, thanks in advance.
Dan Gates
<topazx2@yahoo.com> wrote:
Try loading the sonar by itself, get it working first then add it to
your other code. It's always best to isolate the problem to resolve
issues. Make sure you can get it to work by itself first.
What is the power requirement of the sonar? You say your Sumo11 is
powered by 12v, but the Sumo11 regulates that power down to 5v so if
the sonar requires more than 5v you need to find a different solution
for powering it.
-Dan
--- In Sumo11users@yahoogroups.com,
"bxa1322003" <bxa1322003@...> wrote:
>
> I am having a problem with the sonar. It is reading (tics)a number that
> changes around a region regardless of how far it is from an object.
>
> I was using port 7 for an encoder before, but now I changed it to use
> it with the sonar and port 8 is being used by the encoder. Is there
> interference problem? Any ideas why it is not working.
>
Are the sumo's analog ports floating as is on the board?
Jim Peterson <jimcp@...> wrote:
The GP2D12 has a non linear response to distance, The range is approximately one meter. No special code is required, however the analog ports need to be “floating” (that is no pull-up resister)
due to the low current characteristics Values increase to a maximum reading (typically around 130 to 150) at about 10cm then decrease again as objects get closer to the sensor. The field of view is narrow. Google gp2d12 and see what you find. The information you want is on the datasheet. Read it at least twice to decide where the information you want is.
Don’t Panic.
-----Original
Message----- From: Sumo11users@yahoogroups.com [mailto:Sumo11users@yahoogroups.com] On Behalf Of Belal Ahmad Sent: Monday, September 18, 2006 1:41 PM To: Sumo11users@yahoogroups.com Subject: Re: [Sumo11users] Re: Sonar Problem
I am going to quit working with the sonar. I am going to use GP2d12. How is the accuracy of the sensor? Do I need any special code? Is there any time limitations between the readings?
Any help is greatly appreciated, thanks in advance.
Dan Gates <topazx2@yahoo.com> wrote:
Try loading the sonar by itself, get it working first then add it to your other code. It's always best to isolate the problem to resolve issues. Make sure you can get it to work by itself first.
What is the power requirement of the sonar? You say your Sumo11 is powered by 12v, but the Sumo11 regulates that power down
to 5v so if the sonar requires more than 5v you need to find a different solution for powering it.
-Dan
--- In Sumo11users@yahoogroups.com, "bxa1322003" <bxa1322003@...> wrote: > > I am having a problem with the sonar. It is reading (tics)a number that > changes around a region regardless of how far it is from an object. > > I was using port 7 for an encoder before, but now I changed it to use > it with the sonar and port 8 is being used by the encoder. Is there > interference problem? Any ideas why it is not working. >
The
GP2D12 has a non linear response to distance, The range is approximately one meter.
No special code is required, however the analog ports need to be “floating”
(that is no pull-up resister) due to the low current characteristics Values increase
to a maximum reading (typically around 130 to 150) at about 10cm then decrease
again as objects get closer to the sensor. The field of view is narrow. Google gp2d12
and see what you find. The information you want is on the datasheet. Read it at
least twice to decide where the information you want is.
Don’t Panic.
-----Original Message----- From: Sumo11users@yahoogroups.com
[mailto:Sumo11users@yahoogroups.com] On
Behalf Of Belal Ahmad Sent: Monday, September 18, 2006
1:41 PM To: Sumo11users@yahoogroups.com Subject: Re: [Sumo11users] Re:
Sonar Problem
I am going to quit working with the sonar. I am going to use GP2d12.
How is the accuracy of the sensor? Do I need any special code? Is there any
time limitations between the readings?
Any help is greatly appreciated, thanks in advance.
Dan Gates <topazx2@yahoo.com>
wrote:
Try loading the sonar by
itself, get it working first then add it to
your other code. It's always best to isolate the problem to resolve
issues. Make sure you can get it to work by itself first.
What is the power requirement of the sonar? You say your Sumo11 is
powered by 12v, but the Sumo11 regulates that power down to 5v so if
the sonar requires more than 5v you need to find a different solution
for powering it.
-Dan
--- In Sumo11users@yahoogroups.com,
"bxa1322003" <bxa1322003@...> wrote:
>
> I am having a problem with the sonar. It is reading (tics)a number that
> changes around a region regardless of how far it is from an object.
>
> I was using port 7 for an encoder before, but now I changed it to use
> it with the sonar and port 8 is being used by the encoder. Is there
> interference problem? Any ideas why it is not working.
>
I am going to quit working with the sonar. I am going to use GP2d12. How is the accuracy of the sensor? Do I need any special code? Is there any time limitations between the readings?
Any help is greatly appreciated, thanks in advance.
Dan Gates <topazx2@...> wrote:
Try loading the sonar by itself, get it working first then add it to your other code. It's always best to isolate the problem to resolve issues. Make sure you can get it to work by itself first.
What is
the power requirement of the sonar? You say your Sumo11 is powered by 12v, but the Sumo11 regulates that power down to 5v so if the sonar requires more than 5v you need to find a different solution for powering it.
-Dan
--- In Sumo11users@yahoogroups.com, "bxa1322003" <bxa1322003@...> wrote: > > I am having a problem with the sonar. It is reading (tics)a number that > changes around a region regardless of how far it is from an object. > > I was using port 7 for an encoder before, but now I changed it to use > it with the sonar and port 8 is being used by the encoder. Is there > interference problem? Any ideas why it is not working. >