Search results

  1. R

    How to add a throttle to a Carrera Vengeance E Spec

    The bent pin is the red wire going to the controller.
  2. R

    How to add a throttle to a Carrera Vengeance E Spec

    So thats what i was thinking however thats how the connector has been from day 1 I haven't touched that connector or pin and when i remove the Arduino and plug the PAS back into this male controller connector the bike functions as normal. I am scared that if I pull out this odd pin and correct...
  3. R

    How to add a throttle to a Carrera Vengeance E Spec

    So I tested this on my bike with the resister and observed the following. 1. I can power on the bike with no errors. 2. I can start the throttle from standstill and it seems to work. Once I let go of the throttle I get error 22 (which we know from before). 3. I can start to peddle but even the...
  4. R

    How to add a throttle to a Carrera Vengeance E Spec

    I haven't had a chance to test this on the bike but I ran it through the serial debugger with the 1kOhm resister between A2 and GND and I get a fluctuation of values (see below): Pas Cadence value is 473 Pas Cadence value is 578 Pas Cadence value is 562 Pas Cadence value is 368 Pas Cadence...
  5. R

    How to add a throttle to a Carrera Vengeance E Spec

    I’ll give this a try tomorrow both the lower threshold and the ohm resister what readings would you be looking for?
  6. R

    How to add a throttle to a Carrera Vengeance E Spec

    This is the latest code with cadence in on pin A2 // Experimenting // PAS Cadence Input Pin - A2 (Analog) // PAS Torque Input Pin - A3 (Analog) // Throttle Input Pin - A0 (Analog) // Controller Cadence Output Pin - D13 (Digital) // Controller Torque Output Pin - A5 (Analog) int pulseoff = 100...
  7. R

    How to add a throttle to a Carrera Vengeance E Spec

    So I have attempted to get a reading via the serial monitor by turning the cranks slowly and the following was the behaviour: 1) At initial power on the value returned in the serial debugger for the PAS Cadence (green wire) is 35, once I start to turn the cranks slowly it jumps to 1020 - 1023...
  8. R

    How to add a throttle to a Carrera Vengeance E Spec

    I’ll give this a try tomorrow.
  9. R

    How to add a throttle to a Carrera Vengeance E Spec

    ok I’ve switched it to Analog Pin 2 and found the following: 1. Pin A2 at rest was 3.78 (on multimeter) 2. As I cranked the pedals the value went down to a range of 1.8-2.0 I also noticed as soon as I powered on the bike with this configuration the motored turned straight away without me...
  10. R

    How to add a throttle to a Carrera Vengeance E Spec

    Ive rechecked the pin values they are as follows: 1. Pin D2 (the green wire from the pas sensor) at rest is 0.14 (when I start pedalling it goes up to 1.99 followed by error 22) 2. Pin D13 (the green wire to the controller) at rest is 0.01 (when I start pedalling it goes up to 1.86 followed by...
  11. R

    How to add a throttle to a Carrera Vengeance E Spec

    1. Torque Sensor at rest from pin A3 = 3.84 2. LED pin 13 = 0.01 (this seems odd might need to re check this) 3. Cadence Sensor on HIGH pin D2 (the cadence sensor from the pedal) = 0.18 4. Cadence Sensor on LOW pin D2 (the cadence sensor from the pedal) = 0.13 I hope I measured the right pins.
  12. R

    How to add a throttle to a Carrera Vengeance E Spec

    So an update on the code, I have tested the code you proposed but I had to make some modifications to the torqueval as your code was returning some negative values on certain occasions. I initially tested via serial debugger everything looks ok no sign of errors. I turned to testing on the...
  13. R

    How to add a throttle to a Carrera Vengeance E Spec

    ok so i have deviated a little from the original pin design we set out but i hope it still makes sense, I attempted to work from the original post in terms of wiring (just for my own sanity so I'm working from something proven). Also I have commented out the digital interrupt while i experiment...
  14. R

    How to add a throttle to a Carrera Vengeance E Spec

    So just an update on progress. I’ve been doing some testing (on the bike). After running the throttle for approx 5 secs on full throttle I get an error 22 on the display unit. The same happens when pedalling. I suspect somewhere the voltage is exceeding 4.3v also wanted to ask, as I increase...
  15. R

    How to add a throttle to a Carrera Vengeance E Spec

    Ok after further reading looks like the multimeter was correct. This is by design correct behaviour of analogwrite(PIN number, value between 0-255), it will oscillate the voltage between 0v - 5v or (3.3v).
  16. R

    How to add a throttle to a Carrera Vengeance E Spec

    I can 100% control the blinking rate with the throttle that’s the easy part done. The only challenge at the moment is outputting the correct synthesised value for the torque. Although it’s coded correctly just needs testing on the actual bike I am having doubts because I’ve done some reading...
  17. R

    How to add a throttle to a Carrera Vengeance E Spec

    OK got it. The visual feedback is always there. So at the moment I'm only getting 8 blinks a second on full throttle.
  18. R

    How to add a throttle to a Carrera Vengeance E Spec

    OK an update. So I have been experimenting with the code and I now have the synthesised values for Torque outputting values that don't exceed 4v. When I debug using the serial monitor I see a constant value at full throttle however when i check the pin with the multimeter the values I get are...
  19. R

    How to add a throttle to a Carrera Vengeance E Spec

    Ok got it to do that I’ll have to plug this into the bike and pedal see what readings I get from each wire. I think a few posts back someone pointed out what they were. I think for now we should go with what we believe and at least get the right synthesised values being output then if we have...
  20. R

    How to add a throttle to a Carrera Vengeance E Spec

    So I am essentially synthesising wrong torque value. So I need to change this so the max voltage is 3v outputting to the torque. Is that correct if so I’ll revisit my code where I synthesise the torque voltage.