{"action":"created","issue":{"url":"https://api.github.com/repos/TMRh20/RF24/issues/236","repository_url":"https://api.github.com/repos/TMRh20/RF24","labels_url":"https://api.github.com/repos/TMRh20/RF24/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/TMRh20/RF24/issues/236/comments","events_url":"https://api.github.com/repos/TMRh20/RF24/issues/236/events","html_url":"https://github.com/TMRh20/RF24/issues/236","id":144111274,"number":236,"title":"ATtiny84 Pin Issue","user":{"login":"Raynman77","id":16449459,"avatar_url":"https://avatars.githubusercontent.com/u/16449459?v=3","gravatar_id":"","url":"https://api.github.com/users/Raynman77","html_url":"https://github.com/Raynman77","followers_url":"https://api.github.com/users/Raynman77/followers","following_url":"https://api.github.com/users/Raynman77/following{/other_user}","gists_url":"https://api.github.com/users/Raynman77/gists{/gist_id}","starred_url":"https://api.github.com/users/Raynman77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raynman77/subscriptions","organizations_url":"https://api.github.com/users/Raynman77/orgs","repos_url":"https://api.github.com/users/Raynman77/repos","events_url":"https://api.github.com/users/Raynman77/events{/privacy}","received_events_url":"https://api.github.com/users/Raynman77/received_events","type":"User","site_admin":false},"labels":[{"id":86719832,"url":"https://api.github.com/repos/TMRh20/RF24/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":101,"created_at":"2016-03-28T23:38:57Z","updated_at":"2016-12-09T16:05:39Z","closed_at":"2016-04-05T03:41:59Z","body":"Hi, I'm having a problem with the transmission using the RF24 library. On the tiny84, i'm using the example diagram that you have provided for my wiring scheme in the example \"rf24ping85\" for the ATtiny84 and it's not transmitting anything. On the receiver i'm using the example \"getting started\". When I use the 5 wire hookup on an ATtiny85, it works just fine. However, when I wire up a tiny84 and load the same sketch, I get nothing. Here's the sketch:\r\n\r\nATtiny24/44/84 Pin map with CE_PIN 8 and CSN_PIN 7\r\n    Schematic provided and successfully tested by Carmine Pastore (https://github.com/Carminepz)\r\n                                  +-\\/-+\r\n    nRF24L01  VCC, pin2 --- VCC  1|o   |14 GND --- nRF24L01  GND, pin1\r\n                                             PB0  2|     |13 AREF\r\n                                             PB1  3|     |12 PA1\r\n                                             PB3  4|     |11 PA2 --- nRF24L01   CE, pin3\r\n                                             PB2  5|     |10 PA3 --- nRF24L01  CSN, pin4\r\n                                             PA7  6|     |9  PA4 --- nRF24L01  SCK, pin5\r\n    nRF24L01 MOSI, pin7 --- PA6  7|      |8  PA5 --- nRF24L01 MISO, pin6\r\n                                  +----+\r\n*/\r\n```\r\n// CE and CSN are configurable, specified values for ATtiny85 as connected above\r\n# define CE_PIN 3\r\n# define CSN_PIN 4\r\n\r\n//#define CSN_PIN 3 // uncomment for ATtiny85 3 pins solution\r\nint switchPin = 1;\r\n# include \"RF24.h\"\r\n\r\nRF24 radio(CE_PIN, CSN_PIN);\r\n\r\nbyte addresses[][6] = {\r\n  \"1Node\",\"2Node\"};\r\n\r\nvoid setup() {\r\n  pinMode(switchPin, INPUT);\r\n  digitalWrite(switchPin, HIGH);\r\n  // Setup and configure rf radio\r\n  radio.begin(); // Start up the radio\r\n  radio.setAutoAck(1); // Ensure autoACK is enabled\r\n  radio.setRetries(15,15); // Max delay between retries & number of retries\r\n  radio.openWritingPipe(addresses[1]); // Write to device address '2Node'\r\n  radio.openReadingPipe(1,addresses[0]); // Read on pipe 1 for device address '1Node'\r\n  radio.startListening(); // Start listening\r\n}\r\n\r\nvoid loop(void){\r\n\r\n  digitalRead(switchPin);\r\n  const char payload[] = \"opened\";\r\n  if (switchPin == LOW) {\r\n    radio.stopListening(); // First, stop listening so we can talk.\r\n    radio.write( &payload, sizeof(payload) );\r\n    radio.startListening(); // Now, continue listening\r\n  }\r\n  unsigned long started_waiting_at = micros(); // Set up a timeout period, get the current microseconds\r\n  boolean timeout = false; // Set up a variable to indicate if a response was received or not\r\n\r\n  while ( !radio.available() ){ // While nothing is received\r\n    if (micros() - started_waiting_at > 200000 ){ // If waited longer than 200ms, indicate timeout and exit while loop\r\n      timeout = true;\r\n      break;\r\n    }\r\n\r\n  }\r\n\r\n  if ( !timeout ){ // Describe the results\r\n    unsigned long got_time; // Grab the response, compare, and send to debugging spew\r\n    radio.read( &got_time, sizeof(unsigned long) );\r\n  }\r\n\r\n  // Try again 1s later\r\n  delay(1000);\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/TMRh20/RF24/issues/comments/266050773","html_url":"https://github.com/TMRh20/RF24/issues/236#issuecomment-266050773","issue_url":"https://api.github.com/repos/TMRh20/RF24/issues/236","id":266050773,"user":{"login":"batchku","id":518356,"avatar_url":"https://avatars.githubusercontent.com/u/518356?v=3","gravatar_id":"","url":"https://api.github.com/users/batchku","html_url":"https://github.com/batchku","followers_url":"https://api.github.com/users/batchku/followers","following_url":"https://api.github.com/users/batchku/following{/other_user}","gists_url":"https://api.github.com/users/batchku/gists{/gist_id}","starred_url":"https://api.github.com/users/batchku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batchku/subscriptions","organizations_url":"https://api.github.com/users/batchku/orgs","repos_url":"https://api.github.com/users/batchku/repos","events_url":"https://api.github.com/users/batchku/events{/privacy}","received_events_url":"https://api.github.com/users/batchku/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T16:05:39Z","updated_at":"2016-12-09T16:05:39Z","body":"@Raynman77 \r\nThank you; really helpful to have this all in the same place.\r\n\r\nI finally got it working; my ATtiny84 is now sending to a TeensyLC, using the gettingstarted.ino sketch at both ends.\r\n\r\nThank you for all your help; so so generous of you!\r\n\r\n"}}
{"actor":{"display_login":"batchku"}}