[Dorset] Next Meeting - One Week tonight

2019-06-25 Thread Terry Coles
Hi, The next meeting is one week tonight on Tuesday, 2019-07-02 20:00 at the Bournemouth Electric Club. See: http://dorset.lug.org.uk/wiki/doku.php?id=meetings:pub#bournemouth_electric Paul, Hamish, Are you going? -- Terry Coles -- Next meeting: BEC, Bournemouth, T

Re: [Dorset] Programming problem: Have I done something wrong?

2019-06-25 Thread PeterMerchant via dorset
And the GPIO clean-up is after that definition, just before you decide to hand control over to Flask by calling app.run(). GPIO.cleanup() if __name__ == '__main__':     app.run(debug=True, host='0.0.0.0') You're cleaning up the GPIO before Flask gets to run and that probably undoes all you

Re: [Dorset] Programming problem: Have I done something wrong?

2019-06-25 Thread Ralph Corderoy
Hi Peter, > This quite long because the guy that wrote it documented every step. And because this chunk in the middle is repeated. :-) > frequency_hertz = 50 > pwm = GPIO.PWM(pin_number, frequency_hertz) > > > # How to position a servo?  All servos are pretty much the same. > # Send repeated pu

[Dorset] Programming problem: Have I done something wrong?

2019-06-25 Thread PeterMerchant via dorset
This is to do with driving an R/C Servo from a Raspberry Pi.  I have this working with motors driving my car, but this takes two pins at opposing polarities for change of direction. An R/C servo works differently: Instead of two wires of opposite polarity for the motor direction there is only o