Author Topic: How to make alogrith for a artificial intelligence line follower.....??  (Read 7085 times)

0 Members and 1 Guest are viewing this topic.

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #31 on: October 28, 2011, 04:52:23 AM »
Quote
Do You remember this post? Good. Now, follow the link and read  Wink

It show Compatible Chargers

    * Li-Ion / Li-Po Intelligent Fast Charger for 2-3 Cell Battery(RKI-1122)
    * Li-Ion / Li-Po 2A 3 Cell Fast Charger
    * IMAX B6 5A Multipurpouse Battery Charger


should i buy that Rs 650/. cost one??

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #32 on: October 28, 2011, 05:20:39 AM »
OK, i have downloaded Google sketch up software also....

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #33 on: October 28, 2011, 05:22:14 AM »
It show Compatible Chargers

    * Li-Ion / Li-Po Intelligent Fast Charger for 2-3 Cell Battery(RKI-1122)
    * Li-Ion / Li-Po 2A 3 Cell Fast Charger
    * IMAX B6 5A Multipurpouse Battery Charger
You've found it  ;D Well done  ;D

should i buy that Rs 650/. cost one??
I believe You meant Rs 6500  ;) It's up to You to decide. Description is very clear. If You need smart multipurpose charger, go for something like IMAX B6 5A Multipurpouse Battery Charger. If charger is going to be used only for Li-Ion packs containing up to 3 cells, then Li-Ion / Li-Po Intelligent Fast Charger for 2-3 Cell Battery is fully sufficient.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #34 on: October 28, 2011, 05:23:34 AM »
OK, i have downloaded Google sketch up software also....
Good start. CAD skills are very useful to posses.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #35 on: October 28, 2011, 05:37:23 AM »
One thing more charger are asking for input of 15v not 220V why??
Do you think the chargers deserve the cost or not??

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #36 on: October 28, 2011, 06:32:23 AM »
Here some CAD images please tell any changes to do........

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #37 on: October 28, 2011, 06:37:00 AM »
One thing more charger are asking for input of 15v not 220V why??
Both of them do not take 220VAC, only DC voltage is a suitable input. Suitable power supply has to be used in order to operate them.

Do you think the chargers deserve the cost or not??
Honestly, i don't know, as I never bought one. You can always look around the net and try to find something cheaper without sacrificing performance.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #38 on: October 28, 2011, 06:39:42 AM »
Here some CAD images please tell any changes to do........
If You think that it's fine, then it is fine. You do realise that frame you've designed is not symmetrical, don't You?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #39 on: October 28, 2011, 06:45:28 AM »
Quote
If You think that it's fine, then it is fine. You do realize that frame you've designed is not symmetrical, don't You?

As it was my first attemt to use the CAD i can see it is not geometrical ......

Please tell any changes to do in the designing making it more col.

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #40 on: October 28, 2011, 06:51:09 AM »
As it was my first attemt to use the CAD i can see it is not geometrical ......

Please tell any changes to do in the designing making it more col.
I told you already, it's not symmetrical, hence it has to be fixed. Moreover, as posted before, have a look at what designs other people have used for their line followers, then try to achieve something similar.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #41 on: October 29, 2011, 10:52:21 PM »
Updated images:-

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #42 on: October 31, 2011, 10:49:43 AM »
Will this model work fine for a line follower...??

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #43 on: October 31, 2011, 11:01:10 AM »
You are fast, well done  :)

Does it have a caster wheel at the back?

What are You going to use for line recognition?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #44 on: October 31, 2011, 11:10:17 AM »
Quote
You are fast, well done  Smiley

Hi again,

Do you like it??
Quote
Does it have a caster wheel at the back?

Yes, off course..!!
Quote
What are You going to use for line recognition?

The length is nearby 14cm (140mm) and breath is 12cm ( 120mm)....

OK< the circuit you can see in image is LM339 ( Quat op-amp) ...
with 100K variable resistance act as i Wheatstone bridge to terminal of op-amp....

and uC is quick start board containing propeller chip...( spin code)
and sensors are LDR with green LED's.






Offline Gertlex

  • Supreme Robot
  • *****
  • Posts: 747
  • Helpful? 23
  • Nuclear Engineer Roboticist
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #45 on: November 01, 2011, 08:10:18 PM »
To briefly comment on your question about whether your chassis is good... I've seen pretty much every possible robot configuration used for line following (even hexapods).  So ya, that looks like a nice simple and easy to work with chassis to throw the electronics on.
I

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #46 on: November 02, 2011, 09:02:07 AM »
OK, i am using L298 chip for h- bridges any suggestion will be appreciated..!!

Thanks

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #47 on: November 02, 2011, 10:34:52 AM »
Hi,

I have got L298 chip for h- bridges the problem is what the use of logic supply pin 9voltage??
Is that mean at what logic the bridges will work If yes then i have connected to 5V..
and current sensing pin 1 to GND without any resistance...
Out put 1 and 2 to motor terminal just for testing small motor pin 2 and 3...
and input spin to GND and Vcc for testing pin 5 and 7...
till now i am not using output 3 and 4....
supply voltage is 12V 800mA max.

edited: the problem is the motor is not rotating...

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #48 on: November 03, 2011, 01:24:34 AM »
OK, the output from pin 2 and 3 is rising properly but the current is very low when i connect the load like buzzer and motor the voltage level decrease to 1V or less and motor does not seems work...........
same with buzzer very less sound..!!
pls suggest me what to do??
I have connected pin 1 and 15 to gnd with resistance and with out it also but no changes were seen.

pls reply soon...........

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #49 on: November 03, 2011, 02:21:28 AM »
According to L298 Datasheet You should connect pins as follows:
  • Pin 4 (+Vs) goes to 9V power supply (or whatever voltage You use to run motors)
  • Pin 9 (+Vss requires regulated voltage not exeeding 7V, so if Your uC runs on regulated 5V, also feed it to H-bridge.
  • Pins 1 & 15 (SENSE A & SENSE B) go to GND, no resistor is needed if no current sensing is performed
  • Use Pins 2 & 3 (OUT1 & OUT2) to connect motor1 and Pins 13 & 14 - motor2.
  • Pins 6 & 11 (EnA & EnB) must be set high in order to enable H-bidge A & B respectively.
  • Set Pin 5 OR 7 (In1 OR In2) to run motor1 (Pin 10 OR 12 - motor2) to one side OR the other (NEVER set both Pins high at the same time)
  • Pin 8 goes to GND.
« Last Edit: November 03, 2011, 03:08:23 AM by newInRobotics »
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #50 on: November 03, 2011, 02:34:45 AM »
Quote
Set Pin 5 OR 7 (In1 OR In2) to run motor1 (Pin 10 OR 11 - motor2) to one side OR the other (NEVER  set both Pins high at the same time)

First thanks for reply.........

OK, the i have done both pin higher just for checking....!!
after that i have connected one to -ve 5V and another to GND vice versa.

the voltage on multimeter is working well but i think current is very low.....i think in few mA...



Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #51 on: November 03, 2011, 02:58:12 AM »
pls help.............

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #52 on: November 03, 2011, 03:15:59 AM »
Quote
Set Pin 5 OR 7 (In1 OR In2) to run motor1 (Pin 10 OR 11 - motor2) to one side OR the other (NEVER  set both Pins high at the same time)

First thanks for reply.........

OK, the i have done both pin higher just for checking....!!
after that i have connected one to -ve 5V and another to GND vice versa.

the voltage on multimeter is working well but i think current is very low.....i think in few mA...
I meant Pins 12 OR 10 (NOT Pin 10 OR 11) to run motor.

Can You sketch (with circuit designer if possible) current configuration You have, so I can see what You have and what might be wrong?

What motor are You using?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #53 on: November 03, 2011, 03:24:27 AM »
Hi again,

I am using past motor only ( given link in past post) any way its stall current is 700mA..
and i am using first bridges....
not the end one that you are talking about pin 10 and 12.

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #54 on: November 03, 2011, 03:29:22 AM »
Did You set Pin 6 high?

How many power supplies are You using?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #55 on: November 03, 2011, 04:12:28 AM »
 OK, thanks for guiding.....

The chip is working it was soldering problem..

so, i have 3 op-amp i want to use it to raise the 3.3v to 4.2V at least to drive  the l298 chip....as uC output is 3.3V ( it work on 3.3V propeller)

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #56 on: November 03, 2011, 04:24:32 AM »
3.3V should be enough, as anything above 1.5V is logical 1 (high) for L298.

If it was soldering problem, did You fix it? Is it working as it is supposed to work now?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #57 on: November 03, 2011, 06:29:53 AM »
Quote
If it was soldering problem, did You fix it? Is it working as it is supposed to work now?

OK, now again after fixing it....when i connect the enable to gnd motor still run in same direction....
pls post a simple circuit!!

It is going over my head...
thanks

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #58 on: November 03, 2011, 06:49:49 AM »
when i connect the enable to gnd motor still run in same direction....

Enable (Pin 6) has to be connected to 3.3V, otherwise it will not work.

When In1 (Pin 5) is HIGH - 3.3V and In2 (Pin 7) is LOW - 0V --> motor spins to one side.

When In2 (Pin 7) is HIGH - 3.3V and In1 (Pin 5) is LOW - 0V --> motor spins to the opposite side.

Also, did You connect 4 diodes to motor terminals as shown in L298 Datasheet - Page 6, Figure 6?


Edit: Some useful info about L298 can be found in Experiment 7 - Bi-directional Control Of Motors And The H-Bridge page.
« Last Edit: November 03, 2011, 07:32:23 AM by newInRobotics »
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline RITESH29Topic starter

  • Robot Overlord
  • ****
  • Posts: 152
  • Helpful? 0
Re: How to make alogrith for a artificial intelligence line follower.....??
« Reply #59 on: November 03, 2011, 10:10:00 AM »
OK, now 298 is working as i want but should i connect any resistance or buffer to 298 enable and input pins???
while connecting uC to 298 directly will cause any hazard or not??

 


Get Your Ad Here