Code works in Simulation but not in hardware
-
- Posts: 8
- http://meble-kuchenne.info.pl
- Joined: Wed Oct 26, 2022 10:21 am
- Has thanked: 1 time
Code works in Simulation but not in hardware
I am stupid and dont know how to compile files correctly. I have a file that works and compiles correctly so i believe it might be a problem with my properties for the motor
- Attachments
-
- motor work.msg.txt
- (3.19 KiB) Downloaded 59 times
-
- motor work.fcfx
- (11.69 KiB) Downloaded 68 times
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: Code works in Simulation but not in hardware
Hi
In your file you have set the enable pin to the same pin used as motor "Pin A". You will need to change this to another free pin.
Have you looked at the component WiKi yet? It gives an example of how to use the motor component.
https://www.flowcode.co.uk/wiki/index.p ... C_Motor_()
Regards
In your file you have set the enable pin to the same pin used as motor "Pin A". You will need to change this to another free pin.
Have you looked at the component WiKi yet? It gives an example of how to use the motor component.
https://www.flowcode.co.uk/wiki/index.p ... C_Motor_()
Regards