@M5Stack After looking at your comment again I figured out what you were trying to tell me (Took me a while to figure it out). I forgot to tell the M5Stack where to look for the text file using /sd/file_name. That took care of the error. Still am unable to print what I want to the screen but at least I'm one step closer.
Abraxas
@Abraxas
So I decided to go into the field of mechatronics. What I didn’t realize was that it wasn’t a field, it was a wild frontier. The more I explore the wilder it gets and the more I realize there is more out there than I could possibly comprehend. I’ve met many people out on this frontier. Some have been out here longer than others. And I have to say, it’s a real treat to sit down, share ideas, and learn from all of them!
Posts made by Abraxas
-
RE: Error Reading from an SD card
-
RE: Error Reading from an SD card
Hi M5Stack,
Thanks for your answer but this really doesn't help me. I'm trying to create a database so that I can cherry pick the information I want to show the user based on their inputs. The code you sent me takes all data and throws it up on the screen regardless of whether the user asked for that information or not. Here is a small example using python:SD card file data:
Python code:
Python output:
The M5stack does have the ability to parse out information from a list of list, I know because I tested it, but I'm having trouble reading the file from an SD card and creating a list of lists (basically an in memory ready data base.) The reason for the SD card is because this information changes depending on the project. Changing information on an SD card (or switch SD cards) is a lot easier than programming information straight to the M5stack.
Also based on your answer where is fs.close()? Does the M5stack automatically do this or is the file left open while the program is running. If the file is left open while the program is running, how do you mitigate file corruption when loss of power to the M5Stack occurs?
-
Error Reading from an SD card
Hi there!
I'm trying to read file information from an SD card and store that information for later retreival but I keep getting an error on line 10 that I do not understand. Does Anyone know what is going on or what I am missing? I am using an M5stack Fire core with 1.8.0-fire firmware. Code and Output error can be seen below.
-
USB Module (MAX3421E) Python/UI Flow Example?
I would like to take advantage of M5Stack's USB Module (MAX3421E) using python / UI Flow. However when checking for documentation on M5's documentation page, The M5Stack community, and the internet in general I am unable to find anything useful. Does anyone know how I can get this module working using python / UI Flow?
-
RE: Stepper motor module clarification needed
I look forward to hearing about your hacking ideas. Best of luck :)
-
RE: Stepper motor module clarification needed
Good to know thanks! I don't know how feasible it would be yet because I haven't looked at the physical board but how about running jumper wires from M1's pads to the physical pins of the other motor drivers (I just need one more stepper motor for a total of two with the same micro-stepping resolution). Technically that should work and I don't see a problem with it electrically speaking. Thermally speaking however might be a another concern.
-
RE: Stepper motor module clarification needed
Thank you for the clarification! Just a couple follow up questions:
- If M1 has solder pads for adjusting step size what about M2 and M3?
- When you say mega does that mean the Arduino Mega? if so, how does the mega fit into re-flashing the stepper module? Is there a tutorial on how to use the mega to do this?
-
Stepper motor module clarification needed
I just have a few questions concerning the stepper motor module. The questions are as follows:
- What is the step mode for each stepper driver? If the schematic is to be believed from the documents site (and assuming the M5 module really does have DVR8825 stepper drivers and not A4988 drivers) M1 is a 1/32 step while m2 and m3 float which means I don’t know what they are set to.
- Is the current limit already set on each stepper driver or is that something I need to adjust?
- It looks like the Atmel chip on the stepper module is running GRBL 0.8. Am I able to flash GRBL 1.1 on the Atmel chip without breaking anything? (The reason I ask is because it looks like I2C is used to send commands instead of using the USB to serial link normally used by a computer to Arduino device.) And if so, how do I do that?
- How do I adjust any preprogrammed GRBL settings as needed?