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 07-27-2009, 05:43 AM
 
Join Date: Apr 2007
Location: UNITED KINGDOM
Posts: 19
DALEK is on a distinguished road
Almost total ignorance

Hello world,

I am an electronic engineer but when I was in university there were only six computers on the entire campus. It wasn't a bad university it was just a long time ago.

Now I must make a LCD display thermometer at low cost, high accuracy and with a very long battery life. I took the liberty of peeking inside a competitors product and they use a PIC16f628A.

I cannot overestimate my ignorance of these modern devices.

Can someone tell me what development kit and software I need to buy?

Thank You.
Reply With Quote

  #2  
Old 07-27-2009, 08:11 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

If you visit the PicMicro site, they have all the Free development software, compilers,debuggers etc you need, including App notes.
For a programming module, there are many designs out there or a cheap one by Kitsrus.com
Also there is a text book by Mike Predko that has a printed .CCT card comes with it to build one.
For online tutorials see the Nigel Goodwin tutorial site if you want to get started with interfacing etc.
http://www.winpicprog.co.uk/
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.

Last edited by Al_The_Man; 07-27-2009 at 08:32 AM.
Reply With Quote

  #3   Ban this user!
Old 07-28-2009, 04:41 PM
 
Join Date: Aug 2006
Location: usa
Posts: 247
amplexus is on a distinguished road

1 How high of accuracy over what range? if the range is wide you probably need platinum rtd. Thermistors are not very linear but the nonlinearities can be compensated for.
2 build everything possible usinf cmos for low power
3 steal the plans, there are tons of free schematics out there.
4 use a low duty cycle sampling to save power
5 consider a solar cell battery charger
6 a pic may be overkill
Amplexus
Reply With Quote

  #4   Ban this user!
Old 07-28-2009, 07:39 PM
 
Join Date: Jan 2007
Location: USA
Posts: 355
Eurisko is on a distinguished road

Originally Posted by amplexus View Post
... a pic may be overkill
Amplexus
A PIC is overkill, but it's time to jump in and meet the competition head-on

The PICs are fast, reliable, and energy efficient. They offer sleep modes to save energy, and internal oscillators to save valuable board space (and money).
In addition, the PICS can be reprogrammed in circuit, which is a nice feature.

I'm strictly a PIC hobbyist, would love to have more time investigating what these amazing chips can do.

BTW, I use an Olimex PIC programmer. I highly recommend it.

There are a ton of development boards for PICs. Make sure that your programmer is MPLAB * compatible; it really makes developing code easier.

* PIC programming software suite, free from Microchip



Good luck, and have fun.
__________________
Diplomacy is the art of saying "Nice doggie" until you can find a rock. - Will Rogers
Reply With Quote

  #5   Ban this user!
Old 07-29-2009, 05:27 AM
 
Join Date: Apr 2007
Location: UNITED KINGDOM
Posts: 19
DALEK is on a distinguished road
Bucket of frogs

Thanks for replies guys.
I have looked at the Pic Microchip website but it is like looking at a bucket of frogs.
I have designed dozens of circuits using RTD's Thermocouples etc, so I dont have a problem with the linear end of the circuit. I need to make a thermometer which is accurate to about 0.1% and a permanent LCD display which updates about every 10 seconds. I need a battery life of some years with two AA batteries. I think this is a mathematical impossibility with the type of circuits I am used to. Also it would be an advantage to make the device programmable for different sensors, maybe max/min also.
If I use some ultra low power linear cicuitry, a 16f628A and a AYO438 display driver is this possible?
Are you saying that if I buy a development board and a MPLAB compatible programmer I can download the software I need free from the Microchip website. I have plenty of time to play around at the the moment as business is so bad.
Reply With Quote

Sponsored Links
  #6  
Old 07-29-2009, 10:01 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

The MPLAB is free to download off the site.
This gives you all the development tools except the programmer itself, which is not that much to buy or build.
I also suggest you download the two manuals, IDE Users guide & the MPASM assembler guide.
Also the Data Sheet for the Chip you are using.
I found Nigel's site very helpful when getting started. He shows the analogue input technique together with the common HD44780 or variation of the LCD 2 line display is often used with these I.C.s which also have serial out for the data.
I am not familiar with the AYO438, who makes it?
BTW FuturLec sell the prototype boards shown on Nigels site.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.

Last edited by Al_The_Man; 07-29-2009 at 02:21 PM.
Reply With Quote

  #7   Ban this user!
Old 07-29-2009, 06:35 PM
 
Join Date: Sep 2006
Location: USA
Posts: 3
mckban is on a distinguished road

For a programmer I would highly recommend the Pickit2 or Pickit3 (which I haven't used yet) from Microchip. $35 last I looked and it supports about all of their chips. If you want to program in assembly then MPLAB is free, but for a good low cost C compiler look at www.sourceboost.com The price is better than any other I've found, and generates some very compact code. For low power consumption I think Microchip has some newer low power chips, and I believe most of them have sleep and other low power modes that will help.
Reply With Quote

  #8   Ban this user!
Old 07-29-2009, 10:34 PM
 
Join Date: Aug 2006
Location: usa
Posts: 247
amplexus is on a distinguished road

Do you need a bridge and a platinum rtd or will a thermistor do? what is your temp range?
I think you have a better chance with discrete cmos chips than with a pic, (I love pics but for this they may not be the best choice. )
Seriously cosider a photovoltaic and lithium rechargable batteries.
avoid backlit displays
choose as small as possible lcd
Less frequent updates if possible
Amplexus Ender
Reply With Quote

  #9  
Old 07-30-2009, 08:03 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,544
Al_The_Man is on a distinguished road
Buy me a Beer?

Among my decision for opting for a Pic would the greatly reduced real estate over discrete IC's also cost is not an issue when Pic's run from $1 to $5.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #10   Ban this user!
Old 07-30-2009, 07:08 PM
 
Join Date: Aug 2006
Location: usa
Posts: 247
amplexus is on a distinguished road

Pics are cheap and easy, if not for the power constraints they would be my first choice as well but they are not ultra low power.

Amplexus
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-31-2009, 03:14 AM
 
Join Date: Feb 2008
Location: USA
Posts: 161
Joe S. is on a distinguished road

Hello DALEK,
Programmer / Development PICKit2 and the low pin count demo board, comes with an 16F690 PIC for about $50 or so US. For software, MPLabs PIC Basic Pro IMHO @ $249 full version with manual.http://www.picbasic.co.uk/forum/ this link will direct you to a great forum, dedicated to PICs. Throw in a couple of low cost breadboards, some LEDs and jumpers and you are on you way for less than $400 US, you could do it a bit cheaper using a JDM and ICPROG to program, but the PICKit with demo board reprograms each time you recompile with no extra button pushing or removing of the chip. Note: PBP only works for 8 bit PICs all 12Fs, 16Fs,18F chips, noDSPic or beyond, still lots of things can be done with 8 bit chips, most certainly the project you mentioned. With PBP you can use it's assembler or MPASM and you can incorporate assembly routines into your basic program. This is NOT an interpreted basic, it compiles standard INTEL HEX just like C, or assembly does. It is available from Crownhill in the UK, BTW Microchip was offering a reduced price on PICKit2 in the EU, I on the other hand paid Full Price.
Microcontrollers are like automobiles, the faster you make them go the more they consume, if you select a chip with low power OSC and run it slow, sleep between check cycles, you can drive down their power requirements dramatically.
Reply With Quote

  #12   Ban this user!
Old 08-04-2009, 10:56 AM
 
Join Date: Apr 2007
Location: UNITED KINGDOM
Posts: 19
DALEK is on a distinguished road

Thanks for all your replies guys,
I definately need a RTD for this project, for both the range and accuracy, about 500* Celsius.
The display driver chip I mentioned is a AY0438 ( my typo) which is made by the same company as the Pic. It just takes serial input and outputs to digits.
I can see everyone is enthusiastic about these devices so I have managed to get hold of a Picdem 4 development kit. I will play with it until I get a headache and let you know how I get on.
Reply With Quote

Reply

Tags
pic microcontroller




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
CAD/CAM w/o CNC ?? (total rookie) Clampy Musical Instrument Design & Construction 4 01-14-2008 10:18 PM
Total noob umarekawaru General CAM Discussion 4 12-18-2007 05:54 AM
Hello, I'm a total noob unseen wombat Commercial CNC Wood Routers 5 01-06-2007 03:42 PM
Forgive my ignorance marx911 CamSoft Products 3 11-23-2004 11:08 AM
question of ignorance- Can you do your own extrusions? july_favre Bending, Forging,Extrusion... 5 09-17-2004 10:28 PM




All times are GMT -5. The time now is 03:49 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 354 355 356 357 358 359 360 361