SlideShare a Scribd company logo
1 of 12
Wireless communicatie
     met Arduino
XBee                     nRF24L01+ Module
Vanaf €20 / st.                    €1.5 / st.
Groot bereik mogelijk              Bereik van ±30m
Vervangt seriele communicatie      Extra Arduino Libraries nodig
Extra componenten nodig om aan     Direct aansluitbaar op Arduino
te sluiten
Instellingen via PC configureren   Instellingen in Arduino code
nRF24L01+ Aansluiten
nRF24L01+ Libraries




RF24:                https://github.com/maniacbug/RF24
RF24Network: https://github.com/maniacbug/RF24Network
nRF24L01+ Gebruiken

         Libraries importeren.

         Gebruikt altijd pin 11, 12, 13 (SPI)
         CE en CSN vrij te kiezen, hier 9, 10.
         Eigen adres en adres bestemming.
         Structuur van berichten.
         Je kan zelf het aantal variabelen kiezen.
         Maximaal 32 byte totaal!
         Radio “driver” aanmaken.
         Netwerk aanmaken dat die radio driver
         gebruikt.
nRF24L01+ Gebruiken
         SPI initialiseren, daarna radio, daarna
         netwerk.
         Channel kiezen, 125 mogelijke kanalen.

         Goed afspreken zodat je geen berichten
         van andere projecten ontvangt!


         In de loop het netwerk updaten.

         Moet zo vaak mogelijk gebeuren, dus
         kan je geen delays gebruiken.

         Zie Examples/Digital/BlinkWithoutDelay
         voor een oplossing hiervoor.
nRF24L01+ Berichten ontvangen
             Als netwerkberichten toegekomen zijn.
             Variabele aanmaken voor header en de
             message. Header bevat o.a. het adres
             van de afzender.
             Bericht lezen. Let op de “&” voor payload.
             Dit zorgt ervoor dat de data in onze
             variabele geschreven kan worden.
             De velden van de payload bevatten nu
             de data van het bericht en kunnen nu
             normaal gebruikt worden.
nRF24L01+ Berichten versturen


             Variabele aanmaken voor het bericht en
             de velden invullen.

             Header aanmaken en de bestemming
             van het bericht invullen.

             Bericht verzenden.
             Opnieuw letten op “&” voor payload.
nRF24L01+ Adressen




De adressen van je verschillende nodes kan je niet willekeurig kiezen!
Het adres bepaalt de positie in de netwerkstructuur
XBee aansluiten op PC




                     XBee Explorer USB

FTDI Drivers:
http://www.ftdichip.com/FTDrivers.htm
X-CTU Configuratiesoftware voor XBee:
http://www.digi.com/support/productdetail?pid=3352
XBee configureren
                                            PAN ID
                                            zelfde voor alle XBees.
                                            Zelf een ID kiezen!

                                            Adres bestemming.
                                            DH op 0, DL zelfde als
                                            MY van andere Xbee.

                                            DL op 0xFFFF om naar
                                            alle XBees op het
                                            netwerk te versturen.

                                            Eigen adres XBee

X-CTU tutorial:
https://sites.google.com/site/xbeetutorial/xctu
XBee aansluiten op Arduino




                     Wireless Proto Shield

Deze shield vervangt de gewone Serial communicatie met een
draadloze communicatie.
Gebruik is dus hetzelfde als bij Serial.

Alle netwerkinstellingen zijn opgeslagen in de Xbee zelf.

More Related Content

Featured

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

Wireless communicatie met Arduino

  • 1. Wireless communicatie met Arduino
  • 2. XBee nRF24L01+ Module Vanaf €20 / st. €1.5 / st. Groot bereik mogelijk Bereik van ±30m Vervangt seriele communicatie Extra Arduino Libraries nodig Extra componenten nodig om aan Direct aansluitbaar op Arduino te sluiten Instellingen via PC configureren Instellingen in Arduino code
  • 4. nRF24L01+ Libraries RF24: https://github.com/maniacbug/RF24 RF24Network: https://github.com/maniacbug/RF24Network
  • 5. nRF24L01+ Gebruiken Libraries importeren. Gebruikt altijd pin 11, 12, 13 (SPI) CE en CSN vrij te kiezen, hier 9, 10. Eigen adres en adres bestemming. Structuur van berichten. Je kan zelf het aantal variabelen kiezen. Maximaal 32 byte totaal! Radio “driver” aanmaken. Netwerk aanmaken dat die radio driver gebruikt.
  • 6. nRF24L01+ Gebruiken SPI initialiseren, daarna radio, daarna netwerk. Channel kiezen, 125 mogelijke kanalen. Goed afspreken zodat je geen berichten van andere projecten ontvangt! In de loop het netwerk updaten. Moet zo vaak mogelijk gebeuren, dus kan je geen delays gebruiken. Zie Examples/Digital/BlinkWithoutDelay voor een oplossing hiervoor.
  • 7. nRF24L01+ Berichten ontvangen Als netwerkberichten toegekomen zijn. Variabele aanmaken voor header en de message. Header bevat o.a. het adres van de afzender. Bericht lezen. Let op de “&” voor payload. Dit zorgt ervoor dat de data in onze variabele geschreven kan worden. De velden van de payload bevatten nu de data van het bericht en kunnen nu normaal gebruikt worden.
  • 8. nRF24L01+ Berichten versturen Variabele aanmaken voor het bericht en de velden invullen. Header aanmaken en de bestemming van het bericht invullen. Bericht verzenden. Opnieuw letten op “&” voor payload.
  • 9. nRF24L01+ Adressen De adressen van je verschillende nodes kan je niet willekeurig kiezen! Het adres bepaalt de positie in de netwerkstructuur
  • 10. XBee aansluiten op PC XBee Explorer USB FTDI Drivers: http://www.ftdichip.com/FTDrivers.htm X-CTU Configuratiesoftware voor XBee: http://www.digi.com/support/productdetail?pid=3352
  • 11. XBee configureren PAN ID zelfde voor alle XBees. Zelf een ID kiezen! Adres bestemming. DH op 0, DL zelfde als MY van andere Xbee. DL op 0xFFFF om naar alle XBees op het netwerk te versturen. Eigen adres XBee X-CTU tutorial: https://sites.google.com/site/xbeetutorial/xctu
  • 12. XBee aansluiten op Arduino Wireless Proto Shield Deze shield vervangt de gewone Serial communicatie met een draadloze communicatie. Gebruik is dus hetzelfde als bij Serial. Alle netwerkinstellingen zijn opgeslagen in de Xbee zelf.