Integrating micropython into python project
Posted: Wed Jul 31, 2019 9:17 am
Hello everyone,
I've recently started using Micropython for a small home project, where I'm using an adafruit esp32 board to record analogue data. Currently, I deployed the code on the board and save the data to a txt file, from which I can import my readings into my main python project. Looking at some pyboard projects I saw that solutions exists (https://github.com/dhylands/json-ipc) to establish communication channels between a micropython board and a python project. However, my board is not a pyboard and so I'm confused whether any of these would be applicable to me. What I would like to understand is whether I can integrate a micropython code within a standard python project? In this case I could call a function on the esp32 board and also receive data real time (the latter through serial communication potentially). This might be a very simple problem for someone with a hardware background, but I believe I lack the relevant experiences.
An additional constraint is that I need to sample in the kHz range, which might be relevant concerning the communication channel used.
I would appreciate your help with this.
Best regards,
L.22
I've recently started using Micropython for a small home project, where I'm using an adafruit esp32 board to record analogue data. Currently, I deployed the code on the board and save the data to a txt file, from which I can import my readings into my main python project. Looking at some pyboard projects I saw that solutions exists (https://github.com/dhylands/json-ipc) to establish communication channels between a micropython board and a python project. However, my board is not a pyboard and so I'm confused whether any of these would be applicable to me. What I would like to understand is whether I can integrate a micropython code within a standard python project? In this case I could call a function on the esp32 board and also receive data real time (the latter through serial communication potentially). This might be a very simple problem for someone with a hardware background, but I believe I lack the relevant experiences.
An additional constraint is that I need to sample in the kHz range, which might be relevant concerning the communication channel used.
I would appreciate your help with this.
Best regards,
L.22