All the motor control things that I have seen for the R-Pi control separate motors for the wheels on each side.

My  thingy has a motor for the back wheels - (Forward/back) and a motor for the steering wheels.

The software that I have nicked is as follows:
HTML:

<div style='text-align: center;'>
                        <button name='left' id='left' value='left'>Left</button>
                        <button name='right' id='right' 
value='right'>Right</button>

and Python:

right = Motor(9, 10)
left = Motor(8, 7)

&
   movement = request.form['movement']
    print "post request received with movement: ", movement

&

   if movement == 'left':
        print 'triggering left action'
        left.forward()
        right.backward()
        sleep(2)
        right.stop()
        left.stop()

I have changed the first two lines above to be:

move = motor(9,10)
Turn = motor(8,7)

The question is, in the HTML which 'left' do I change to 'turn'? the 
first,second, third or fourth?

Peter

--
Next meeting:  Bournemouth, Tuesday, 2018-05-01 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:[email protected] / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to