loading
4 Comments

Tell us about yourself!

Complete Your Profile
  • tejass20 commented on Silvius's instructable ATmega DIP40 in Arduino IDE 1.6.45 months ago
    ATmega DIP40 in Arduino IDE 1.6.4

    if you have code of simple adc and uart please if you can share it, it would help me alot for 1284p

    i am using these for adc and usart in one of my project but neither is working i am using proteus to test my code, those code when used in uno using uno board work fine but when using these board i dump in atmega1284p in proteus it dont work plz help me out

    THIS IS MY CODE/*-----( Import needed libraries )-----*/#include <Wire.h> // Comes with Arduino IDE#include <LiquidCrystal_I2C.h>/*-----( Declare Constants )-----*//*-----( Declare objects )-----*/// set the LCD address to 0x27 for a 20 chars 4 line display// Set the pins on the I2C chip used for LCD connections:// addr, en,rw,rs,d4,d5,d6,d7,bl,blpolLiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C addressint sensorPin = A0; // select the input pin for the potentiometerfloat vtg;int sensorValue = 0; /*-----( Declare Variables )-----*///NONEvoid setup() /*----( SETUP: RUNS ONCE )----*/{ Serial.begin(9600); // Used to type in characters //pinMode(sensorPin, INPUT); lcd.begin(20,4); // initialize the lcd for 20 char...see more »THIS IS MY CODE/*-----( Import needed libraries )-----*/#include <Wire.h> // Comes with Arduino IDE#include <LiquidCrystal_I2C.h>/*-----( Declare Constants )-----*//*-----( Declare objects )-----*/// set the LCD address to 0x27 for a 20 chars 4 line display// Set the pins on the I2C chip used for LCD connections:// addr, en,rw,rs,d4,d5,d6,d7,bl,blpolLiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C addressint sensorPin = A0; // select the input pin for the potentiometerfloat vtg;int sensorValue = 0; /*-----( Declare Variables )-----*///NONEvoid setup() /*----( SETUP: RUNS ONCE )----*/{ Serial.begin(9600); // Used to type in characters //pinMode(sensorPin, INPUT); lcd.begin(20,4); // initialize the lcd for 20 chars 4 lines, turn on backlight// ------- Quick 3 blinks of backlight ------------- for(int i = 0; i< 3; i++) { lcd.backlight(); delay(50); lcd.noBacklight(); delay(50); } lcd.backlight(); // finish with backlight on //-------- Write characters on the display ------------------// NOTE: Cursor Position: (CHAR, LINE) start at 0 // // delay(1000);// lcd.setCursor(0,3);// lcd.print("4th Line of Text");// delay(8000); // Wait and then tell user they can start the Serial Monitor and type in characters to// Display. (Set Serial Monitor option to "No Line Ending")/* lcd.clear(); lcd.setCursor(0,0); //Start at character 0 on line 0 lcd.print("Use Serial Mon"); lcd.setCursor(0,1); lcd.print("Type to display"); */}/*--(end setup )---*/void loop() /*----( LOOP: RUNS CONSTANTLY )----*/{ sensorValue = analogRead(sensorPin); lcd.setCursor(0,0); //Start at character 4 on line 0 lcd.print("adc:"); lcd.print(sensorValue); delay(500); lcd.setCursor(0,1); lcd.print("vtg:"); // Print text on 2nd Line vtg=((5.0/1023)*sensorValue); lcd.print(vtg);// delay(1000);// lcd.setCursor(0,2);// lcd.print("0123456789ABCDEFGHIJ"); //Print 20 characters on 3rd line}/* --(end main loop )-- *//* ( THE END ) */

    View Instructable »
  • tejass20 commented on Silvius's instructable ATmega DIP40 in Arduino IDE 1.6.45 months ago
    ATmega DIP40 in Arduino IDE 1.6.4

    hello i m trying to check the special peripheral of atmega 1284, but i am not able to fetch datda like usart, adc. kindly share the data if available

    View Instructable »