Trying to understand the code.

Diskutiere Trying to understand the code. im ForumsController Forum im Bereich Controller/Regler, Fahrerinformation, Elektronik; Hello, i'm trying to understand the code of FC 2.2 and the diagrams provided in the wiki. While studying Arduino_Pedelec_Controller.ino I was...
R

rraymakers

Mitglied seit
10.06.2019
Beiträge
3
Hello,

i'm trying to understand the code of FC 2.2 and the diagrams provided in the wiki.
While studying Arduino_Pedelec_Controller.ino I was suspecting somewhere around line 180 to find a declaration for Brake Out as shown in the diagram FC2.2
Something like:
const int brake_out = 9; //Brake Out-Pin

and I also can not find

const int wheel_in = 3; //Speed read-Pin missing

for hardware version 2.2.


Am I looking in the wrong place?
Thanks.
 
R

rraymakers

Mitglied seit
10.06.2019
Beiträge
3
The section for the reading of the speed sensor is this?

#if HARDWARE_REV >= 20 //attach interrupts manually
ISR(INT7_vect)
{
speed_change();
}


The part here:
jenkie/Arduino-Pedelec-Controller
 
Thema:

Trying to understand the code.

Werbepartner

Oben