Search results

  1. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    As far as i'm aware if any error is presented, the controller ceases all functionality as it thinks its "broken" to protect itself from overvoltage or something else.
  2. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Now since i haven't tried the new code yet (use the bike to go to work), when you're pedalling does it act just as your wired straight to the controller? As in if you put more work, the motor puts more work? (sync to the user peddling)
  3. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    I know you tested this just for throttle but any chance on the pedals to see how it reacts?
  4. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Spot on raj! If we're getting error 22 then there's an unbalance somewhere (in this case it would be HZ does not match the voltage)
  5. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Unfortunately I don't, if I did I would have already placed the exact values here a long time ago :)
  6. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    This would be the latest code, also if you have a problem, remove the line "currentMillis = millis() +2000;" as it worked for me. // Experimenting v7 // PAS Cadence Input Pin - D2 (Digital) // PAS Torque Input Pin - A3 (Analog) // Throttle Input Pin - A0 (Analog) // Controller Cadence Output...
  7. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Back after an hour late. EDIT: Deleted my last entry because i was an idiot and didn't see where i just plugged in... Yes tried the code but it failed just as like before.
  8. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    I don't remember seeing the Led flashing but I will do it again with the new code once I'm back home. Just got a notification the extra arduino Nanos are in so it can help us too.
  9. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    I will be back in the afternoon (around 6pm) and i'll continue on more testing till 11pm
  10. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Tested it. Adding the 2 extra seconds will cause the error 21 with and without the throttle. Removed the extra 2 seconds to try the pedals and there's a bug. So i power on the bike my throttle to stabilize the torque and not give me 21 and then i let go of the throttle and immediately i turn the...
  11. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Tested it, error 21 on power up but if i power it up while holding throttle it works. Now when i let go it cuts the motor and produces error 21. This is indeed a step in the right direction!
  12. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    This is the code, full of bugs and all its glory: (It only works when i power on the bike and have my thumb on the throttle to supply power right away but when i release the throttle the motor will just slowly lose power until the HZ and the Voltage gets to a level that is unstable to sync and...
  13. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Possibly the first modifications that me and raj were working on. I'll submit it here once i confirm i got the right one. In the meantime i just ordered from amazon 3x nano's so i can experiment with bootloaders and other versions (easier to debug and get the project working faster)
  14. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Yes i can think of a reason. Plugged the torque pin to the 3.3v and i got no error 21 and the throttle works (didn't test further than this). Think it has something to do with timing or bike firmware, since on previous posts raj was able to get his working and he had his bootloader so his nano...
  15. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Error 21 will only happen when the controller thinks that power to the PAS has been discontinued or the PAS is outputting an un-syncronized power flow. The controller's boot-up sequence recognizes torque as priority so the cadence on startup is ignored until the controller sees torque power...
  16. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    With the previous one no, made the change as requested as still got error 21. Wired directly the torque to bypass error 21 and tried the throttle and it didn't work. Pedaling didn't work as well.
  17. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    When compiling the code it gives out "D13 was not declared on the scope", i changed it to 13 and then another error comes up with "'pulse' was not declared in this scope", so i added "bool pulse = false;" (no clue if i should have added that. Compiled it after that and when testing it produces...
  18. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    'cadence_threshold' was not declared in this scope Getting that error while compiling
  19. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Tried it, still on error 21. Plugged the controller torque to the 3.3v to make sure i was right and yep it didn't show error 21. As a side thing i did pedal to see if it worked and it did kick the motor as expected but of course it went to error 22 since we were giving 3.3v and the hz was not...
  20. Evian1040

    How to add a throttle to a Carrera Vengeance E Spec

    Error 21 on startup. Went to check on the multimeter and it gave out 0.77v on the torque but i know that if i power it up normally it starts at 3.xx volts and then it fluctuates based on the cadence. Can we try with 1.5v as it looks to be the bare minimum for the cadence?