hello
I'M trying to Made dynamic change speed Motor according to pwM duty in simulation...
But property.set Value speed on Motor seems not running...
Regards
siMulation PWM Motor
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: siMulation PWM Motor
Hello Camille,
You were nearly there.
I think the component detects a pin change and then assigns the motor speed. So by adding a few motor stops and starts to the loop this forces the pin change to fire which then correctly switches the speed.
You were nearly there.
I think the component detects a pin change and then assigns the motor speed. So by adding a few motor stops and starts to the loop this forces the pin change to fire which then correctly switches the speed.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: siMulation PWM Motor
Hi Camille,
The formula Flowcode and Formula AllCode robots work in this way PWM which controls a motor and travelled distance in simulation.
I wrote an Instructables tutorial a while back on creating a 2 wheel robot which should hopefully contain the bits you need in Steps 4-6.
https://www.instructables.com/id/Two-Wh ... -Simulate/
Let me know how you're getting on.
The formula Flowcode and Formula AllCode robots work in this way PWM which controls a motor and travelled distance in simulation.
I wrote an Instructables tutorial a while back on creating a 2 wheel robot which should hopefully contain the bits you need in Steps 4-6.
https://www.instructables.com/id/Two-Wh ... -Simulate/
Let me know how you're getting on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel