Thanks so much. I wondered if it was just looking at the pins in sequence but I was just guessing vs knowing.
Maybe I'll try and grab the crank signal to start and see how it goes....
.... So circling back on just getting RPM to work... I'm totally lost on how I can map that to D19 which is used for RPM on the MEGA... Looks like this might need to be explicitly defined too?
Code: Select all
// Initialize interupts (Pin2 is interrupt 0 = RPM1, Pin3 in interrupt 1 = RPM2)
I'll continue thinking out loud in case it helps someone else. So these are not just digital channels, but interrupt ones. On the Uno the two pins being used are
D2 Digital Pin 2 INT0 Interrupt Pin 0
D3 Digital Pin 3INT1 Interrupt Pin 1
Looking to get a a concrete answer what the interrupt pins are on the 2560 board. Turns out the Crank and Cam pin mapping in the 043c board with a mega are interrupts. (This probably seems obvious to anyone with knowledge of arduino)
From https://www.circuitstoday.com/arduino-m ... schematics
Hardware Interrupt Pins :
Digital pin 18 – 21,2,3 hardware interrupt is used for interrupt services. Hardware interrupt must be enabled with global interrupt enable to get interrupt from other devices.
Going to poke around in init.ino for speeduino and see if I can figure something out.. Way above my head here.