So initially the PORTA=0xFF is not supposed to be executed. Now my problem is, inside atmega32's nested while(1) or the second while(1), the receiveChar function is supposed to wait until data arrives. *** The following blink of LED is not supposed to happen until data arrives ****/ UCSRB = (1 << RXEN) | (1 << TXEN) //Enable the receiver and transmitter Then when it is finished, I'm trying to read it back in Serial.available(). Inside radio.available() I'm transmitting the data received by the second arduino (1!123.456$) to the second atmega. Radio.openReadingPipe(1, addresses) // 00002 Radio.openWritingPipe(addresses) // 00001 PinMode(0,INPUT) //RXD pin is set for INPUT * Arduino Wireless Communication TutorialĬonst byte addresses = But when I try to transmit this data from the second arduino to second atmega and then try to read it back it doesn't work. Now I can transmit this data from the first atmega to arduino and then second arduino. Now I'm sending a data like this : (1!123.456$) 1 is an ID, 123.456 is a float and it is between two delimiters ! and &. This data is then send to another arduino and then to the second atmega. It sends some data to the arduino it's connected. Now my communication starts from one atmega32. The two atmega are communicating with the arduinos via UART. Now the two arduino are communicating through nRF24L01. There are two arduino unos and two atmega32.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |