-->
Page 1 of 3

GPIO pins - can they also read directly from sensors?

PostPosted: Wed Nov 11, 2015 11:56 am
by Piie
Hi

I am trying to build a simple system where I use an Arduino as the base - to which I connect a 3 axiz accelerometer, and the ESP8266. I want the unit to hit a website whenever the accelerometer has a reading above a certain value on any of the axis.

I saw some posts where it looks like an Arduino sketch is loaded/flashed directly to the ESP module.

Does that mean that I could use the GPIO's on the ESP module to directly read from the output pins of the accelerometer and thereby reduce my physical and power footprints?

Re: GPIO pins - can they also read directly from sensors?

PostPosted: Wed Nov 11, 2015 12:07 pm
by kolban
In short ... yes. An ESP8266 can run applications and can sense inputs on GPIO pins as well as drive GPIO outputs.

Re: GPIO pins - can they also read directly from sensors?

PostPosted: Thu Nov 12, 2015 7:21 am
by Piie
Thank you, that sounds very interesting, sicne I have another ESP module that has 14 GPIO's.

Does the "long" version of this entail that the application has to be in a specific language - ie, would I be able to simply flash an Arduino sketch?

Re: GPIO pins - can they also read directly from sensors?

PostPosted: Thu Nov 12, 2015 7:39 am
by Erni
would I be able to simply flash an Arduino sketch?


Yes, you just have to install the core files found here:
https://github.com/esp8266/Arduino