As a disclaimer I'm very new to writing scripts of any kind. I'm just starting to wright an EZ Script in EZ Builder that will control the motor that rotates the waist back and forth on my full size Lost in Space B9 Robot. So far I've got 2 different scripts working; one to rotate left and the other to rotate right. I've got two scripts just to see if I can write a script to make each direction work. My objective hopefully will be to have one script to control each direction and then bring him back to center.
Anyway, I thought it would be a great idea to have him turn at different speeds each time the command was sent. I can get the basic PWM command to work. Each time I change the speed entry and save the script the new speed will run properly. However when I try the PWMRandom command the speed will not change at all no matter how many times I start the script. Am I doing something wrong?
I'm using this on the second EZ-B board and I do have a "1." in front of the command. Here's the section that's giving me trouble:
1.PWMRandom(D6, 10, 90)
Again, everything is working except the PWMRandom with no Santx error message.
This is a DC motor controlled with a Pololu VNH5019 H-Bridge useing a pot as a feedback hooked to an ADC port.
Thanks for any help.
Upgrade to ARC Pro
Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro
Could this be a 2nd board thing and not supported? I haven't tried this command on the 1st board yet. It's disconnected and in the other room with B9's upper half. I was wanting to get everything working on the lower half before I stacked him up again. The big guy is heavy.
Is there anyone out there that has a 2 board set up using PWM willing to see if this command works on their bot on the second board? Maybe it's my laptop or something else in the script stoping it.
Thanks, Dave Schulpius