I have a microcontroller that's input is a 24-bit digital signal. I want to add a clock and an interpreter for a 24-bit converter from a load cell Amplifier. I have to write the code in micropython. I was wondering how to start? and what the first steps are? I've never used Python or micropython before.
I would spend some time learning Python on a PC first, where it will be easier to debug.
When my daughter was an undergrad engineer, they used Zelle as their Python text, and had a million assignments about drawing boxes with varying numbers of asterisks and stuff like that, to learn how to do for loops and what not. Even that was pretty daunting to someone 100% fresh to programming.
But now at post-grad level she's an FPGA guru so it's just a matter of time and diligence....
edit: What's the Arduino connection by the way? Is there an option somewhere in the Arduino eco-system to handle Python that I didn't know about?
AdaFruit has a well done tutorial for CircuitPython which is their variant of Micropython: https://learn.adafruit.com/welcome-to-circuitpython/overview
The MicroPython documentation is excellent, but presupposes some knowledge of python. The site includes an online interactive Micropython terminal one can play with: https://micropython.org/unicorn/
Assuming whatever microcontroller board has library support for the specific data converter you're using, the task you've described, as I understand it (grab data sample from peripheral, get time of sample, print or record to file, repeat at specified interval) should be pretty straightforward, but there are board dependent differences in the specifics.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.