Sensors readings in variables
Hi,
I'd like to buy Scribbler 2 for my 11 year old son.
I played a little with GUI. Maybe I missed something,
but is it possible to keep the robot's sensors readings in
some kind of variables for later reference and decision
making with GUI.
I suppose with PBASIC probably it is possible.
For kids it takes time to start programing directly in PBASIC without GUI.
Regards,
gia
I'd like to buy Scribbler 2 for my 11 year old son.
I played a little with GUI. Maybe I missed something,
but is it possible to keep the robot's sensors readings in
some kind of variables for later reference and decision
making with GUI.
I suppose with PBASIC probably it is possible.
For kids it takes time to start programing directly in PBASIC without GUI.
Regards,
gia
Comments
Some of the sensors (line following sensors) don't have a number value to use even in when using Spin to program the bot. Many of the sensors do have numbers associated with them but I dont' know if you can access these values (other than above or below some threshold) with the GUI.
The Scribbler 2 does not use PBASIC as a programming option. It would probably be easiest to use Spin if you wanted to take advantage of all the features of the S2.spin object (sub program). I think 11 is probably old enough to learn to program in Spin.
And you or your son are always welcome to ask questions here or in the Propeller forum if Spin is presenting a challenge.
Edit: When you order a S2 don't order a Ping sensor. The Ping does not work with the S2 (at least mine doesn't). I used a Maxbotix ultrasound sensor with my S2. Here's a link to the thread.
Edit Again: I mainly use the GUI to program sounds for the S2. After creating the sound I want with the GUI, I use the "show code" feature and cut the code that produces the sounds from the GUI generated program and paste the code into my "typed in" program.
I am completely newbie for robotics.
I have some software programming background.
As I understand Scribbler can make a real-time
decision with sensors but can it learn something
and keep some knowledge.
I think to use 'variables' for this purpose.
Regards
With Spin you can add lots of variables to keep track of. The S2 also has some additional EEPROM where data can be stored that will be retained when the S2 is turned off. It's also possible to have the variable values stored in EEPROM so they retain their previous values when the S2 is turn off and back on.