Pretty sure it is too. What I’m saying is that it’s very obfuscated code because it uses some custom visual IDE to generate the code. I can’t really dig in without an effort that would be larger than me simply rewriting what you are trying to do.
Whoever coded that for you used 100 lines to do what 3-4 can. That’s the extent of obfuscation. Does that make sense?
Yes it does. He is new to using Arduinos et al, and stated as such. That said, it works on his board but doesn’t when there’s a monkey in the mix. I’m just an old guy trying to have a slice of fun pie, on a homemade e-bike
Honestly it works great. There’s not much power produced with the friction drive(about 250W max),so it never overwhelms the bike,just gives a little help on the hills. The button is small and mounted on the bars so easily reached if you are cutting power. If I were more technical I would be trying to factor in regen and maybe using PAS,but this works OK for me for mow…well it did.
OK,the nurses are putting me to bed now(they’re stealing my clothes,you know) so I’ll check back in tomorrow to see if anyone’s clocked where i’ve went wrong.
Really appreciated the help folks. You kids are OK
All of that looks in order. Make sure you click the refresh circle. You’ll need to hit the buttons on your controller to have it trigger the full throttle command, but you should see input change on the underlined signal bar. Select throttle type and hit apply. You can also manually enable RT/RT app data using the buttons on the right hand side to bring it into the RT screen and menu settings.
If you are seeing zero input change, you’ll want to verify your electrical wiring connections. I’ll look at your photos again as well.
Edit: I mean, as far as i can tell it looks about correct? You don’t appear to be missing any core concepts here, its really a matter of getting the PWM output from your custom arduino controller to be recognized by your ESC. If you know it works because you’ve tested it on another board, then that leaves your ESC, the wiring to that ESC, and your ESC input settings as the main culprits. You should see those mS values in the PWM setup screen update when the button activates the throttle though, in theory.
Is the gentleman that programmed the arduino for you & had it working on his board able to assist?
Beyond that, I would check physical wire continuity with a multimeter. My next steps would be scoping the pwm output to make sure it looks correct. There are a lot of unknowns here as it’s not something I can physically look at, but it sounds like you understand how input setup is supposed to work and are simply not getting a PWM input on the ESC.
Temporary connection to the Arduino. Power light is on and when I connect the two wires(imaginary button) for 1.5 or 3 secs the Tx lights up as it should. So it’s transmitting(?) Tested continuity on the wires back to the Foc box and they seem OK? Think I’ll renew all the wiring just in case there’s an intermittent problem that’s causing the Vesc not to read the Arduino output…to be continued