Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Robotics Chat


Robotics Chat Specific to discussions about robots and the making of.

Reply
 
Thread Tools Display Modes
Old 8th April 2008, 03:56 AM   (permalink)
Moderator
 
Blog Entries: 1
Krumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of light
Send a message via Skype™ to Krumlink
Default VETRA on it's way!

3v0 and I were working on IR detection, and after some brainstorming, we came up with creating a IR robot, That could explore a room autonomously, and would be able to be reprogrammed through a 2x5 ICSP port on the side of it. I am currently working on the PCB still, but it will be done very quickly.

18F1320 Brain
2 IR Emitters
2 IR Recievers TBD what they exactly are
SN754410 Motor Driver

The hardware would be exactly the same through out the design, but it will come with a ICSP header in case you want to change a part of the code.

More to come soon!!

EDIT: The pic is a VERY early stage in the Board, but the IC's and LED's are likely to stay there.
Attached Images
File Type: jpg vetra.JPG (40.7 KB, 22 views)
__________________
MechTronics
Krumlink is offline   Reply With Quote
Old 8th April 2008, 04:39 AM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

May I humbly suggest a 28pin PIC (the 18F2525) as it has 2 PWM (motor channels), just connect it like the Mongoose schematic.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 8th April 2008, 06:03 AM   (permalink)
Experienced Member
petrv will become famous soon enough
Default

Did you select the motor/gearbox for your robot project ? If you want to use the classical 2 motor configuration I'd say Bill is correct that a PIC with 2 PWM would be a better choice. I planned to play with robotics as well, ordered some Tamyia gearboxes and wheels from www.pololu.com and also their robot chassis - it is really quite cheap, but I did not have time to continue with this project ...
It would be interesting to hear more about your robot project

Petr
petrv is offline   Reply With Quote
Old 8th April 2008, 08:51 AM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default

Quote:
Originally Posted by Krumlink
2 IR Emitters
2 IR Recievers TBD what they exactly are
I'll try one more time?, check my website I posted a link to previously for you, you only need one receiver and two emitters - it's not something I designed and wrote, I just used the original designers product.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 8th April 2008, 10:17 AM   (permalink)
Moderator
 
Blog Entries: 1
Krumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of light
Send a message via Skype™ to Krumlink
Default

Quote:
Originally Posted by Nigel Goodwin
I'll try one more time?, check my website I posted a link to previously for you, you only need one receiver and two emitters - it's not something I designed and wrote, I just used the original designers product.
Yes, I looked at the site, but for simplicity we are going to use 2 sensors and 2 emitters, each easily representing Left and Right side. Maybe you mean 2 sensors and 1 emitter, but the emitter better be pretty bright!

Besides, It will as i already said represent the left and right sides better.

Quote:
Originally Posted by blueroomelectronics
May I humbly suggest a 28pin PIC (the 18F2525) as it has 2 PWM (motor channels), just connect it like the Mongoose schematic.
Meh, DENIED Only because the 18F1320/1330 is working good for us, but maybe a future robot?

Quote:
Originally Posted by petrv
Did you select the motor/gearbox for your robot project ? If you want to use the classical 2 motor configuration I'd say Bill is correct that a PIC with 2 PWM would be a better choice. I planned to play with robotics as well, ordered some Tamyia gearboxes and wheels from www.pololu.com and also their robot chassis - it is really quite cheap, but I did not have time to continue with this project ...
It would be interesting to hear more about your robot project

Petr
Yes, I was going to use bills tamyia gearbox in configuration C.
__________________
MechTronics
Krumlink is offline   Reply With Quote
Old 8th April 2008, 10:38 AM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default

Quote:
Originally Posted by Krumlink
Yes, I looked at the site, but for simplicity we are going to use 2 sensors and 2 emitters, each easily representing Left and Right side. Maybe you mean 2 sensors and 1 emitter, but the emitter better be pretty bright!
No, one sensor and two emitters, it's all that's needed - brightness of the emitters can be altered to increase the range, but it's basically only short range anyway, and highly dependent on the IR reflection properties of the object.

Quote:

Besides, It will as i already said represent the left and right sides better.
No it wouldn't, but feel free to use two receivers if you like
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 8th April 2008, 10:55 AM   (permalink)
Moderator
 
Blog Entries: 1
Krumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of light
Send a message via Skype™ to Krumlink
Default

Oh i get at what you mean now, just in the software tell when it left side is on and right side is on?

That would not work very well (cyclops robot) because, this robot wants to tell if it is going to hit left side or right side at the same time. It would only be a limiting factor.

PCB is coming along good
__________________
MechTronics
Krumlink is offline   Reply With Quote
Old 8th April 2008, 11:42 AM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default

Quote:
Originally Posted by Krumlink
Oh i get at what you mean now, just in the software tell when it left side is on and right side is on?

That would not work very well (cyclops robot) because, this robot wants to tell if it is going to hit left side or right side at the same time. It would only be a limiting factor.
Not at all, the 8 pin PIC outputs signals for left and right, both together mean an object directly in front - as with anything electronic it's far, far faster than the mechanics involved in the robot - it works extremely well, and just as good (if not better) than a double sensor solution.

By using a separate 8 pin PIC all you need to do is check the L and R pins from it, I even added LED's on the output so you can see what's happening.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 8th April 2008, 01:25 PM   (permalink)
3v0
Moderator
 
Blog Entries: 3
3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold
Default

We need to build and get your walter class robot working. It will teach you things that will make VERTA better. Walter is also a good test bed for trying new things.

You have everything you need to build a walter including the PCBs.

The software to drive it is easy and we can walk through it this weekend. Once the robot moves we can work on the wall detection.

Bolt the drive unit to the bottom with the motors sticking out the back a bit. It is best to select a location for the holes/screws so they are between card slots. The same goes for the caster. Keep the screws short. The blue tape is to keep lint and pet hair out of the gears. You can get a small pack of 4-40 screws and a pack of nuts at radio shack. Some crimpers have holes to shorten screws.

Each motor should have a red and a black wire that will go to the h-bridge. Drill out the short standoffs in the back above the motor and run the motor wires through them into the box. Put the caps on the motors when you add the wires and make sure the motors go into the clips with the wires and caps in place.

Bolt the battery boxes to each side of the box above the rear wheels. If you move them too far ahead there will be too much weight on the caster. Drill a small behind each battery holder and run the wires into the body.

Use a small rectangle of perf board with a hole in the center for a small toggle switch. Add a 1A resettable fuse if you have one. Wire a battery red wire to one side of the switch, the other side of the switch to the fuse and the fuse to the black wire from the other battery holder. Drill a hole in the center of the back body wall and slip the switch through, add lock washer and nut.

You now have a black and a red battery wire. One from each holder. These will power the h-bridge. You also need to power the CPU board so a 4" bit of wire to each and solder them. In this case the twisted together soldered ends will go into the h-bridge screw terminals.

Tin the other ends of the wires you just added.
Twist each set of motor wires by chucking them into a cordless drill. We will cut them to length and tin them latter.



Drive and switch in place. The batteries and caster still need to be added.

The further ahead you place the wheels the easier it will be to do wheelies. Test balance prior to drilling if you want to do this.

I can provide more pics if you want/need them.
__________________
search engine for electronic parts
Junebug USB PIC programmer kit. USB Bit Wacker

Last edited by 3v0; 8th April 2008 at 01:49 PM.
3v0 is online now   Reply With Quote
Old 8th April 2008, 02:14 PM   (permalink)
Moderator
 
Blog Entries: 1
Krumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of light
Send a message via Skype™ to Krumlink
Default

Building Walter and VETRA are 2 completely seprate things, althought both of them seem like they are the same project. VETRA is seprate from our C learning. VETRA is more like a personal project that uses what I learn from C. As for actually learning new C content, that is where Walter is coming in. I learn with Walter and apply it with VETRA.

This is what I always do, I learn with one tool and use what i learn with another tool, a good example of this is worksheets/assignments you get in school.

Walter will not take long to assemble, and I will use 2.4V with the Motors, since my Gearbox likes that voltage without squeeling too much. I will operate the circuity off a 9V battery (Alkaline to take into affect voltage) or a 8 pack of AAA/AA cells.

Quote:
Not at all, the 8 pin PIC outputs signals for left and right, both together mean an object directly in front - as with anything electronic it's far, far faster than the mechanics involved in the robot - it works extremely well, and just as good (if not better) than a double sensor solution.

By using a separate 8 pin PIC all you need to do is check the L and R pins from it, I even added LED's on the output so you can see what's happening.
1. I don't have any 8 Pin PIC's nor do I want to deviate from the 18F series (You used a PIC12F right).
2. A 1 Sensor 2 LED design does not make sense, unless you sent a signal through the LED's, even then it does not make sense.
3. For ease of programming, a 2 sensor design would be superior, because all you have to do is when it detects an input it reverses, when it doesnt drive straight.
4. A "cyclops" robot has a disadvantage over a 2 eye robot.
5. From your description how would the sensor be able to tell what side from what? remember that I am learning C, and I am not going to use Assembly in this robot, and It will just make it more complex.
__________________
MechTronics

Last edited by Krumlink; 8th April 2008 at 02:16 PM.
Krumlink is offline   Reply With Quote
Old 8th April 2008, 03:07 PM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default

Quote:
Originally Posted by Krumlink
1. I don't have any 8 Pin PIC's nor do I want to deviate from the 18F series (You used a PIC12F right).
It used a 12C508, it long pre-dated the 12F series - a 12F would make more sense though now.

Quote:

2. A 1 Sensor 2 LED design does not make sense, unless you sent a signal through the LED's, even then it does not make sense.
Makes perfect sense, and is dead easy to use - you simply send 38KHz pulses out one LED and check for a reflection on the receiver, then send 38KHz pulses out of the other LED and check for a reflection on the receiver.

Exactly the same as you do with two receivers, except you only need one.

Quote:

3. For ease of programming, a 2 sensor design would be superior, because all you have to do is when it detects an input it reverses, when it doesnt drive straight.
Exactly as a single sensor does, you check for both left and right objects and reverse the appropriate motor(s) - BTW you can't just reverse if you find an object ahead, you need to turn as well - my original code turned either direction at random.

Quote:

4. A "cyclops" robot has a disadvantage over a 2 eye robot.
It's not a 'cyclops' robot, it detects from both left and right independently, but just doesn't waste an extra IR receiver - no disadvantage at all.

Quote:

5. From your description how would the sensor be able to tell what side from what? remember that I am learning C, and I am not going to use Assembly in this robot, and It will just make it more complex.
Explained above.

It makes it incredibly easier for you - just use an 8 pin PIC like in my project - this connects via two pins to your 18F PIC, one for left, and one for right - all your C program needs to do is check if the pins are high or low.

Like I said previously, I didn't originally write this - but it's fairly complex in operation, because it uses a voting system to reduce false readings - certainly I found it extremely effective.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 8th April 2008, 03:10 PM   (permalink)
Moderator
 
Blog Entries: 1
Krumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of light
Send a message via Skype™ to Krumlink
Default

its not looking straight ahead! Both sensors are looking at a 45 degree angle, that way if left detector senses a wall it backs up the opposite side of the H bridge, but if right side does not detect it goes straight, making it turn.

With a 1 sensor design it can only look straight ahead without favoring one side.
__________________
MechTronics
Krumlink is offline   Reply With Quote
Old 8th April 2008, 03:18 PM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default

Quote:
Originally Posted by Krumlink
its not looking straight ahead! Both sensors are looking at a 45 degree angle, that way if left detector senses a wall it backs up the opposite side of the H bridge, but if right side does not detect it goes straight, making it turn.
That's fine for an object either side - but what for an object directly ahead? (like a wall) - if both motors reverse what does it do next?.

Quote:

With a 1 sensor design it can only look straight ahead without favoring one side.
No, it looks both left any right - IR receivers have a wide acceptance angle - hence why you only need one of them - you position the LEDs for the actual beamwidth you want.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 8th April 2008, 04:36 PM   (permalink)
Moderator
 
Blog Entries: 1
Krumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of lightKrumlink is a glorious beacon of light
Send a message via Skype™ to Krumlink
Default

I am going to use a 2 sensor design since I have experience with 2 sensors like that. Also because the sensor is actually bulging out of the packaging slightly, it is a very wide angle reciever. I will be able to see in front slightly , and it will most likely be around 30degrees from straight ahead. I could add a switch if I wanted to. if it detects both, it will back up for a few seconds, and advance.

The software is still being wrote to, but the actual hardware will be the same, so we could adapt to what we need.
__________________
MechTronics
Krumlink is offline   Reply With Quote
Old 8th April 2008, 06:00 PM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default

Quote:
Originally Posted by Krumlink
I am going to use a 2 sensor design since I have experience with 2 sensors like that. Also because the sensor is actually bulging out of the packaging slightly, it is a very wide angle reciever. I will be able to see in front slightly , and it will most likely be around 30degrees from straight ahead. I could add a switch if I wanted to.
Like I said, feel free to use two, but it offers no advantage whatsoever.

Quote:

if it detects both, it will back up for a few seconds, and advance.
And what good would that do?, it spots a wall in front, so it reverses - it then goes forward again and hits the same wall - repeat until battery is flat

Which is why I said earlier, it needs to turn to avoid the wall if it finds an object directly in front. My first solution was to reverse for a certain time, then always turn the same way (can't remember if it was left or right) - but that was a bit boring and meant it could get stuck. So I altered the routine to make it turn a random direction if it found an object if front - this was far more fun, and makes it behave much more 'alive'.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 02:26 PM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.