Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Web app controlling step by step motors
Post: RE: Web app controlling step by step motors

I corrected the float, used int and then instead of range, I used itertools.count(number_of_rotation_1): No errors now. After run the motors go in full rotation, like a loop or something with no stop.
dnbbrain Web Scraping & Web Development 11 6,173 Feb-16-2018, 05:47 AM
    Thread: Web app controlling step by step motors
Post: RE: Web app controlling step by step motors

It was so simple jezz, just used TAB and was ok, so it should do some calculus, if I enter 3 the first motor should do 4.5 runs, clockwise - counter clocwise, and the second motor should do 6.8 runs o...
dnbbrain Web Scraping & Web Development 11 6,173 Feb-15-2018, 07:22 PM
    Thread: Web app controlling step by step motors
Post: RE: Web app controlling step by step motors

from flask import Flask, render_template, request import time import ConfigParser import motors import json app = Flask(__name__) parser = ConfigParser.SafeConfigParser() @app.route("/") def main():...
dnbbrain Web Scraping & Web Development 11 6,173 Feb-15-2018, 02:52 PM
    Thread: Web app controlling step by step motors
Post: RE: Web app controlling step by step motors

No mather were I put for num in range(number_of_rotations): it gives IndentationError: expected an indented block. Can't figure out were how to indent the for?
dnbbrain Web Scraping & Web Development 11 6,173 Feb-14-2018, 07:32 PM
    Thread: Web app controlling step by step motors
Post: RE: Web app controlling step by step motors

Thank you nilamo, I will post tomorrow updates with this.
dnbbrain Web Scraping & Web Development 11 6,173 Feb-13-2018, 08:28 PM
    Thread: Web app controlling step by step motors
Post: RE: Web app controlling step by step motors

A is the 1st motor, B is the 2nd motor. I was thinking about inputing a number from the keyboard and the motors should execute that number, for example if I enter 5, both the motors should run 5 times...
dnbbrain Web Scraping & Web Development 11 6,173 Feb-13-2018, 05:19 PM
    Thread: Web app controlling step by step motors
Post: Web app controlling step by step motors

Hi, I have an basic html page, with an input button that controls 2 step by step motors. If I input the number 50, the motors will both open at half of course and this is perfect. How can I make the m...
dnbbrain Web Scraping & Web Development 11 6,173 Feb-13-2018, 02:34 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020