caramoan tour package

caramoan tour package

Author Topic: P-Bot Official Thread  (Read 16336 times)

Offline glutnix_neo

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4180
  • Pogi/Ganda Points: 166
  • Gender: Female
  • A journey to a thousand lines begins w/ LED Blink
    • Underground Workbench
Re: P-Bot Official Thread
« Reply #340 on: February 22, 2012, 11:22:02 AM »
duemilanove w/ ATmega168 ang gamit kong board.
then kong serial port is COM3..

sure ka na comm3 nakaconnect yang arduino mo? pwede mo itry bunutin then tingnan mo kung mawawala com3 sa list, irestart mo muna IDE.

isa pa dapat icheck eh yung jumper ng power, nakaset dapat sa usb powered kung wala ka namang external power source.
If we hear,we forget;if we see, we remember;if we do,we understand.
Let's support the use of free and open source softwares...
http://UndergroundWorkbench.wordpress.com

Philippine Electronics Forum

Re: P-Bot Official Thread
« Reply #340 on: February 22, 2012, 11:22:02 AM »

Offline alma19

  • CR2032 Battery
  • **
  • Posts: 13
  • Pogi/Ganda Points: 0
Re: P-Bot Official Thread
« Reply #341 on: February 22, 2012, 08:42:51 PM »
sure ka na comm3 nakaconnect yang arduino mo? pwede mo itry bunutin then tingnan mo kung mawawala com3 sa list, irestart mo muna IDE.

isa pa dapat icheck eh yung jumper ng power, nakaset dapat sa usb powered kung wala ka namang external power source.

sir, nka connect na po ang jumper sa usb power. pero same pa rin meron pa rin error message pagkatapos kung e.upload ang program. gamit ko ay usb cable na connect sa Usb port ng Gizduino .

Philippine Electronics Forum

Re: P-Bot Official Thread
« Reply #341 on: February 22, 2012, 08:42:51 PM »

Offline glutnix_neo

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4180
  • Pogi/Ganda Points: 166
  • Gender: Female
  • A journey to a thousand lines begins w/ LED Blink
    • Underground Workbench
Re: P-Bot Official Thread
« Reply #342 on: February 22, 2012, 08:46:01 PM »
Quote
sure ka na comm3 nakaconnect yang arduino mo? pwede mo itry bunutin then tingnan mo kung mawawala com3 sa list, irestart mo muna IDE.

how about response nya dito?
If we hear,we forget;if we see, we remember;if we do,we understand.
Let's support the use of free and open source softwares...
http://UndergroundWorkbench.wordpress.com

Philippine Electronics Forum

Re: P-Bot Official Thread
« Reply #342 on: February 22, 2012, 08:46:01 PM »

Offline akhen

  • Diesel Generator
  • *
  • Posts: 1294
  • Pogi/Ganda Points: 47
  • Gender: Female
  • "Learning is good but application is 100x better!"
Re: P-Bot Official Thread
« Reply #343 on: February 22, 2012, 09:03:45 PM »
TS  gizduino ba gamit mo? anong version ng arduino IDE gamit mo?

assuming na gizduino nga:
please check R5 in your gizduino. pag meron nyan mag-eeror nga sya pag v1.0 ng arduino IDE.

the fix is remove R5. you should be able to load your program after that.

Philippine Electronics Forum

Re: P-Bot Official Thread
« Reply #343 on: February 22, 2012, 09:03:45 PM »

Offline alma19

  • CR2032 Battery
  • **
  • Posts: 13
  • Pogi/Ganda Points: 0
Re: P-Bot Official Thread
« Reply #344 on: February 22, 2012, 09:22:34 PM »
how about response nya dito?

 inilipat ko po ang jumper sa EXT pagkatapos ko pong e.upload ang program..
 soo happy Sir.. gumana na po ang P-BOT ko .. Maraming salamat :D

Philippine Electronics Forum

Re: P-Bot Official Thread
« Reply #344 on: February 22, 2012, 09:22:34 PM »

Offline alma19

  • CR2032 Battery
  • **
  • Posts: 13
  • Pogi/Ganda Points: 0
Re: P-Bot Official Thread
« Reply #345 on: February 22, 2012, 09:26:02 PM »
pero sir. paano po ba malalaman kung lowbat na ang battery ng p-bot?
 hindi po ba gagana ang motor ng p-bot?

Offline glutnix_neo

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4180
  • Pogi/Ganda Points: 166
  • Gender: Female
  • A journey to a thousand lines begins w/ LED Blink
    • Underground Workbench
Re: P-Bot Official Thread
« Reply #346 on: February 22, 2012, 09:48:02 PM »
walang syang indicator pero tama ka, hindi tatakbo ang motor or babagal than the usual ang takbo at yung mga line at wall sensors ay naguumpisa nang mafalse trigger.
If we hear,we forget;if we see, we remember;if we do,we understand.
Let's support the use of free and open source softwares...
http://UndergroundWorkbench.wordpress.com

Offline akhen

  • Diesel Generator
  • *
  • Posts: 1294
  • Pogi/Ganda Points: 47
  • Gender: Female
  • "Learning is good but application is 100x better!"
Re: P-Bot Official Thread
« Reply #347 on: February 22, 2012, 11:12:31 PM »
inilipat ko po ang jumper sa EXT pagkatapos ko pong e.upload ang program..
 soo happy Sir.. gumana na po ang P-BOT ko .. Maraming salamat :D

congrats ;D

jumper is a power selector. it selects where you will get the power source for your gizduino. You can always connect that sa EXT pero when you load your code you have to power on your pbot para magkapower din si gizduino.

Offline nokia3310

  • CR2032 Battery
  • **
  • Posts: 42
  • Pogi/Ganda Points: 1
Re: P-Bot Official Thread
« Reply #348 on: February 23, 2012, 09:42:23 PM »
merong akong nilikhang library para mapadali ang pagpoprogram ng P-Bot, meaning no need to worry about pin connections ng P-Bot, that is kung tama ang pagkakaconnect ng P-Bot.

may instructions din paano gamitin ang library at may sample codes din for Sumo mode, Remote Control, meron na rin yatang Line Following pero for narrow lines lang ang algo.


sir, wala pong line follower sa sample code... til now kasi di ko napapatakbo na sumusund sa linya ung Pbot ko...

Offline akhen

  • Diesel Generator
  • *
  • Posts: 1294
  • Pogi/Ganda Points: 47
  • Gender: Female
  • "Learning is good but application is 100x better!"
Re: P-Bot Official Thread
« Reply #349 on: February 23, 2012, 11:09:08 PM »
parang ganto:

Code: [Select]
void loop()
{
   iLineState=TestMobot.detectLine();
   speed=HIGHSPEED;
   
   switch (iLineState){
    case NO_LINE:
         Serial.println("NO LINE");
         TestMobot.moveBackward(speed);
         break;
    case LINE_LEFT:
         Serial.println("LINE LEFT");
         TestMobot.turnRight(speed);
         break;
    case LINE_LEFTCENTER:
         Serial.println("LINE LEFTCENTER");
         TestMobot.turnRight(speed);
         break;

Offline glutnix_neo

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4180
  • Pogi/Ganda Points: 166
  • Gender: Female
  • A journey to a thousand lines begins w/ LED Blink
    • Underground Workbench
Re: P-Bot Official Thread
« Reply #350 on: February 23, 2012, 11:57:21 PM »
sir, wala pong line follower sa sample code... til now kasi di ko napapatakbo na sumusund sa linya ung Pbot ko...

di ko pa siguro naupload, ganito logic nun, assuming wide width na line,
1. kung may line lahat ng sensors eh diretso lang ang takbo,
2. kung walang line sa kanang sensor titigil ang kaliwang motor(or turn right)
3. kung walang line sa kaliwang sensor titigil ang kanang motor(or turn left)
If we hear,we forget;if we see, we remember;if we do,we understand.
Let's support the use of free and open source softwares...
http://UndergroundWorkbench.wordpress.com

Offline nokia3310

  • CR2032 Battery
  • **
  • Posts: 42
  • Pogi/Ganda Points: 1
Re: P-Bot Official Thread
« Reply #351 on: February 25, 2012, 12:43:05 AM »
di ko pa siguro naupload, ganito logic nun, assuming wide width na line,
1. kung may line lahat ng sensors eh diretso lang ang takbo,
2. kung walang line sa kanang sensor titigil ang kaliwang motor(or turn right)
3. kung walang line sa kaliwang sensor titigil ang kanang motor(or turn left)

sir.., pwede ba pakicheck ng code sa line follower ko?.. ito po ung code..
ano po kaya ung kulang?..
Code: [Select]
#include <PBot.h>

PBotClass  LineKeepDistance;

void setup()
{
  LineKeepDistance.begin(LINETRACKING,WHITE,BLACK);                                                 
}

void loop()
{
  int LineState;
 
  LineState = LineKeepDistance.detectLine();
 
  if(LINE_LEFT==LineState)  //for Sharp left
  {
    LineKeepDistance.rotateLeft(LOWSPEED);
  }
  else if (LINE_LEFTCENTER==LineState)
  {
    LineKeepDistance.turnLeft(MIDSPEED);
  }
  else if(LINE_RIGHT==LineState)   //for Sharp right
  {
    LineKeepDistance.rotateRight(LOWSPEED);
  }
  else if (LINE_RIGHTCENTER==LineState)
  {
    LineKeepDistance.turnRight(MIDSPEED);
  }
 
  else if(NO_LINE==LineState)
  {
    LineKeepDistance.stopMotors();
   
  }
 
}

Offline glutnix_neo

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4180
  • Pogi/Ganda Points: 166
  • Gender: Female
  • A journey to a thousand lines begins w/ LED Blink
    • Underground Workbench
Re: P-Bot Official Thread
« Reply #352 on: February 25, 2012, 07:52:50 AM »
mukhang ok naman, anong response nya nung tinest mo?yun bang line mo eh malapad?yung kaya nyang matakpan ang lahat ng sensors?

kasi iba din approach kung manipis yung lines, yung most of the time eh gitnang line lang ang natatakpan?
If we hear,we forget;if we see, we remember;if we do,we understand.
Let's support the use of free and open source softwares...
http://UndergroundWorkbench.wordpress.com

Offline nokia3310

  • CR2032 Battery
  • **
  • Posts: 42
  • Pogi/Ganda Points: 1
Re: P-Bot Official Thread
« Reply #353 on: February 25, 2012, 07:59:17 AM »
mukhang ok naman, anong response nya nung tinest mo?yun bang line mo eh malapad?yung kaya nyang matakpan ang lahat ng sensors?

kasi iba din approach kung manipis yung lines, yung most of the time eh gitnang line lang ang natatakpan?

di ko pa na test sir.. update lng po kita sir kung anong response..,baka gamit ko ung electrical tape para sa line, ok lng po ba un?

Offline glutnix_neo

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4180
  • Pogi/Ganda Points: 166
  • Gender: Female
  • A journey to a thousand lines begins w/ LED Blink
    • Underground Workbench
Re: P-Bot Official Thread
« Reply #354 on: February 25, 2012, 08:08:52 AM »
kapag manipis imaginine nyo ano response?

1.kapag gitnang line lang ang triggered, diretso lang ang takbo,
2. kapag nasa kanan ang linya,titigil ang kanang motor(or turn right)
3. kapag nasa kaliwa ang linya, titigil ang kaliwang motor(or turn right)
di ko pa siguro naupload, ganito logic nun, assuming wide width na line,
1. kung may line lahat ng sensors eh diretso lang ang takbo,
2. kung walang line sa kanang sensor titigil ang kaliwang motor(or turn right)(or turn left)
3. kung walang line sa kaliwang sensor titigil ang kanang motor(or turn left)
(or turn right)

in short ang sinesense ng unang scheme eh kung pumapasok sa linya ang left or right sensor, ang pangalawang scheme eh dinedetect naman kung lumabas sa linya ang left at right sensors,


see the difference?
If we hear,we forget;if we see, we remember;if we do,we understand.
Let's support the use of free and open source softwares...
http://UndergroundWorkbench.wordpress.com

Offline nokia3310

  • CR2032 Battery
  • **
  • Posts: 42
  • Pogi/Ganda Points: 1
Re: P-Bot Official Thread
« Reply #355 on: February 25, 2012, 03:29:56 PM »
kapag manipis imaginine nyo ano response?

1.kapag gitnang line lang ang triggered, diretso lang ang takbo,
2. kapag nasa kanan ang linya,titigil ang kanang motor(or turn right)
3. kapag nasa kaliwa ang linya, titigil ang kaliwang motor(or turn right)
in short ang sinesense ng unang scheme eh kung pumapasok sa linya ang left or right sensor, ang pangalawang scheme eh dinedetect naman kung lumabas sa linya ang left at right sensors,


see the difference?
oo sir.. kuha ko ang logic... try ko to paguwi ko.. tingnan kung functional ba ung code na ginawa ko,.,:) tnx sir

Offline alma19

  • CR2032 Battery
  • **
  • Posts: 13
  • Pogi/Ganda Points: 0
Re: P-Bot Official Thread
« Reply #356 on: February 28, 2012, 11:09:23 PM »
mga sir ? ano po ibig sabihin pag may ganitong error message pagkatapos ma compile ang program.
 [sketch_feb28b.cpp:1:18: error: PBot.h: No such file or directory
sketch_feb28b:2: error: 'PBotClass' does not name a type]

Offline alma19

  • CR2032 Battery
  • **
  • Posts: 13
  • Pogi/Ganda Points: 0
Re: P-Bot Official Thread
« Reply #357 on: February 29, 2012, 09:44:52 AM »
Sir, gusto ko po sanang e.try yung Crazymobot na program. Pero pag compile ko na po ang code.
may error message po na ganito:
 'PBotClass' does not name type
CrazyMobot.cpp:2:18: error: PBot.h: No such file or directory
CrazyMobot.pde:-1: error: 'PBotClass' does not name a type

Offline alma19

  • CR2032 Battery
  • **
  • Posts: 13
  • Pogi/Ganda Points: 0
Re: P-Bot Official Thread
« Reply #358 on: February 29, 2012, 09:48:06 AM »
ay nkuha ko na sir.. hhehe :D

Offline nokia3310

  • CR2032 Battery
  • **
  • Posts: 42
  • Pogi/Ganda Points: 1
Re: P-Bot Official Thread
« Reply #359 on: February 29, 2012, 08:33:04 PM »

Sir, gusto ko po sanang e.try yung Crazymobot na program. Pero pag compile ko na po ang code.
may error message po na ganito:
 'PBotClass' does not name type
CrazyMobot.cpp:2:18: error: PBot.h: No such file or directory
CrazyMobot.pde:-1: error: 'PBotClass' does not name a type

walang pbot library yang maam.. :)

Philippine Electronics Forum

Re: P-Bot Official Thread
« Reply #359 on: February 29, 2012, 08:33:04 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com