Modifications

Sauter à la navigation Sauter à la recherche
765 octets ajoutés ,  19 novembre 2015 à 11:52
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{ADAFRUIT-FONA-NAV}}
 
{{ADAFRUIT-FONA-NAV}}
   −
{{bloc-etroit|text=Vous pouvez placer votre FONA sur un breadboard après y avoir soudé votre connecteur. Nous allons utiliser un Arduino UNO (les raccordements seraient différents pour d'autre cartes):
+
{{bloc-etroit|text=
 +
{{ambox-stop|text=La bibliotèque Fona est toujours en développement! cette page pourrait donc changer prochainement}}
 +
}}
 +
== Télécharger Adafruit_FONA ==
 +
{{bloc-etroit|text=To begin reading sensor data, you will need to [https://github.com/adafruit/Adafruit_FONA_Library télécharger la bibliothèque Adafruit_FONA depuis le dépôt github]. You can do that by visiting the github repo and manually downloading or, easier, just click this button to download the zip
   −
* Vio connecté sur 5V (Ou sur 3V s'il s'agit d'une Arduino à logique 3.3v)
+
{{download-box|Téléchargez la bibliothèque Adafruit_FONA|https://github.com/adafruit/Adafruit_FONA_Library/archive/master.zip}}
* GND connecté sur GND (la masse)
  −
* Key connecté sur GND (toujours activé)
  −
* RX connecté sur la broche digital 2
  −
* TX connecté sur la broche 3 (9 sur un Léonado/Micro, 10 sur un Mega)
  −
* RST connecté sur la broche 4
     −
Nous allons utiliser la bibliothèque "Software Serial" pour dialoguer avec le module.
+
Rename the uncompressed folder '''Adafruit_FONA''' and check that the Adafruit_FONA folder contains '''Adafruit_FONA.cpp''' et '''Adafruit_FONA.h'''
* Sur un Arduino Uno, nous pouvons utiliser la broche digital 3 qu'il faudra adapter si vous avez d'autre modèles Arduino.
  −
* Sur un Arduino Mega (basé sur un ATmel 2560) vous ne pouvez pas utiliser la broche digital 3 avec le FONA TX... par conséquent, nous utiliserons la broche digital 10 à la place.
  −
* Sur un Arduino Leonardo ou Arduino Micro (basé sur un ATMel 32u4) vous ne pouvez pas utiliser la broche digital 3 avec le FONA TX... par conséquent, nous utiliserons la broche digital 9 à la place. 
     −
Notes:
+
Place the Adafruit_FONA library folder your arduinosketchfolder/libraries/ folder.
# [https://www.arduino.cc/en/Reference/SoftwareSerial cette page] reprend les broches utilisables avec la bibliothèque Software Serial sur les différents modèle Arduino.
  −
# Pour le moment, la bibliothèque FONA d'Adafruit ne support que Software Serial pour dialoguer avec le Fona. Pas de support pour Hardware Serial.}}
     −
{{ADFImage|ADAFRUIT-FONA-Arduino-Test.jpg|800px}}
+
You may need to create the libraries subfolder if its your first library. Restart the IDE.
 +
 
 +
Nous disposons d'un [[Installation_d%27un_librairie_Arduino|tutoriel pour l'installation de bibliothèque]] si vous avez besoin d'un petit coup de main.
 +
 
 +
== Charger la démo ==
 +
Open up '''File->Examples->Adafruit_FONA->FONAtest''' and upload to your Arduino wired up to the module.
 +
 
 +
For Mega, Leonardo, or Micro, change the definition of FONA_TX to the pin you used!
 +
 
 +
{{ADFImage|ADAFRUIT-FONA-Arduino-Test-10.png|800px}}
 +
 
 +
Make sure you have a charged 3.7/4.2V LiPoly or LiIon battery plugged into the JST and an antenna attached
 +
 
 +
{{ADFImage|ADAFRUIT-FONA-Arduino-Test-11.jpg|800px}}
 +
 
 +
{{ADFImage|ADAFRUIT-FONA-Arduino-Test-12.jpg|800px}}
 +
 
 +
Once uploaded to your Arduino, open up the serial console au '''débit de 115200 bauds''' to begin the tester sketch
 +
 
 +
{{ADFImage|ADAFRUIT-FONA-Arduino-Test-13.jpg|800px}}
 +
 
 +
Make sure you also have Both NL & CR for the serial command sender option. This means when you send data to the Arduino via the console, it will put a newline/return at the end.
 +
 
 +
== Utiliser ce Croquis ==
 +
The test sketch has a menu interface so you can test out just about everything the FONA can do. The menu may change slightly as we add more functionality and update code!
 +
 
 +
=== Tension de l'accu ===
 +
https://learn.adafruit.com/adafruit-fona-mini-gsm-gprs-cellular-phone-module/arduino-test
    
{{ADAFRUIT-FONA-TRAILER}}
 
{{ADAFRUIT-FONA-TRAILER}}
29 836

modifications

Menu de navigation