Quote:
Originally Posted by t vago
Welcome aboard!
Can you tell me what resistors you used? did you change the #defines near to beginning to work with an AtMega2560?
|
Quote:
// if the below "#define"s are commented out, code will compile for an AtMega328-series processor
#define ArduinoMega2560 true
#define TinkerkitLCDmodule true
// if the below #define is commented out, 16 MHz system clock will be assumed
//#define use20MHz true // force 20 MHz system clock values
// only one of the below LCD options may be chosen - choosing more than one will cause a compilation error to occur
// if TinkerkitLCDmodule is used, useLegacyLCD will automatically be used, and the below options will be ignored
#define useLegacyLCD true
//#define useParallaxLCD true
// only one of the below button options may be chosen - choosing more than one will cause a compilation error to occur
#define useLegacyButtons true
//#define useAnalogMuxButtons true
//#define useParallax5PositionSwitch true
// the below options only work if useLegacyLCD is selected. If useLegacyLCD is not selected, the below options will not be inserted at all
//#define useLegacyLCDinvertedBrightness true // For alternate LCD backlight connections
#define useLegacyLCDbuffered true // Speed up LCD output
// selectable options - all may be chosen independently of one another, save for serial data logging.
// the serial data logging option will conflict with the Parallax LCD output option, if both are selected at the same time
//#define blankScreenOnMessage true // Completely blank display screen upon display of message
#define trackIdleEOCdata true // Ability to track engine idling and EOC modes
#define useSerialPortDataLogging true // Ability to output 5 basic parameters to a data logger or SD card
#define useBufferedSerialPort true // Speed up serial output
//#define useCalculatedFuelFactor true // Ability to calculate that pesky us/gal (or L) factor from easily available published fuel injector data
#define useWindowFilter true // Smooths out "jumpy" instant FE figures that are caused by modern OBDII engine computers
#define useClock true // System clock, and means to set it
#define useSavedTrips true // Ability to save current or tank trips to any one of 10 different trip slots in EEPROM
#define useScreenEditor true // Ability to change any of 8 existing trip data screens, with 4 configurable figures on each screen
#define useBarFuelEconVsTime true // Show Fuel Economy over Time bar graph
#define useBarFuelEconVsSpeed true // Show Fuel Economy vs Speed, Fuel Used vs Speed bar graphs
#define useSpiffyBigChars true
//#define useChryslerMAPCorrection true // Ability to perform on-the-fly fuel injector data correction for late-model Chrysler vehicles
//#define useABresultViewer true // Ability to graphically show current (B) versus stored (A) fuel consumption rates
//#define useCoastDownCalculator true // Ability to calculate C(rr) and C(d) from coastdown
// program measurement and debugging tools
//#define useDebugReadings true
//#define forceEEPROMsettingsInit true
//#define useEEPROMviewer true // Ability to directly examine EEPROM
//#define useBenchMark true // this is probably broken - last time I used it was in August
//#define useSerialDebugOutput true
// SWEET64 configuration/debugging
//#define useSWEET64trace true // Ability to view real-time 64-bit calculations from SWEET64 kernel
//#define useSWEET64multDiv true // shift mul64 and div64 from native C++ to SWEET64 bytecode
|
Resistor:
Arduino Mega 2560
left, middle, right, extra#1, extra#2 PF3 (ADC3)
o---------------o---------------o---------------o---------------o--o GND
R2 | R3 | R4 | R5 | R6 |
o--vvv--o o--VVV--o o--vvv--o o--vvv--o o--vvv--o
| 2.2k | 4.7k | 10k | 22k | 47k
o o o o o
/ / / / /
o left o middle o right o Extra#1 o Extra#2
| | | | |
o---------------o---------------o---------------o---------------o--vvv--o--o 5V
| R1 1k
o----------o PC3 - legacy MPGuino hardware
PF3 - Arduino Mega 2560
PF7 - TinkerKit! LCD module