Welcome, Guest

Author Topic: Arduino sketch for ESP8266 WiFi Relais from Olimex  (Read 3778 times)

Helmut

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Arduino sketch for ESP8266 WiFi Relais from Olimex
« on: April 19, 2015, 01:22:51 AM »
Now the ESP8266 WiFi SoC can programmed with arduino sketch.

Does anyone have a sketch application for these relays?

Best regards, Helmut

olimex

  • Administrator
  • Hero Member
  • *****
  • Posts: 784
  • Karma: +20/-3
Re: Arduino sketch for ESP8266 WiFi Relais from Olimex
« Reply #1 on: April 20, 2015, 10:26:16 AM »
the sketch is in any Arduino IDE and is named Blinking LED just change pin number from 13 to 5 as seen on blog post :) as relay is connected to pin 5

ignat99

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Arduino sketch for ESP8266 WiFi Relais from Olimex
« Reply #2 on: May 26, 2015, 12:59:51 AM »
https://www.olimex.com/forum/index.php?topic=3743.msg18748#msg18748

Good question!

I find links:

http://www.esp8266.com/viewtopic.php?f=6&t=1713
https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050
http://playground.arduino.cc/Main/MPU-6050#short

Also Olimex example:
https://www.olimex.com/Products/Modules/Sensors/MOD-MPU6050/resources/MOD-MPU6050_arduino.zip

And I'm try use it for ESP8266-EVB, but

1. No possible connect MOD-MPU6050 and USB-Serial-Cable-F at the same time (So I'm try use https://github.com/souliss/souliss/tree/friariello-porting to look at measurement readings on Android).
2. Or need https://www.olimex.com/Products/Modules/Interface/UEXTx5/open-source-hardware
3. const int MPU=0x68;  // I2C address of the MPU6050
4. Set up the interrupt pin, its set as active high, push-pull
#define initPin 4 
pinMode(intPin, INPUT);  digitalWrite(intPin, LOW);
5. Set up LED_PIN
#define LED_PIN 5
6. Set up GPIO2/SDA, GPIO4/SCL - but I'm don't know where?
~/arduino-1.64/hardware/arduino/avr/variants/ethernet/pins_arduino.h

but in ~/.arduino15/packages/esp8266/hardware/esp8266/1.6.4-673-g8cd3697/libraries/Wire

possible use Wire.begin(SDA,SCL), so Wire.begin(2,4) for ESP8266-EVB?

For ESP01 Wire.begin(4,5)?

It is correct?

May be some one have example for MOD-MPU6050 and ESP8266-EVB?

PS: the sketch

https://github.com/souliss/souliss/pull/134/files

« Last Edit: May 26, 2015, 10:59:56 AM by ignat99 »