Ein Roboter mit bürstenlosem Antrieb, differenzial und NRF24L01 Funk. Großflächig gebaut um ein großes Solarpanel aufzunehmen. https://gitlab.informatik.hs-fulda.de/fdai5253/roboter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
449 B

  1. #include <SPI.h>
  2. #include <nRF24L01.h>
  3. #include <RF24.h>
  4. RF24 radio(3, 2); // CE, CSN
  5. const byte address[6] = "00001";
  6. void setup() {
  7. Serial.begin(9600);
  8. radio.begin();
  9. radio.openReadingPipe(0, address);
  10. radio.setPALevel(RF24_PA_MAX);
  11. radio.startListening();
  12. }
  13. void loop() {
  14. if (radio.available()) {
  15. char text[32] = "";
  16. radio.read(&text, sizeof(text));
  17. Serial.print("recieved: ");
  18. Serial.println(text);
  19. }
  20. }