I’m pleased to announce the very ALPHA release of the RFM12 library for the wireless HopeRF RFM12 FSK tranceiver module that I’m using for the strobist open trigger project. It was developed under BOOSTC for the PIC embedded controller, but should be easily ported to any compiler.
Most of it is untested, hence the alpha release, but it’s a good starting point. Everything is fairly well documented, but like any project could do with more. Please send me any bug fixes/improvements that you may find while using it.
- 433Mhz and 915Mhz HopeRF FSK RFM12 modules supported
- Initialisation with a basic config
- Set Frequency
- Set Receiver Bandwidth
- Set Receiver Gain
- Set Receiver Signal Strength Indicator Level (RSSI)
- Set Transmit Power level
- Set Transmit Modulation
- Set Baud rate
- Enable/Disable Transmitter
- Enable/Disable Receiver
- Transmit a single byte – blocking
- Transmit a buffer of data – blocking
- Receive single byte – blocking with timeout
- Receive ‘x’ number of bytes into buffer – blocking with timout
TODO: (not in any order)
- Howto documentation
- RFM12 Interrupt handling
- Non-blocking Tx/Rx routines
- MSSP SPI implementation (current SPI implemented via bit bang)
- Frequency hopping
- Custom configurations
Released under the Creative Commons – Attribution-Noncommercial-Share Alike
Please use this library at your own risk. I will not be held liable for any damages.
Well it’s certianly been a long since my last post, sorry! Between getting married and christmas (all on the same day lol), and the kids going back to school, my geeking (as my wife likes to call it) has been taking a back seat lately i.e. not a whole lot happening. However I have managed to squeeze in bit of learning. The first getting myself familiarilised with PIC micros, the picaxe although brilliant for small jobs, I have found to be limited, i.e. no timers etc. so I have been playing around with their big brothers. The fist learning project was a serial LCD using the 16F84, I’m using the brilliant Sourceboost BoostC Compiler ( http://www.sourceboost.com/ )
Also came across a brilliant DSP guide in an easy to understand language and not heaps if heavy maths , and its FREE for the online book http://www.dspguide.com/, this really made the light go on, ding! with the Ahh I get it in the smoke and mirrors world of DSP. I’m definately looking at purchasing a hard cover version.