Introducing a Cast of many Characters

A project log for Yet another Home Automation Wireless Doodad!

This is a lowcost rf module designed to link sensors etc to a home automation setup..

FrazzledBadgerFrazzledBadger 03/02/2015 at 20:190 Comments

So a hardware list..

The Braiiiiiins

Firstly the processor, I'm a PIC man through and through, ain't no stinkin' Atmel on my boards.. Flirted with ARM, but found the lack of simple to set up and free IDEs frustrating..

I wanted something cheap, low powered with a reasonable set of peripherals. I went for the PIC18LF25K22, big fan of the K range at the moment, low voltage parts with a nice little chunk of internal EEPROM, unlike the J range. This little fella has 16k of Program Memory, 1536 bytes of RAM, 256 bytes of EEPROM, 2 Master SPI/I2C ports, 2 EUSART ports, 2 Comparators, a ADC Module, a capacitive touch module, a DAC Module, a bunch of timers, PWM capability and an internal 16MHz oscillator. All for £1.89 in 1 off quantities on Farnell and in a tidy little QFN package. I do like QFN..

It can also be run up to 64MHz, and down to 1.8V. I'm using the internal oscillator as this saves on money and board space. A crystal would pretty much be half the size of the processor..

I've recently started using the TAG Connect programming cable :

This is a great invention, it means no added cost adding a programming connector, and is a lot smaller than my previous method.


The Magic Link

The inspiration for this project came from the RF chip, the Silicon Labs Si4455 Transceiver. This marvel can be set to either 283 - 350MHz, 425 - 525MHz and 850 - 960 MHz. I'll be using it in the 850 to 960 range. Modulation is ether FSK/GFSK or OOK/ASK, up to a power of +13dBm, at a data rate up to 500kbps.

Communication is SPI, and all the chip requires is a matching network, Crystal and antenna.

All for a princely sum of £1.57, in a tiny QFN package again. Did I mention I like QFN?

I'm using a 868MHz Johnson chip antenna, costing a measly 92p..


The Muscle

For a power supply, I needed something cheap, I'm used to bunging in a Linear Tech chip, but that would have blown my budget straight away. Chips of Kings indeed.

It needed to be a boost convertor that can cope with very low startup voltages, current capabilities aren't so much of a worry as it should be a low power project.

I went for the Microchip MCP16251T-I/CH, this is a little 6 pin SOT23, can deliver up to 650mA, can start up from 0.82V, and can run down to 0.35V once everything is ticking away.. Output range is between 1.8V and 5V. Oh and its 50p...50p!

I'm going to measure the battery level as well in the processor, to do this I've run it through a TS5A3159 analogue switch, I discovered a foible years ago that if you have a processor powered down, but a voltage applied to a pin, it can wake up again. The analogue switch provides a true disconnect. I guess a N-Mosfet could also be used.

I'm going to run the whole system on 1.8V.


Feel no Evil, See no Evil

For this design, I'm planning on using it as a dev platform, so I want to include a few sensors and access as many of the pins as I can. I'm including a temperature sensor and ldr light sensor. Spare processor pins will be routed to external headers so I can test other sensors including PIR, smoke, strain gauge etc. The temperature sensor is the Microchip MCP9844, this is accurate to +/- 1deg, is I2C and is in you guessed it, a QFN package..

All for 79p.

I'm just using a bog standard LDR as the bottom resistor in a divider pair.

For the external headers, I'm going to use 2.54mm SIL Headers, these are nice and easy to solder to, and potentially can be breadboarded. To these, I'm routing a I2C port, a USART port, a SPI port, 3 Analogue In pins, and 3 GPIO pins. If needed the second USART port can be accessed from the TAG connector.

I also added a pushbutton, I'm thinking for a link announce mode, and a LED, because everyone needs an led in their lives... Plus its handy for debugging.