Can I take data from Arduino with micropython esp8266 and upload it to my web server??
Can I take data from Arduino with micropython esp8266 and upload it to my web server??
I am working on IOT project. I want to take sensors value from my arduino to micropython esp8266 and then upload it to my web server.Can micropython do that.If it does,I want to know what I need and what to do.
Last edited by mechine on Mon Aug 19, 2019 2:38 pm, edited 1 time in total.
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: Can I take data from Arduino with micropython esp8266 and upload it to my web server??
There are surely several ways to achieve what you are trying to do.
You can send your Arduino data via UART, I2C, OneWire, ...
Micropython can do it all. You just have to read the data and upload it to your server, that is very simple.
I wrote a library myself that reads pin values from an arduino connected by oneWire protocol as slave (as a sensor that is being polled by micropython).
I'm not sure it is the right library for you since sending data via UART is a lot easier but it could give you an idea of what is possible: https://github.com/kevinkk525/micropyth ... no_control
I would start reading about UART and trying to receive values from the arduino.
Then read about how to upload those values. It is quite straightforward.
You can send your Arduino data via UART, I2C, OneWire, ...
Micropython can do it all. You just have to read the data and upload it to your server, that is very simple.
I wrote a library myself that reads pin values from an arduino connected by oneWire protocol as slave (as a sensor that is being polled by micropython).
I'm not sure it is the right library for you since sending data via UART is a lot easier but it could give you an idea of what is possible: https://github.com/kevinkk525/micropyth ... no_control
I would start reading about UART and trying to receive values from the arduino.
Then read about how to upload those values. It is quite straightforward.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode