Martin's corner on the web

RF12 Demo sketch for ATtiny84

I ported the RF12Demo sketch by Jeelabs to use with the TinySensor. My plan is to have it run while the TinySensor is connected to RaspBerry Pi’s UART so that I can both receive and send data packets. A PHP script will then capture the packets, decode the contents and post the data to EmonCMS that is installed on the RaspBerry Pi. The sketch requires the modified for ATtiny84 NewSoftSerial library to work.

The sketch itself is available on GitHub, here is ascreenshot of it running on the Pi:

7 thoughts on “RF12 Demo sketch for ATtiny84

  1. Pingback: Capture, decode and log to emoncms RFM12B packets on Raspberry Pi | Martin's corner on the web

  2. Pingback: RaspberryPi+TinySensor as EmonBase | Martin's corner on the web

  3. admin Post author

    When using softwareserial,you define the pins to use in your sketch. Watch out for matching voltage levels and ensure common ground

  4. Harrie

    Martin, I have troubles to get the communication working. I use ArduinoISP to upload the sketch to the Attiny84, no problem. But what pins should I use for the Rx/Tx on my Attiny to communicate with the Rx/Tx from my UNO.
    Whatever I tried I don’t get the configuration screen as shown above 🙁

      1. codedmind

        I will see that thanks!

        I don’t understand nothing of this… just a newbiee i bought and eve alpha and i’m search something to do with it

        Any help is welcome :d