Can I take data from Arduino with micropython esp8266 and upload it to my web server??

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
mechine
Posts: 3
Joined: Mon Aug 19, 2019 5:42 am

Can I take data from Arduino with micropython esp8266 and upload it to my web server??

Post by mechine » Mon Aug 19, 2019 5:55 am

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.


kevinkk525
Posts: 510
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??

Post by kevinkk525 » Mon Aug 19, 2019 6:03 pm

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.
Kevin Köck
Micropython Smarthome Firmware: https://github.com/kevinkk525/pysmartnode

Post Reply