I have been able to do the following with my Motion-OLED Mote Kit Rev2:
1. I assembled the kit, modified the PIR sensor by shorting the diode, removing the LDO and shorting the LDO pins 2 and 3 as shown, attach the recommended charged (4.19V) LiPO Battery to the shield.
2. Enabled the serial port in the sketch in order to verify the Console Serial I/O in Arduino 1.0.5. Serial I/O looks good.
3. The sketch runs fine after up-loading it via the USB Serial port but I need to troubleshoot the PIR sensor in order to see if the PIR sensor is triggering periodically because there is some kind of a power supply problem in it (after my modifications) or if the PIR trigger event are because of me moving around a few feet in front of the sensor. For this I would like the mote to run directly from the battery and not the USB.
In conclusion, I have not been able to program the Mote such that it can boot and run from the Battery when no connected to the PC via the USB Serial port.
My selections are:
Board: Arduino Uno
Programmer: AVRISP mkII
How can I verify that the Mote has the proper Boot Loader and that the Sketch has been programmed correctly? Again, the Sketch runs fine when the Mote is connected to the USB port via the USB FTDI IC on the Shield.
Thank you.
Quote from: Hacker007 on January 07, 2016, 11:23:24 PM
Board: Arduino Uno
Programmer: AVRISP mkII
Once plugged onto the Mote shield, the moteino can be programmed normally. Just load a blinky and blink D9, the Moteino led should blink. Unplug it and if battery is connected (and MotionMote switch is ON) the Moteino should blink, then you know you got that sketch on it. Then you can proceed to loading the MotionMote sketch.
Thanks, Felix. Just so you know, I was able to flash my MotionOLED Sketch and that sketch ran as expected - I was able to see the expected serial messages on the Arduino serial I/O console. What I have not been able to do is run the same MotionOLED sketch from battery after turning on the power switch.
Ok so does the Moteino get power from the battery?
Otherwise if you load a blinky then disconnect USB and turn ON the switch with battery attached, does it blink?
What battery is it?
Felix,
UPDATE: This Post can be closed. Please ignore this Post. As Felix suggested, I upgraded the Arduino IDE to 1.6.7.
I was able to get past the issues I was having with trying to run a particular sketch off the battery. I was then able to send messages from the MotionOLED sketch (RFM69HW w/ATC, 433 MHz) to the Gateway sketch. However, I have not been able to regulate the TX level to arrive near the desired RSSI. I also see that the Gateway is unable to get a response from the node when the node is pinged by the gateway. Because of these problems, I decided to run your unmodified Gateway and Node sketches to see if I was doing something wrong with the minor tweaks I have been making to the MotionOLED sketch. After running the Gateway and Node sketches, I continue to see the same two problems. The only things I adjusted in the Gateway and Node sketches are, FREQUENCY, IS_RFM69HW and ENABLE_ATC as necessary. See attached. Thanks.
See snippet below of Gateway Serial output. By the way, I have no SPI Flash on either of the two Moteinos.
#[1][2] FLASH_MEM_ID:0x0 [RX_RSSI:-37] - ACK sent. Pinging node 2 - ACK...nothing
#[2][2] FLASH_MEM_ID:0x0 [RX_RSSI:-38] - ACK sent.
#[3][2] 1 [RX_RSSI:-38] - ACK sent.
#[4][2] 1 [RX_RSSI:-39] - ACK sent. Pinging node 2 - ACK...nothing
#[5][2] 12 [RX_RSSI:-41] - ACK sent.
#[6][2] 12 [RX_RSSI:-40] - ACK sent.
#[7][2] 12 [RX_RSSI:-41] - ACK sent. Pinging node 2 - ACK...nothing
#[8][2] 123 [RX_RSSI:-40] - ACK sent.
#[9][2] 123 [RX_RSSI:-41] - ACK sent.
#[10][2] 123 [RX_RSSI:-41] - ACK sent. Pinging node 2 - ACK...nothing
#[11][2] 123 [RX_RSSI:-39] - ACK sent.
#[12][2] 123 [RX_RSSI:-40] - ACK sent.
#[13][2] 123 [RX_RSSI:-40] - ACK sent. Pinging node 2 - ACK...nothing
#[14][2] 123 A [RX_RSSI:-40] - ACK sent.
#[15][2] 123 A [RX_RSSI:-39] - ACK sent.
#[16][2] 123 A [RX_RSSI:-40] - ACK sent. Pinging node 2 - ACK...nothing
#[17][2] 123 AB [RX_RSSI:-40] - ACK sent.
#[18][2] 123 AB [RX_RSSI:-40] - ACK sent.
#[19][2] 123 AB [RX_RSSI:-40] - ACK sent. Pinging node 2 - ACK...nothing
#[20][2] 123 ABC [RX_RSSI:-39] - ACK sent.
#[21][2] 123 ABC [RX_RSSI:-39] - ACK sent.
#[22][2] 123 ABC [RX_RSSI:-40] - ACK sent. Pinging node 2 - ACK...nothing
#[23][2] 123 ABCD [RX_RSSI:-40] - ACK sent.
#[24][2] 123 ABCD [RX_RSSI:-40] - ACK sent.
#[25][2] 123 ABCD [RX_RSSI:-40] - ACK sent. Pinging node 2 - ACK...nothing
I get the same result (namely, no response into the Gateway from Node 2) when using a new Moteino (#3) at the Gateway. See below:
Listening at 433 Mhz...
SPI Flash MEM not found (is chip soldered?)...
RFM69_ATC Enabled (Auto Transmission Control)
#[1][2] FLASH_MEM_ID:0xFFFF [RX_RSSI:-48] - ACK sent. Pinging node 2 - ACK...n
othing
#[2][2] FLASH_MEM_ID:0xFFFF [RX_RSSI:-46] - ACK sent.
#[3][2] 1 [RX_RSSI:-44] - ACK sent.
#[4][2] 1 [RX_RSSI:-44] - ACK sent. Pinging node 2 - ACK...nothing
#[5][2] 12 [RX_RSSI:-44] - ACK sent.
#[6][2] 12 [RX_RSSI:-44] - ACK sent.
#[7][2] 12 [RX_RSSI:-43] - ACK sent. Pinging node 2 - ACK...nothing
#[8][2] 123 [RX_RSSI:-44] - ACK sent.
#[9][2] 123 [RX_RSSI:-43] - ACK sent.
#[10][2] 123 [RX_RSSI:-44] - ACK sent. Pinging node 2 - ACK...nothing