November 22, 2024, 07:49:57 PM

MOD-WIFI-ESP8266-DEV I2C

Started by gepeto, April 13, 2015, 09:32:00 PM

Previous topic - Next topic

gepeto

Hi
I decided to make things with the most basic things ;-)
this ESP8266 is great
i wrote some code with the arduino ide (toke on the olimex blog ), the nodemcu lua also
ok  i have wifi connexion , gpio and digital data send , cool

I want to have a simple wifi connexion to some i2c sensors ...

i test sda/sck with the uext , and with other pin ( gpio5 (11) gpio 14(17) )
but i never read correct data
is there something wrong in th hardware library for esp8266 arduino adaptation?
is the uext pin tested ?
i found code /arduino/hardware/esp8266com/esp8266/cores/esp826/i2c.cpp
and put some modification for that
/*
static uint8_t s_sda_pin = 0;
static uint8_t s_scl_pin = 2;
*/
static uint8_t s_sda_pin = 1;
static uint8_t s_scl_pin = 2;
to test other pin ... nothing
i use i2Cscanner.ino code for arduino, or a simple HMC6352 compas .

some one have good result on the i2c ?


i also suggest for this module to make the flashing gpio0 pin more accessible ;)
i cut the solder part and then make strap with external pin to put the flash on or not
but it's not so easy .

thanks

ignat99

https://codebender.cc/example/Souliss/hardware:Olimex:ssOlimex_ex05_RGBStrip
http://www.jann.cc/2013/01/21/control_your_light_at_home_with_a_raspberry_pi.html

May be that links will interesting

And here expert opinion from Dario ( https://groups.google.com/d/msg/souliss/5mK4ANJeCaQ/5rOmCdMTrtcJ)

the ESP8266 is actually supported as microcontroller and not as transceiver. Unfortunately MOD-ESP8266 has on the UEXT connector only the USART and not the I2C used to control the MOD-IO.

Consider also that all MOD libraries are actually AVR only.