(I ordered five more MC33290
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) #define LCD_D7 2 #define LCD_D6 3 #define LCD_D5 4 #define LCD_D4 5 #define lcdBKlightPin 6 #define LCD_RS 7 #define LCD_EN 8 #define ledPin 9 #define SD_CS 10 #define MOSI 11 #define MISO 12 #define SCK 13 #define keyPadPowerPin A0 #define keyPadButtonsPin A1 #define K_OUT A2 #define K_IN A3 #define SDA A4 #define SCL A5#endif#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) #define LCD_D7 40 #define LCD_D6 38 #define LCD_D5 36 #define LCD_D4 34 #define lcdBKlightPin 2 #define btEnablePin 7 #define LCD_RS 22 #define LCD_EN 24 #define ledPin 13 #define SD_CS 53 #define MOSI 51 #define MISO 50 #define SCK 52 #define keyPadPowerPin 3 #define keyPadButtonsPin A1 #define K_OUT A15 #define K_IN A14 #define SDA 20 #define SCL 21#endif
And yes, I would really like to see the schematics for LM393!!!
Do not worry to ask for the code, I have already stolen something from the your code (the one you posted) and tested this evening with success
So you are going to use your project on the motorbike?
LucaV72 wrote:I have 2 MC33290 chips but, I have discovered that it is simply a voltage level converter. Therefore, I am using a LM393 DIP chip to convert my 12volt K-line to 5volt for my Arduino. Basically the LM393 is set-up as a dual comparator, one comparator is the TX from the Arduino with it's collector tied to 12v, and the other comparator is from the K-line of the bike with it's collector tied to 5v.
Have you mentioned that the DUE I/O-Pins are specified for 3.3 Volt only, 5 Volt would damage the chip.
Because I am developing an automotive project which needs 10400 baud on the serial port. With Atmega328P and Mega2560 I tried to set the hardware serial port to 10400 but I could not connect to the ECU of the car. So I modified the SerialSoftware library in order to accept this connection speed and it worked like a charm. I have been testing the system for more than 6 months and it almost never dropped a frame.Now I fear to have the same problem on the new DUE so I would be very happy to have a SoftwareSerial library to modifiy to 10400 baud.Luca
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16