Programming

You will program the Moteino through the provided USB-mini port on the main PCB, once your Moteino is plugged in. When plugged in the first time, it will act like any other FTDI device and your PC should install the driver automatically (if not, drivers are available here). Then a new serial port becomes available and you can select it in Arduino IDE. Select Arduino UNO as target board. Depending on your configuration, this kit can serve as either:

  • a motion sensor (MotionMote sketch is here). This will send a “MOTION” message to your configured receiver whenever it detects motion. This is a low power sketch that should last many months on a single charge.
  • a display module that shows messages on your Moteino wireless network (OLEDMote sketch is here). The provided sketch will display any messages on your network of Moteinos (same network ID, encryption key, frequency). It will also blink the LED, beep the buzzer for every received message and the side button allows you to browse through past received messages.
  • mailbox notifier (sketch here). This is very similar to the MotionMote except it will not blink the LED and it will wakeup periodically to send a message indicating when motion was last detected.

These are just sample sketches that illustrate the base functionality of these modules. You can modify and customize them to fit your needs.

Don’t forget that the 128x64px OLED screens can have different pin configurations, make sure to verify the pins order before you connect it to the MotionMote PCB. The default configuration is [VCC, GND, SCL, SDA], but for convenience there are jumpers on the back of MotionMote to allow swapping VCC and GND.