Skip to main content
13 events
when toggle format what by license comment
Jul 18, 2017 at 18:09 vote accept NeonCop
Jul 18, 2017 at 18:08 answer added NeonCop timeline score: 1
Jul 16, 2017 at 15:55 comment added John Birckhead For a stepper motor, remember that the rotor mass has inertia. You must accelerate the mass by applying torque sufficient to overcome the inertia and get the motor moving and then there must be enough time to get it to the next position. If you step too quickly, you will move only slightly, falling back, to the original position, which would give you the described symptom. In your code, if you enter a value larger than 1000, you will have a step time of one second, and the motor will move (albeit slowly) if this is your problem.
Jul 14, 2017 at 18:56 comment added NeonCop @JohnBirckhead you're right, the input it asks for is in ms, and since i usually go with between 1-5 it might be setting it to 0. Wouldn't that just make the motor spin continuously though?
Jul 14, 2017 at 18:55 comment added NeonCop @Andyaka That's a smart idea, but I actually think that the L293D is designed to handle specificlaly the voltage of my motor (12V), so I don't think it's a problem with the voltage being too low. Also, my battery is actually 12V I'm using a DC power supply.
Jul 14, 2017 at 18:20 comment added John Birckhead I'm not a Raspberry guy, but I notoce your forward and backwards functions have int for arguments. Does this mean your delay gets truncated to zero?
Jul 14, 2017 at 18:14 comment added Andy aka It might be this: electronics.stackexchange.com/questions/108686/… and please note that running from a puny 9 volt battery (as shown in your cartoon) will not work either.
Jul 14, 2017 at 18:04 comment added Andrew Morton There is a button in the question editor which will let you create a circuit diagram. For a RPi, you only need to indicate the connections to/from it. Or you can use a pencil and paper and add a photo to your question, but that is not the preferred method.
Jul 14, 2017 at 17:56 comment added NeonCop @AndrewMorton Is there any software that you would recommend? Also how would I put a Raspberry Pi or motion sensor into the circuit diagram it's not as easy as a motor or a battery.
Jul 14, 2017 at 17:37 comment added Andrew Morton @NeonCop Adding a circuit diagram to your question would be best - you have shown us a wiring diagram, which is not the same thing.
Jul 14, 2017 at 17:29 comment added NeonCop how would you prefer I format it? It's no big deal I can redo it in 5 minutes... I'm new to this EE thing so I'm not sure about standards and stuff like that
Jul 14, 2017 at 17:26 comment added Trevor_G Breadboard graphics.... really... not going there
Jul 14, 2017 at 17:16 history asked NeonCop CC BY-SA 3.0