Motor interface electronics

Just curious on what language are you using ?

Thinking linux quite a few people would assume c for development.

c , c++ or something else ? asci c or c++ or a subset like embedded c++? standardlibrary or threadsafe ?

Going to have any backup for the hdd ? Or will the code fit on cf or mmc / sd ? or bot be able to be booted from cf etc ?

Are you going to have any or many failsafes ?

Also are you going to make it self hosting ? so you could halt the bot, adjust the code as necessary , recompile then restart ?

Are you going to have a console via bluettooth or rf so you can login and adjust things ?

Seen a few people use python for robotics

formatting link
Alex

Reply to
Alex Gibson
Loading thread data ...

formatting link
have used micros to control the sonar , remote, drive system and have a higher budget.

Should be able to drop the price down quite a lot by not buying off the shelf parts and making your own and scrounging.

Also if you can make/design your own pcbs could save quite a bit on some of the sensors like

formatting link
chips aren't that expensive and are fairly simple circuits
formatting link
interactive demo

formatting link
can be a pain depending on what method you use to solder them. (depending on the pcb can be better to not heat the pcb in case it flexes)

instead of buying a serial lcd use an opensource project like this with a cheap parallel lcd

formatting link
don't have an lcd touchscreen , unless you can get one dirtcheap or second hand

Alex

Reply to
Alex Gibson

Believe it or not, I do have a copy of "Robot Builder's Bonanza." I also have "Build your own working robot" by David Heiserman, as well as over a dozen books on robotics, a number on power circuits, industrial control, and many others on hardware and software design and development. I am not a person without knowledge or background. One thing that I find disturbing about this whole conversation is that you guys take a contrary opinion personally. It is possible to have a contrary opinion and still (a) know what you are talking about and (b) have thought out the design.

The "Bonanza" book is good as a beginners text, a lot of subjects and nothing in great detail. I'm not saying it isn't an excellent book, I've been through the publishing mill a couple times and I hate it. You are certainly to be applauded for the amount of work you did. I hope it pays well.

In the late 70s and early 80s I built a robot. It was based on an RCA 1802 ELF and a Mattel big track. It was cool. It could do a lot of things. Developing for it was very hard. I had to hand code the ROM and toggle in the code.

When I got my first computer, a CP/M box, I got an eprom burner, and burned eproms. It was all painful, but I didn't know better.

In 1984, I started working at Denning Mobile Robotics. We designed robot that was primarily based on a 68000 and a number of Z80s. The Z80s were a pain, buring eproms, using in-circuit emulators to test, etc. The 68000 system was better. It had memory, a real OS, and worked seamlessly with the systems we were using for development. (At least it seemed seamless at the time).

It became clear to me then, and it is still perfectly clear today, that the robot should work like the rest of the systems around it. It should fit in seamlessly.

I don't want the microcontroller disconnect. I want to be able to use my standard tool chain to create software for the robot. I want it to work like the other computers in my lab. I want it to be able to use computing resources external to it. Those are part of my personal goal for the sub $500 robot, and I would think that you could respect this position.

Reply to
mlw

I know of a particular device that uses literally dozens in parallel to control a big motor. It has a specific need to not be chopping Watts at such a scale, and making Mr Marconi jealous.

We can do lamb. how about gyros ?

Reply to
blueeyedpop

I would code using C++, but it would all be shared libraries, so you could probably use any language to build on it.

No, but there is networking. I was thinking that if you didn't like disk drives you could use flash disks or network boot.

It is possible to get a not-so basic Linux system to fit on 512M SD card, especially with a compressed filesystem.

Like? Motor stop, yes, of couse.

It will work like any other computer system.

It will have standard wireless networking. Wireless G.

Reply to
mlw

This isn't a theoretical debate. You're missing a lot of useful input. Did you catch, for example, that Jay Newman builds robots using Linux and mini-ITX boards, is writing a book about it, and has a blog detailing his experiences? His sig contains a link to his page. The work is taking some time because he has a day job, but he's sharing his knowledge with the rest of us. Jay regularly helps people here working along the same track.

Yet when Jay, like most of us, strongly suggested you might need to offput some processes to a subcontroller, you once again challenged him with why. The why should be obvious by now, and it's been explained enough times by people with more experience, including those who have actually built what you're proposing, and with Linux. These people have been willing to give you their time, so you should respect their position as well.

I think you're ready to go to your shop and just do it. Write up a page, and share your techniques. Let's move on.

-- Gordon

Reply to
Gordon McComb

Everyone? That's simply not true. Perhaps people are taking things personally because you're not paying attention to what you're writing. With a little more care, and less sweeping generalizations, I think you'll find you won't piss off quite so many people.

Reply to
Pete Gray

It is easy to say that I am not paying attention to what people are saying, because I disagree with them. They are not listening to what I am saying either.

This is after all usenet :-)

Reply to
mlw

Actually, I said that you're not paying attention to what *you* are saying. The fact that you didn't see this just proves that you're also not paying attention to what others are saying.

Yes, it is. When used correctly, it can be a very good learning platform. The following command helps (with apologies to anyone who's ever used DCL) ...

set mode/comms=(full_duplex, sequence=[read,think,write],verbose=off,clarity=true,ego=none,mind=open)

Reply to
Pete Gray

generator.

Yes, but you don't apparently don't believe it.

powerful

One $5 PIC chip can have >30 i/o pins that can actually supply a usable current (25mA) and that won't burn out at the drop of a hat. At any rate, parallel ports are legacy devices coming to a rapid demise. Why do you wish to make your device of the future rely upon hardware that will soon cease to exist?

A bunch of micros now have USB interfaces in them. FTDI chips can take up the rest of the slack. I think it's safe to say that USB (and possibly firewire) are becoming the defacto standard interface to most external devices attached to a PC.

So what, you already have one present, why not use it? Many ITX boards have a connector right on the board to let you hook up to it. They may call it an SMBUS connector, but it's compatible with I2C.

I don't think assumptions are an option and frankly I'm surprised you would ask such a thing.

I really don't understand your motives. You come here asking for advice and then you go to great lengths to refute every bit of it, including building straw man arguments and then burning them down. Outside of being a troll, I don't know why you'd wish to do that. Many people, with far more experience than you (or I), have told you the same thing, "keep your ITX board for central control and functions that requires high CPU performance or floating point math, but offload as much as possible to "smart" circuits that can actually do a better job." AFAICT, nobody told you that you should use a micro in place of the ITX board nor did anyone tell you that your idea absolutely would not work.

Whether you believe it or not, microcontrollers running at 4MHz have abilities that a 1GHz ITX PC platform system cannot duplicate even with an RTOS. Interrupt latency is the first thing that comes to mind. Then there's i/o, PWM, ADC, CCP, comparators, timers, various serial comms etc capabilities. Microcontrollers are intended to be the magic glue to interface digital electronics (like your ITX board) to an analog world. How could you conclude that everyone got this part wrong?

BTW, could you post a link to the "$50 IO board" that you refer to? I'd like to examine its capabilities.

Reply to
Anthony Fremont

On this one point we agree.

Agreed, but I think that you're taking it out of context.

I use the Linux box for the decision making and image recognition and other high-level stuff.

On the other hand control of motors and PID is a wasteful thing to have my Linux box do.

Because I feel that I need one to control my motors. I can do a closed loop PID control more easily with a microcontroller than I can with a Mini-ITX board.

A bus doesn't have to be on a PC board. When I use RS485 I use screw terminals.

Why not? It is an electrical standard designed to be used in an electrically noisy environment. It is used just as RS232 is used.

You mistook my meaning. I want to be able to put whatever board (hardware) that I choose on the robot.

There are a few problems that fit in the middle. I prefer PostgreSQL myself, but a lot of real work is done with MySQL.

-- D. Jay Newman

formatting link

Reply to
D. Jay Newman

Thanks Gordon, but my original day job is history. My new main job is caretaker for my wife. Frankly the original day job (programming instructional software at Penn State) took less time. :(

I'm now a few days from getting Groucho rolling. Right now I'm building connecting cables to make everything work together. I'm down to only a few cables now.

...

I agree. This is an engineering project, and the real test of an engineering project is if it succeeds.

-- D. Jay Newman

formatting link

Reply to
D. Jay Newman

JGCASEY wrote: ...

...

Just to explain myself a little...

The concept that John found on my site goes beyond a single robotic entity that can scoot around after someone and "lend a hand". In fact, a mobile robot is actually an optional (but too fun and interesting to ignore!) part of the project.

The core of the idea is home (or office) automation, but rather than being aimed at people who may be gadget freaks (or just plain lazy), the automation I have in mind is intended to push someone who is not quite capable of independent living, back into a self-sufficient way of life.

Inputs could include:

  • Client position tracking (what room are they in? have they fallen over in the shower?) - could be achieved with standard security hardware (PIRs, door beams, pressure mats, LAN cameras)
  • Room temperature
  • Weather (get HVAC* running BEFORE it gets too cold/hot inside, get washing in if raining, don't bother watering garden, etc)
  • Sensors on any dangerous equipment (cookers, toasters, heaters [temperature as well as CO for gas-fired equipment])
  • Personal alarm - this could be the traditional radio pendant or even microphones in all rooms feeding into speech recognition software; voice control could also be associated with lighting, HVAC, etc.
  • Monitoring for problems in bath/shower/toilet
  • Smoke detectors
  • Soil humidity (for irrigation)
  • Pump monitoring (if not on mains water; also shower and circulating pumps)

Outputs:

  • HVAC
  • Shut-off of dangerous equipment mentioned above
  • Lighting
  • Electric door strikes
  • Bath hoists
  • Audible/visible alarms
  • Pumps
  • Fire-fighting
  • Irrigation

Network:

  • DSL connection to monitoring centre via Internet/VPN; dial-up modem as backup
  • Internet -> SMS messaging to notify family/friends of non-critical alerts

Essential Movies ;-)

  • Demon Seed
  • 2001 A Space Odyssey

I've got some of the environmental monitoring working and have other bits under construction. (See weather page on my personal site) Irrigation partly done, pumps about to be put under "intelligent" control. About to put together a light barrier that determines direction of travel - handy for client tracking.

My reason for joining this newsgroup is looking for inspiration/assistance in putting something mobile together, my first mobile project being a wheelbarrow/mobile platform that can assist in fetching firewood from the log pile and move the laundry basket around as one hangs out the washing.

Phase II would be an indoor model (drone or scutter, depending on ones choice of viewing); although I can see various assistance roles that could be performed for disabled/elderly, I have to confess that I just want something that will carry my beer fermenters to/from kitchen and laundry, saving my back and preventing sloshing!

Cheers

M

  • HVAC
: Heating, Ventilation, Air Conditioning

Reply to
Matthew Smith

Why? My PID control loop spends most of its time sleeping. I see no more than about 5% CPU load. It really is a light weight task.

I disagree, but that isn't a big surprise in this discussion.

Depends on the cost and the cost of peripherals.

OK, see that is one of the important aspects of my robot, that it capitlize on consumer electronics.

This is anoher thing we disagree about.

Reply to
mlw

I would consider it engineering debate.

No, I am reading it, but I think you guys have an antipathy toward using a PC type computer and using it to do all the work'. It is hard to take many of the arguments at fce value because they make great leaps of logic.

I didn't see that, I will look.

I usually ignore sigs.

That's cool.

Yes.

It isn't.

"More experiece?" A little presumptuous? I like to never assume anything during an engineering discussion. Experience in doing what? OS driver design? Motor control? Embedded developent? High speed data acquisition and control? Or is it experience writing micro-controller software?

I have a good deal of motor control experience. I have a good deal of high speed data acquisition driver experience. AFAIK, my data acquisition framework for NT may still be in use by keithley instruments on some of their devices.

I have spent many times over my career timing interrupt latency and data throughput on various systems. Regardless of your view, I do know a thing or two about what I am talking about.

No one, once, as said WHY I need micro in addition to an ITX board. Where is the engineering "proof" that the latency will kill me? Where is the "proof" that it will take up too many CPU cycles? All I get is the "we know more than you," "you'll see," or "you're too ignorant" arguments.

My current control loop spends most of it's time sleeping. When running, it creates less than 5% CPU load. Why do I need a microcontroller to control the motors?

I do respect their position, I simply do not agree.

I'm in the process, but I have to run to "You do it" tomorrow to get a power transistor. A slipped scope probe and a short to ground. :-(

Reply to
mlw

This is just way cool.

In fact, a robot in an assisted-care facility makes a lot of sense because the environment is already designed in a way that naturally dovetails with the needs of a typical robot. The floors tend not to have rises, threshholds, or other causes for trips, the floor is smooth tile or low-nap carpet, the aisle-ways are usually wide, with few projections, etc.

Not all the automation needs to be mobile, as you pointed out, but a robot could provide an extra layer of safety and patrol. Not too many people are working on robotics for senior assisted care (part of it is libaility, but that's a subjective risk anyway), but I think this could be a real growth area.

Kudos on your work so far, and best of luck! Please stick around and share how things progress.

-- Gordon

Reply to
Gordon McComb

Easy to do with a microcontroller.

Indeed, especially to someone who refuses to use microcontrollers!

Reply to
Tom Twist

Maybe, depends on how good you are at software.

The question isn't "what is the delay," but can you factor in the delay and mitigate any out of band effects.

The relationship between the motor and the encoder, is similar to the wheel on a ship. Depending on the response time of the motor system, the instantaneous motor responses are great for position updates, but are only useful for trend information for the motor control. You will typically not see instantaneous response from the motors unless you have a very precise mechanical system. In a mobile robot, it may take multiple encoder reading to see the effect of a power increase of decrease.

Why?

My system uses a D/A converter to create an analog -5-+5 signal. 0V means stop. +5 is full forward, -5 is full back. The motor amplifier creates a PWM/direction to drive an H-Bridge.

Very low CPU usage.

And that is what a good motor control system does.

Those aren't mini-ITX boards that I can see.

Reply to
mlw

This is a stupid discussion. My statement about not wanting to use microcontrollers because I think they are too limited and because I don't want to develop microcontroller code is constantly being asserted as meaning that I don't like microcontrollers. Your assumptions about what I said are not what I said.

Reply to
mlw

Actually those are 16 IR high current MOSFETs ganged 4 in parallel for greater current carrying capacity. Each row of 4 is a leg of the h-bridge. There's also a pair of high-side MOSFET drivers on there and an ATmega32 microcontroller providing the "smarts."

It does RS232, RS485, I2C, R/C servo pulse, and simple potentiometer control. The potentiometer can alternately be connected to the shaft of the motor and used to make a giant "servo" where it gives position feedback.

It also does quadrature encoder input and PID control.

It's not all done yet - not quite fully functional, firmware wise, but getting there.

I've placed 4 mounting holes to mount an Athlon CPU heat sink fan over top of the MOSFETs :-)

I torture tested it on a 20 HP E-Tek motor and it survived. Some parts did get hot, though. But it still works :-)

-Brian

Reply to
Brian Dean

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.