NRF24L01+ test program for Arduino Mega

Gast #4702298
Lesenswert?
• ▲
▼
Arduino Mega NRF24L01+ Test Code
---------------------------------
(c) NRFTestGuy

Free for private non-commercial usage.

This is the Mega2560 version of the test program
published here:

Beitrag "NRF24L01+ test program for Arduino Uno"

It uses exactly the same wiring so you can use one
test circuit for both Arduinos (Uno and Mega2560).

You can use these programs as a test partner for
devloping your own application for the NRF24L01+
or just check the correct functions of your modules.

Also works with the Windows App   NRF24_Tester
available here:

Beitrag "NRF24L01 - Testprogramm für Windows PC"

Prerequisites
---------------

- Arduino Mega 2560
  must be set up to run at 16 MHz

  The Arduino is not absolutely required. You can use a naked
  ATMega2560 running at 16 MHz with RS232 connection to your
  computer. Just use the port pins (as documented in
  the Fritzing schematic) and the RX/TX lines that usually
  connect to the Arduino USB port.

- USB Connection to Arduino's USB Port

- NRF24L01+  wired to the Arduino
  (see Fritzing schematic)

- a terminal Application on your PC

- a programmer (such as AVRDude) to put the HEX file via USB
connection on your Arduino

- program the hex file in your ATMega2560


To run the program:
--------------------

- start your terminal application
- connect it to the port where your Arduino is located
- set the baud rate to 57600 baud, 8 bit, no parity
- the terminal should cause a reset on your Arduino
board which would result in a program startup.

The following menu should appear in your terminal
application:

  Arduino Mega - NRF24L01+ Test
   Version 0.xx (c) NRFTestGuy
  (Build Xxx xx xxxx  xx:xx:xx)
-----------------------------------
 T: Transmit Data
 R: Receive Data
 F: Fast Transmit
 G: Fast Receive
 D: Display Registers
 L: Loopback Test (SPI)
 O: Continuous Loopback Test
 S: Show Parameters
 A: Required Pin Assignments
-----------------------------------
 config:0x2D  status:0x0E  mem:6962
-----------------------------------
>
Angehängte Dateien:

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.