I disassembled one last night and the confirmed what you said. I took a look on Aliexpress and it appears that 200mm and 300mm stepper motors (ie. T8 lead screws attached) are fairly inexpensive, so no need to remove screw from the motor. Just need to confirm the model with the correct motor height (40mm ) and pitch.
Cheers!
FYI I am using this motor to build a portable macro photography rig.
Posts made by robjasey
-
RE: 6060-PUSH Feed Speed & Calibration
-
RE: 6060-PUSH Feed Speed & Calibration
Thanks for the reply. Actually that has not been my experience with stepper motors. As long as you know the pitch (mm/rev) and the step count (steps/mm) I have found them to be pretty accurate.
I will be able to deal with the this by mapping the values to correct, but I was hoping this would at least be consistent otherwise each has to be manually calibrated.
I really like this little stepper motor, especially for the price. It also looks like it could be easily modified to extend the length by replacing the 1515 aluminum extrusions and the screw rod. -
6060-PUSH Feed Speed & Calibration
Hi, there is no documentation on the feed speed command. (ID???:F????\r\n).
Does anybody know what the default value is and what speed it represents?
On a side note , I have determined that there seems to be a discrepancy between the mm values entered using the Move (:X) command and the actual distance travelled on my unit. If I enter ID123:X40.0\r\n the motor travels to 50 mm (for example).That is 50mm from the position it returns to when you send Find Zero. Have others found this to be the case?
Is this consistent for each 6060-PUSH unit?
Thanks in advance! -
4-Relay Unit question
I just bought some 4-Relay Units (i2C) and I found that there are two operating modes; synchronous and asynchronous. The documentation does not describe the difference between these modes except to say, don't use asynchronous!
from documentation - UIFlow functions
"Set LED and relay mode
Synchronize
LED and relay ON/OFF are synchronized.
Asynchronous
LED and relay ON/OFF are asynchronous."- Can anybody shed light on what they are referring to? Does this mean that in asynchronous mode you can select the LED and Relay separately?? Or does it refer to the settings of the individual relay values?
from documentation - RELAY control Reg 0x11
"Note:The relay can only be controlled in synchronous mode, if the relay is controlled in asynchronous mode, it will not work."
2. If we are not supposed to use the asynchronous mode the why the heck do they let you select it???Thanks in advance!
-
RE: Where is asyncio?
So I tried help("modules") to get the list of all modules. Turns out there is a reference to "_uasyncio" but the object looks like it is only a shell of a module. It has references to a Task class and TaskQueue class but no functions. An attempt to use _uasyncio confirms this. Sigh.
-
RE: Where is asyncio?
@ajb2k3 Thanks for your assistance. I do know how to use the dir and help functions, but I have looked in m5stack and machine and cannot locate them (even drilling down modules are in m5stack and machine.)
-
RE: Where is asyncio?
@ajb2k3 thank you. how does one access descriptions of the contents of the firmware that are accessible through micropython? I have tried importing (i.e. import uasyncio fails)
-
RE: Where is asyncio?
V1.9.8
Sorry for the delay in responding . Running on Core -
Bug in Micropython. '#' causes Syntax error on Core
Version v1.9.8 Core
The following code will cause a syntax error when run
x = "#"
print(x)I guess the interpreter thinks the # string is the start of a comment.
Why did I need this? I am trying to send the GRBL command "$#" to the GRBL stepmotor module. (which is one of the commands it accepts).
Workaround
x=b'\x23'.decode()
grbl.g_code('$'+x) -
Where is asyncio?
I tried importing both uasyncio and usyncio. Both failed (no module). Where do I find the async modules?
Thanks in advance! -
RE: How to see print() output and REPL from VSCode?
I have the same problem Frank. I have yet to be able to do this. It's very frustrating and a real limitation of the devices IMHO. I really wish they would make this work as they hardware is perfect for small IOT devices, or if there is some way to do it they would TELL US!
As a work around I set up an MQTT publish to send the equivalent of print statements to a MQTT mosquitto server so I can subscribe and read them on another device . Here's an example of the micropython below. Note that I run mqtt.start() in the main.py because I am also using subscribe in main app for another purpose.
Note that you need to supply the ip of the mqtt server. And choose your own topic of course
It should act like a real print statement so you can mix and match object types, plus I added a "name" argument so you can specify where the code is coming from . The print statement prints "{name} -- {print contents}Tailor to suit .
e.g
in main.pyfrom mprint import * try: m=1.008 b= 29 mPrint("slope",m,"intercept",b) mPrint("slope: {}, intercept: {}".format(m,b)) mPrint(json.dumps(records),name="imuTest") mPrint(dir(imi)) except Exception as e: mPrint("failed",e)
from m5mqtt import M5mqtt import io try: mqtt except: mqtt = M5mqtt('servo','192.168.x.x', 1883,'','',300) def mPrint(*args,name =__name__,**kwargs): outs = ptos(*args,**kwargs) x="{} -- {}".format(name,outs) mqtt.publish(str('m5logs'),x) def ptos(*args,**kwargs): output = io.StringIO() print(*args, file=output, **kwargs) contents = output.getvalue() output.close() return contents if __name__ == "flow.m5ucloud": mqtt.start() mPrint("test message")
-
RE: Atom Socket UIFlow example?
@felmue Thanks! I made a simple MQTT UIflow example that I'd be willing to post. Do you know if there is a way to do that ?
-
RE: Atom Socket UIFlow example?
@robjasey Looks like I was able to figure it out from the arduino code. Note that at this time I was only interested in turning on or off the socket, not monitoring the voltage or current. Basically you control the socket through Pin 23. I created a simple example that would turn on or turn off the socket from the button or an MQTT message to "socket" which I would have attached but it appears attachments are not supported in the community (or I don't know how to do it).
Cheers! -
Atom Socket UIFlow example?
I purchased an Atom Socket that I want to control using MQTT. I see there is an arduino example on the website but no UIFlow version. If there is no micropython module to control the socket , is there a description of the communication protocol so I can create the class myself?
-
ATOM vs Core with respect to network activation and MQTT
I have been developing using Micropython on Atoms (in USB Mode , using the M5Stack plugin for Visual Editor (mac). I set up a module as the equivalent of a print command that publishes the printed text to a log subscriber using MQTT. I found that I did not have to initialize the network since my router SSID and password are installed when you burn and configure using M5Burner. I think this is great because it does not expose my network information in my .py scripts.
However I just started using a Core (Panda) development unit. I set it up the same way but when I try to run the scripts in Visual Editor (in USB mode) the network is not enabled. (I get a 128 error in the MQTT publish). I really do not want to expose my network info and I have verified that the network works when I set it to internet mode and run it on web UIflow (as does the MQTT script).
Is there some way I can get the network started in USB mode (or APP mode for that matter) without activating it in a .py script?Thanks in advance!!
Rob