i wan to make a mini project with RS485 module and two 12v relays. can i use atmega8u2 as a main microcontroller. how to upload code using arduino ide. have any library for atmega8u2.
Yes, you can use an 8U2 as a main controller.
You will have to find amd install a so-called core that supports the 8U2 if you want to program it with the Arduino IDE. On a phone, so can't research for you.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
thank you friends. finally i found the method. HoodLoader2 working fine to Atmega8u2. again thank you so much.
i am try to serial communication with Atmega8u2 using 8 pin as Rx pin and 9 pin as Tx pin but fail it. what the problem ?
How can we possibly know? You did not provide any details.
i am burn bootloader to atmega8u2 using hoodloader2. but i want to communicate between atmega8u2 and Rs485 module. but atmega8u2 not responding to Rx Tx pins. i tried different baud rates but fail it. same program working with arduino nano board.
void setup() {
Serial.begin(9600);
pinMode(3, OUTPUT);
digitalWrite(3,LOW);
}
void loop(){
if (Serial.available()) {
digitalWrite(3, HIGH);
}
}
Maybe you have to use Serial1 ?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.