Search results

  1. R

    How to add a throttle to a Carrera Vengeance E Spec

    Just done the test with the pedals, exactly the same behaviour. So error 22 after you stop pedalling and as the speed drops close to 10mph you then get error 22.
  2. R

    How to add a throttle to a Carrera Vengeance E Spec

    I have tested this just against the throttle. 1. On Power up no errors. 2. Run the throttle, no errors. 3. Release throttle returns error 22 after approx 3secs.
  3. R

    How to add a throttle to a Carrera Vengeance E Spec

    Brilliant. I'll try and test this ASAP.
  4. R

    How to add a throttle to a Carrera Vengeance E Spec

    So yeah the throttle and the pedaling seem to behave as expected, I'll know better when i actually sit on the bike and go out for a ride, but it seems normal. And I've updated the code. We are definitely not far from the finish line now! However getting error 22 when releasing the throttle...
  5. R

    How to add a throttle to a Carrera Vengeance E Spec

    So a new test and results are: 1. No error on start up. 2. Start throttle, no errors. 3. Stop throttle, error 22 received. (last time it was error 21). 4. Recycle power (turn off and on) 5. No error on start up. 6. Start pedalling, no errors. 7. Stop pedalling, receive error 21.
  6. R

    How to add a throttle to a Carrera Vengeance E Spec

    Just executed the test and received error 21 on start up. However it looks like the pastorque value isn't being set to the TorqueAtRest so that condition must not be met. This line looks like its not being executed. Because if I replace this line with I don't receive any errors on start...
  7. R

    How to add a throttle to a Carrera Vengeance E Spec

    Values as below: A0 - 0.83 A2 - 0.14 A3 - 3.86 A5 - 0
  8. R

    How to add a throttle to a Carrera Vengeance E Spec

    So my test results from the latest code. 1. On power on I receive error 21 2. If I press on throttle and then power up motor runs without any errors. 3. Once I release the throttle I receive error 21. 4. If I turn the cranks (pedal) then power on the motor runs without any issues. Obviously...
  9. R

    How to add a throttle to a Carrera Vengeance E Spec

    If you can share the latest version of the code I can start testing first thing tomorrow morning.
  10. R

    How to add a throttle to a Carrera Vengeance E Spec

    I have made these changes and am ready to test, will update you once I have tested.
  11. R

    How to add a throttle to a Carrera Vengeance E Spec

    Just tested this and 1. on powering on the bike I get error 21. 2. I press the throttle then power on the bike motor runs I then let go of throttle and get error 22. i actually think the throttle code is fine I think we now need to nail the code that runs when we are pedalling. i think we...
  12. R

    How to add a throttle to a Carrera Vengeance E Spec

    Just tested the previous version of the code with lower cadence, results as follows: 1. Power on the bike, no errors. 2. Run throttle, no errors, release throttle approx 3secs later error 22 displayed. Below is the code just for reference the error may have been caused by the pedalon code...
  13. R

    How to add a throttle to a Carrera Vengeance E Spec

    Just tested this code. Results as follows: 1. Power on the bike, returned error 21. FYI there were too many brackets in the analogWrite line so i removed the last bracket on that line to make it compile.
  14. R

    How to add a throttle to a Carrera Vengeance E Spec

    I've just tested this new code and it is exhibiting the same behaviour. 1. No errors when I power on. 2. Throttle runs nicely. 3. Release the throttle, when mph reading drops to approx 10 then error 22 is displayed. But I'm wondering if this error is coming from the pedalon code like you said...
  15. R

    How to add a throttle to a Carrera Vengeance E Spec

    I’ve changed the code I think that was a bug I’ll retest the throttle. I’ve also commented out the pedalon code so that doesn’t interfere in this test but I have a feeling I might need to output a minimum torque value of 76 (1.5v) when it falls into the pedalon function.
  16. R

    How to add a throttle to a Carrera Vengeance E Spec

    Ok so I tested the next step. Here are the results. 1. Powered on bike with no errors. 2. Throttle works with no issues until I let go and speed drops below 10mph I then get error 22.
  17. R

    How to add a throttle to a Carrera Vengeance E Spec

    Do you mean A5 not A3? (So essentially connecting the controller to the Arduino).
  18. R

    How to add a throttle to a Carrera Vengeance E Spec

    Ok I tested this setup here are the observations without doing any pedalling: 1)On powering on the bike the motor kicked in briefly about 2secs then the motor went off 2) After 5secs the error 22 (could have been error 21) appeared.
  19. R

    How to add a throttle to a Carrera Vengeance E Spec

    ok I'll try that so to be 100% I do the correct test I'll connect the following cables: D13 -> A2 (Connect these directly together they are the green wires (cadence)). A5 -> A3 (Connect these directly together they are the yellow wires(torque)). The only wires connected to the Arduino will be...
  20. R

    How to add a throttle to a Carrera Vengeance E Spec

    I can confirm the Arduino is still powered when I unplug the USB lead. Also the LED is blinking yes the red wire/bent pin is connected to the VIN pin. I'm just confused how a bent pin can make a proper contact but for some reason it must be making proper contact.