RFM12Pi V2

From OpenEnergyMonitor Wiki
Revision as of 20:06, 24 March 2013 by Glyn.hudson (Talk | contribs) (Design Files)

Jump to: navigation, search

RFM12Pi V2

Technical Overview

  • ATmega328 based, has more memory and hardware serial support
  • Runs on the internal 8Mhz oscillator (to save unnecessary components)
  • SMT used, board layout is optimized for pick-and-place machine; SMT also means it is lower profile compared to the old version thus fits inside most Raspberry Pi enclosures
  • The new RFM2Pi with ATmega328 allows programming directly from Raspberry Pi using avrdude (..and OptiBoot)

RFM12Pi V2 Setup

sudo avrdude -v -p atmega328p -c avrispmkII -P usb -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xE2:m -U flash:w:Optiboot328_8mhz_RF12_Demo.hex

Uploading to the ATmega328 from the Pi

Upload to 328 with ISP:

Sketch upload on Pi: cd /RFM2Pi/firmware/RF12_Demo_atmega328 avrdude -v -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 38400 -U flash:w:RF12_Demo_atmega328.cpp.hex


Design Files

The board schematic, layout and firmware are available on github