Converting a pressure sensor code from Arduino to ESP8266
Posted:
Wed Jun 27, 2018 3:28 pm
by SupDoc
I just downloaded some nice sketches, arduino_ms5xxx, for the series of pressure sensors from github, but they will only run on Arduino boards. Does anyone know if there is similar code for the ESP8266, or if it is a reasonable project to convert same to ESP8266?
Re: Converting a pressure sensor code from Arduino to ESP826
Posted:
Wed Jun 27, 2018 4:33 pm
by Bonzo
You can run Arduino code on the ESP8266:
https://github.com/esp8266/Arduino
Re: Converting a pressure sensor code from Arduino to ESP826
Posted:
Wed Jun 27, 2018 6:06 pm
by rudy
Some libraries are written for specific hardware features that are only available on specific architectures. Since most early Arduino supported boards were based on similar AVR processors it wasn't a significant problem. If the library was written with proper hardware abstraction then there shouldn't be a problem. But don't assume that is the case.
Re: Converting a pressure sensor code from Arduino to ESP826
Posted:
Wed Jun 27, 2018 8:41 pm
by theenggprojects
If you know programming a little then you can quite easily do that. Interfacing a sensor is not that difficult. Pressure sensor is an analog sensor so you just need to connect it with analog pin and then read the values of that pin. Now as you have the arduino code so you can get the syntax out of it and then design code for
esp8266.