We’re having a bit of a heat-wave at the minute in the UK!  It has been over 30°C (86°F) for 2 days in a row.  We can’t cope.  It’s too hot.  Buttons particularly is not impressed.  The coolest place he’s found is on top of the water butt – as you can see in the picture.

Anyway, as everyone knows, the best thing to do when it’s nice and sunny outside is sit inside on a computer and look at Microcontrollers.

I have a lot of experience with PICs, so I’ll stick with them.  There’s no need for anything more powerful than a small 8-bit device, especially given my ultra-low-power requirement.

Choosing a PIC these days is a minefield.  There are so many devices that it’s hard to know where to start.  Microchip have realised this and managed to cash in as a result.  The incredibly popular PIC16F84 is now being sold by Microchip for £3.76, whereas the newer and better PIC16F54 is only 53p.  You could go wild and fork out £1.37 to get the PIC16F1826 which is so much better than the PIC16F84, has more peripherals than you could ever think of using and an internal 32 MHz oscillator!

So whenever you think of using the 16F84, don’t.  Get the 16F1826 instead!

I need to choose a PIC that has SPI/UART support and lots of spare GPIO pins.  The GPS module will likely require some GPIO pins for remotely turning it on and off.  I think I’ll also put an EEPROM on the board so that I can save a log of where Buttons has been, so I’ll need an extra SPI chip-select line for that.

Another feature I’d like to incorporate is a battery-life indicator.  To accomplish this I’ll need to use a PIC with an ADC and an fixed voltage reference.  The fixed voltage reference will allow me to determine the exact voltage of the battery.  I can then transmit the battery voltage back to the base station, allowing me to work out when I may need to change the batteries.

Luckily to help people navigate the PIC minefield there’s a quick reference guide for their latest devices.

Taking all of the above into account, I’ve settled on the PIC16LF18345, a brand new 20-pin device that has all the peripherals I need.  They are still a bit too new to be widely available from places like Farnell, but Microchip have sent me some to sample so I’ll see how I get on with them!

Up next…. the GPS module.

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *