Questions tagged [motordriver]

127 questions
41
votes
4 answers

How to hide _id from Aggregation?

I've this query: produits = yield motor.Op(db.users.aggregate, [{"$unwind":"$pup"},{"$match":{"pup.spec.np":nomp}}, {"$group":{"_id":"$pup.spec.id","pup":{"$push":"$pup"}}}]) which gives me this result: print produits {u'ok': 1.0, u'result':…
Abdelouahab Pp
  • 4,252
  • 11
  • 42
  • 65
23
votes
9 answers

Bitwise rotate right of 4-bit value

I'm currently trying to control a stepper motor using simple full steps. This means that I'm currently outputting a sequence of values like this: 1000 0100 0010 0001 I thought an easy way to do this was just take my 4-bit value and after each step,…
NT93
  • 316
  • 2
  • 15
14
votes
3 answers

Future task attached to a different loop

I am trying to connect to mongodb in FastAPI. I am repeatedly getting this exception. File - main.py app = FastAPI( title=config.PROJECT_NAME, docs_url="/api/docs", openapi_url="/api" ) @app.get("/api/testing") async def testit(): …
5
votes
1 answer

Sanic and Motor use different event loops

I am new to Sanic and I am trying to get it to work with Motor. I did manage to get everything to work in a single file, however, when I try it out within my project structure, I am running into the below issues. [2018-02-28 17:26:58 +0530] [3720]…
Mangesh
  • 137
  • 2
  • 9
4
votes
3 answers

Stepper Motor Control Timing

I have a question regarding stepper motor control while using the Microchip TCP/IP stack. In the past I have used a timer for my stepper motor control. I set the period of a timer to the required time between pulses and then I change the motor…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136
4
votes
1 answer

Stepper motor linear acceleration

I am working on a Python code (below) that accelerates a stepper motor until it reaches a specific amount of steps. for s in range (steps): if s < accelerationsteps: lateststep = self.oneStep(direction, stepstyle) …
LuukS
  • 171
  • 2
  • 12
3
votes
4 answers

Is there a way to define a MongoDB schema using Motor?

There is a way to define MongoDB collection schema using mongoose in NodeJS. Mongoose verifies the schema at the time of running the queries. I have been unable to find a similar thing for Motor in Python/Tornado. Is there a way to achieve a similar…
chaudharyp
  • 3,394
  • 3
  • 26
  • 42
3
votes
2 answers

Commanding a Stepper Motor Controller over USB

I am trying to do some experiments on the Trinamic StepRocker Stepper Motor Controller in Gnu/Linux. I had attahched the device through USB to a Windows machine previously and used Trinamic's proprietary software to test if the controller is…
Subhamoy S.
  • 6,566
  • 10
  • 37
  • 53
2
votes
0 answers

Stepper motor powered, but not turning

I am new to using stepper motors and micropython. I am having trouble getting my stepper motor to turn. I am using a raspberry pi pico and a tmc 2208 driver to control my stepper motor. I can hear the coils being powered on and off, but I get no…
TiVe
  • 73
  • 4
2
votes
1 answer

check all filter is exist in database or not

There are some data in my mongodb collection like this : {"_id":{"$oid":"60603f0075ee1d1cdcd95d1a"}, "store_id":{"$oid":"60603dd675ee1d1cdcd95d18"}, "product_id":{"$oid":"6062f6973f24de12f0264013"}} I wanna pass query , my query is list of store_id…
milad_vayani
  • 398
  • 1
  • 4
  • 14
2
votes
1 answer

How to convert MotorLatentCommandCursor to list

I use Motor driver of mongoDB in my django project and I have problem to convert my data(who comes from database as cursor) to list, here is my code: documents = db.factor.aggregate([{"$limit": 3}, {"$lookup": {"from": "subfactor",…
Amirhossein Azhdari
  • 170
  • 1
  • 3
  • 20
2
votes
1 answer

Stepper Motor Control with DM320T, Raspberry Pi 3B and MATLAB

I need help troubleshooting my stepper motor control setup. I am trying to rotate a stepper motor a certain angle at a given speed. I connected and program the setup as follows but I can't get the stepper motor to move. I suspect it is my code,…
Sam Ade
  • 21
  • 3
2
votes
4 answers

Programming in Python: Controlling Stepper Motor + Raspberry Pi Zero + L293D IC

(Warning! I am not educated on this topic) Hey folks. I'm posting here because I have a friend who desperately needs help with her project. I'm familiar with scripting, but not too much with programming. I do work in IT, so I'll do my best to…
JakeWesker
  • 33
  • 1
  • 5
2
votes
2 answers

Unable to Run BLDC motor using L6234 with ATmega16

I want to drive BlDC motor using L6234 Driver IC with help of Atmega 16 Controller. Logics for driving motor are given in the motor driver IC L6234 datasheet on page 9. Here is the link for datasheet. So, according to the datasheet I write a code to…
2
votes
1 answer

Talking to a motor driver through USB

I have a motor, connected to a motor driver, connected a windows XP computer by a CAN-BUS (throught USB). I want to "talk" to the motor driver and have some questions: Does the USB appear as a COM port? What protocol do I use or how do I find out…
AnnaR
  • 3,166
  • 6
  • 35
  • 39
1
2 3
8 9