CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > PIC Programing / Design


PIC Programing / Design Discuss programing of PIC chips here and design of electronics using PIC chips.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-13-2008, 10:25 PM
 
Join Date: Dec 2006
Location: USA
Posts: 808
Cartierusm is on a distinguished road
Automation Controller Board Help!

I don't know if I even have the right forum but I'll give it a shot. I'm going to be building an automation machine. I'll try and explain the function of the switches and if someone can help to tell me how to build/buy/program this sort of thing I'd appreciate it or at least where to start.

The function would go something like this:

A main rocker switch would turn the unit on and immediately would turn on Switch1 and Switch2 > The Operator would press a momentary button then the controller board would perform the following function > Switch3 would turn on a motor when the motor hits limit Swtich4 the controller turns off Switch2 and turns on Switch5 and Switch6 > when limit Switch7 is hit the unit stays in it's current position for 1 minute > then Switch8 and 9 are turned on returing the motors to their original position hitting more limit switches and then Switch3 is turned off and the unit stays until the momentary button is pushed again.

Now that is the simple version of basically switched turning on and off by other switches and a timer at one point. The ultimate would be an LCD Display to control the speed of the motors and the time the motors stay in position after they reach their limit switches, this would mean a built in speed controller (a digital voltage variac?). It would also have a few fail safes, so when it's first turned on it waits until certain parts to come up to temperature by use of a thermistor to a set tempertature and then the momentary switch would light up telling the operator to perform the function.

As I said any help would be appreciate, any idea or direction would be helpful as I have no idea where to go. I don't neccesarily need to build it myself, although I'm pretty good with electronic fabrication, just not design or programming, I can make boards and such. Thanks.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 10-15-2008, 02:40 PM
 
Join Date: Dec 2006
Location: USA
Posts: 808
Cartierusm is on a distinguished road

OK no responces, oh well. I've figured some of this out. I've bought a kit to play around with a Parallax Stamp Discovery Kit and I'm already learning the program.

So what's everyone's opinion for this kind of microcontroller?
Tweet this Post!Share on Facebook
Reply With Quote

  #3  
Old 10-15-2008, 03:33 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 15,714
Al_The_Man is on a distinguished road
Buy me a Beer?

If you just want point to point moves and minimum operator input, i.e. push buttons - limit switches etc, then a PLC might be an ideal way to go.
It has all the inputs and outputs conditioned already. e.g. opto's and relays etc.
Some even have motor controller outputs rather than using simple on/off outputs.
For design from scratch the PicMicro site has lots of application notes and free design software for PIC implementation.
There is also a PIC tutorial page here:
http://www.winpicprog.co.uk/
http://www.winpicprog.co.uk/pic_tutorial.htm
Al.
__________________
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 10-19-2008, 03:43 PM
 
Join Date: Jan 2006
Location: USA
Posts: 1,495
keebler303 is on a distinguished road

A PLC would be a good "professional" way to go. If you are looking for something cheaper, a microcontroller with some extra circuitry would give you about the same functionality. I've never dealt with PLC programming, so I don't know the ins and outs of it but I do play around with some PIC microcontrollers and have been pretty satisfied with the results. It will definitely take time to develop all of the external circuitry to keep the microcontroller safe from the world.

If you are making only one and want it cheap, the microcontroller way may be better. If you are making a bunch, a PLC will let you get things done much quicker. Once one is working, you just have to program the rest and all the relays and conditioned inputs are already there ready for you to hook up.

The choice really is up to you, you know what your skills are and what the project is.

Good Luck
Matt

EDIT: I use Hitech C for programming www.htsoft.com They have a free development environment (hitide) and a free version of their compiler. I use a Pickit2 for programming and I have been very happy with it so far.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 10-19-2008, 04:19 PM
 
Join Date: Sep 2008
Location: USA
Posts: 13
Jim G is on a distinguished road

One other thought would be simple relay logic.

Going the pic route would be far more complicated than necessary.

PLC's use relay ladder logic to create the program. Pretty easy to use and develop.
Automation Direct has low cost PLC's. I have installed several in punch presses for an air solenoid controller that have hundreds of thousands of cycles on them.
They would certainly do the job, but again, adding greater complexity than is probably necessary. (Much easier to develop than a pic system though.)

With just relays, you could get time-delay relays that initiate from:
Delay on Break
Delay on Make
Interval (actuation switch makes it cycle on and off.
and other special purpose functions.

Then use cube relays for the rest.

Regardless, the first thing to do is create a flow chart.
Once you know exactly the functions to be carried out, you can divide out the inputs/outputs and delay functions to create the relay ladder.

Hope this helps,
Jim
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-19-2008, 07:40 PM
 
Join Date: Dec 2006
Location: USA
Posts: 808
Cartierusm is on a distinguished road

Thanks Keebler. I think I'll go with the Parallax Stamp as I can get a real good one for about $50 new on ebay. That way if I ever need to upgrade the machine I can do so without having to add more circuitry as I've already started to learn how to wire and program in. But I'll looking what you're talking about to see the similarity. What MCU do you recommend I start looking at?
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 10-19-2008, 08:01 PM
 
Join Date: Jan 2006
Location: USA
Posts: 1,495
keebler303 is on a distinguished road

So you know, The pickit2 programmer is something like $40 and the compiler and development environment are free. The chip depends somewhat on the compiler you are using. The hitech C 'lite mode' compiler (the free version) will program all 10,12,16 series PIC's. I would recommend a chip with an onboard oscillator to simplify the board.

Right now I am really into the PIC16F88. Onboard oscillator, Analog to digital conversion, USART (for serial port). The current project is using one to measure an analog voltage and report that to the computer via rs232. Pretty neat stuff!

You might want to look into some chips with more i/o pins if you have a lot of switches, buttons, and such. For example the 16F877A has almost 30 i/o pins.

I don't really know about the parallax stamp so I can't really give you a comparison.

Matt
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
who knows this isel automation controller ninni General Metal Working Machines 4 02-28-2011 05:44 AM
SM-1 controller board ID tjs88yj HURCO 0 03-30-2008 02:18 AM
One controller board does it all? Hack General Electronics Discussion 4 03-07-2006 04:51 AM
SMC 800 3 axis controller Board jwtech General Electronics Discussion 2 03-05-2006 08:14 AM
4th axis controller board? CNCadmin DeskCNC Controller Board 1 08-30-2004 04:38 PM




All times are GMT -5. The time now is 08:52 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353