WiFi PIR motion sensor (EasyIoT Cloud REST API)

5 years 6 months ago - 5 years 6 months ago #3137 by Landix
When i use this setup:
Same with Arduino IDE 1.6.8 and updated libraries:
after reset/ powercycle:
`Exception (0):
epc1=0x4021479d epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys 
sp: 3ffffd80 end: 3fffffb0 offset: 01a0

3fffff20: 40209126 00000000 00000022 00000000

3fffff30: 4020828d 00000000 4020b519 3ffec6a0

3fffff40: 3fff0a34 40211c77 3ffea7ac 3ffea7b8

3fffff50: 3ffea7b8 0000008c 00000000 00000022

3fffff60: 00000002 0000001a 402070f3 3ffec6a0

3fffff70: 3ffea7ac 3fffdcc0 3ffe8d40 3ffe8d40

3fffff80: 00000080 3ffec6a0 3fffdab0 00000000

3fffff90: 40206a1b 3fffdab0 00000000 402035ef

3fffffa0: 3ffe8d40 40000f49 3fffdab0 40000f49

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
Connecting to AP..
I use a nodemcu 1.0 with esp8266 12E

with simple sketch:
#include "EIoTCloudRestApi.h"

// EasyIoT Cloud definitions - change EIOT_CLOUD_INSTANCE_PARAM_ID
#define EIOT_CLOUD_INSTANCE_PARAM_ID "xxxxxxxxxxxxxxxxxxxxxx"

#define INPUT_PIN 4

EIoTCloudRestApi eiotcloud;
bool oldInputState;

void setup() {


oldInputState = !digitalRead(INPUT_PIN);
// delay(5000);

void loop() {
int inputState = digitalRead(INPUT_PIN);;

if (inputState != oldInputState)
eiotcloud.sendParameter(EIOT_CLOUD_INSTANCE_PARAM_ID, (inputState == 1));
oldInputState = inputState;

My Hardware setup is to feed the PIR with 3,3Volt from nodeMCU, (PIR have 3,3 volt input).
PIR output is 3,3Volt to GPIO 4 (so i not feed the GPIO 0,2,15).

Powersupply serve 5.1V to USB Port of the NodeMCU and have 2.5A

I test this on 3 NodeMCU also with 3 PIR.

Also i try capacitors between VCC and GND, no changes :(

Did not have a solution yet.

Please Log in or Create an account to join the conversation.

Time to create page: 0.278 seconds

Forum latest

  • No posts to display.