Difference between revisions of "Maduino Zero A9G v3.3"
|Line 232:||Line 232:|
we can see the related LED on or off<br>
Revision as of 00:50, 21 April 2020
Maduino Zero A9G GPS Tracker is an IOT (Internet of things) Solution based on the 32-bit Atmel’s SAMD21 MCU and GPRS/GSM+GPS module A9G. It integrate a micro Controller ATSAMD21G18, GRRS/GSM+GPS module A9G, which is the upgrade version of Maduino GPRS A7, power management and storage, to make the A9G ready for real project for IOT projects such as smart-home, outdoor monitoring, etc. The Marduino Zero A9G GPS Tracker based on the Arduino, users can program it with Arduino IDE, which is very easy especially suit for the none-programmers. There are also guide for users to learn how to create the first IOT project with this board, with which the starters can learn the hardware and programming skill quickly.
With this board, you will easy to add text, SMS and data to your project. It is good for your smart home project or GPS tracker and so on.
Note: A9G is a GPRS/GSM+GPS module, while A9 is just a GPRS/GSM module not include GPS.
- BAT Input Voltage: 3.4-4.2V
- ATSAMD21G18, 32-Bit ARM Cortex M0+
- Micro SIM connector
- Integrated Power Control System
- Support AT Command
- Quad-band: 850/900/1800/1900Mz
- Support GPS
- Support GPRS data traffic, the maximum data rate, download 85.6Kbps, upload 42.8Kbps
- Support SMS text messaging
- Support USB power charge
- Support Micro SD Card
- Interface: I2C/SPI/UART/18*GPIO
- Arduino compatible
- Working Temperature: -40 – 85℃
- Default baud rate: 115200
- Size: 40*55mm
①Micro USB: 5V power input, USB to serial communication
②CHG: 5V power input, can connect the solar panel to charge the lipo battery
③VBAT: 3.7V Lipo battery connector
⑤PWR: Power indicate
⑥CHG: Charge indicate
⑦GSM: GSM Antenna IPX Interface
⑧Reserved Interface for A9 or A9G module
⑨STA: A9G GPS status indicate
⑩NET: A9G Network indicate
⑪GPS: GPS Antenna IPX Interface
⑬SWD: Bootloader downloading
⑭RESET: Reset button for ATSAMD21G18
⑮MCU: Atmel ATSAMD21G18
⑯A9 or A9G Module
①Micro SIM Card Holder
②Micro SD Card Holder
Note: Maduino Zero A9G v3.3 either the battery or the microUSB can be used for power supply. While microUSB connected, the board will be powered by microUSB first, while microUSB removed, it will switch to battery automaticly.
Warning: Don't operate when in power supply on (That is, don’t plug or unplug the Antenna ,SIM Cars, SD Card , in case of short-circuit that may burn the IC down.)
Note After a Arduino IDE installed, there is no package to support Maduino Zero(Arduino Zero ), we need to install the Arduino Zero package in Arduino IDE to continue.
Install Software for the Arduino/Genuino Zero
The following steps show how to install software for the Maduino(Arduino/Genuino) Zero boards in the Arduino IDE.
1.1. Open the Boards Manager From the top Arduino IDE menu, select Tools-> Board-> Boards Manager… to open the Boards Manager dialog box.
That is, install Arduino SAMD Boards(32-bits ARM Cortex-M0+)
1.2. Select Arduino SAMD Boards and install in the Boards Manager dialog box, type Arduino Zero into the search field to easily find the Arduino SAMD package for 32-bits ARM Cortex-M0+ boards as shown in the image below. Install it.
1.3. Find the Arduino Zero Boards on the Arduino IDE Menu After the software package has been installed, the new Arduino boards can be seen on the Arduino IDE Board menu found under Tools →Board as shown in the image below.
A new section called Arduino SAMD (32-bits ARM Cortex-M0+) Boards can be seen on the Board menu which contains Arduino M0, M0 Pro, Zero, MKR boards and others. This means the right package has been installed and Maduino ready to go.]
• Plug a MicroSIM card.
• Plug a GPS Antenna to designator which shows GPS.
• Plug a GSM Antenna to designator which shows GSM.
• Plug a Micro USB Cable to Maduino Zero A9/A9G.
• (Optional in v3.3)Plug a 3.7V lithium battery to J6
Note1: A 3.7V lithium battery normal voltage is 3.7V, but the range voltage often from 3.4V to 4.2V
Note2: It can be powered by battery or the MicroUSB
Note3: Both the battery or the MicroUSB can be used for power supply. While MicroUSB connected, the board will be powered by MicroUSB, while MicroUSB removed, it will switch to battery automaticly.
Program the Maduino Zero
After open the IDE and turn the board on, select the desired Arduino/Genuino Zero(Native USB port) board from the Arduino IDE Board menu
Then select the correct Port number from the menu item below Board on the Tools Menu. The Maduino board can now be programmed in the usual manner like Arduino.
Note: It may show different Serial number in your PC.
Select Arduino/Genuino Zero(Native USB port) Open our first programming code A9G_AT_Commands_Test.ino
Click Verify button to compile it.
After done uploading, it will show the programming OK, as below:
Click Send button after input AT and it will response OK. Now you can input other AT Commands refer to AT Command Set，Such as AT+CCID to show CCID, AT+CSQ to report GSM/GPRS signal quality and so on. Thus you can learn much about A9/A9G Module that will be a great helpful to your next program.
How to get GPS Location information?
A9G Module is a GPRS/GSM+ GPS Quad-band module, with this board, we can use it as a GPS tracker, data acquisition, remote control and a lot of IOT project or smart home project. This example show you how to get GPS location.
Attention: To get GPS location, please ensure you are outdoor, and plug the GPS Antenna. Indoor may get the incorrect location or no location information.
We can show our location where we are in https://www.gps-coordinates.net/
Maduino Zero A9G GPS Tracker Projects
Project_1: Shows the GPS location on OLED display
We need a 0.96"I2C OLED 128x64 at:
And then upload our example (A9G_GPS_OLED.ino) to Maduino board, the result shows the location on the OLED screen:
And we can show the humidity and temperature on OLED screen too, Follow me to finish it.
Install DHT library.
Connect the simple sensor to Maduino boards as following:
|Sensor's GND||Maduino's GND|
|Sensor's DATA||Maduino's D6|
|Sensor's Vcc||Maduino's Vcc|
Upload the code A9G_DHT11_OLED.ino to the board. We can see the humidity and temperature on the screen.
Project_2: A Simple IOT Project- SMS Remote Control
Note that some fee maybe needed for each SMS depends on your local GSM Operator, make sure that the SIM Card is active, support SMS and enough money left for this application.
1. Hardware connection
Connect the LED to Maduino boards as following:
|Red PIN||Maduino's D2|
|Green PIN||Maduino's D3|
|Blue PIN||Maduino's D4|
2. Upload A9G_SMS_Control.ino to the board. Using your phone send a message to the SIM card you insert in board for turning on or turning off the led, such as ‘onr’ to turn the red led on, ‘offr’ to turn the red led off.
Supported messages in the code.
|onr||turn the red led on|
|ong||turn the green led on|
|onb||turn the blue led on|
|offr||turn the red led off|
|offg||turn the green led off|
|offb||turn the blue led off|
Project_3: A Simple IOT Project- Environment Remote
A9 or A9G Module is a GPRS/GSM+ GPS Quad-band module, with this board, we can use it as a GPS tracker, data acquisition, remote control and a lot of IOT project or smart home project. In this project, we will detect the humidity/temperature of our soldering lab, and reports it to internet thingspeak(https://thingspeak.com/channels/920821), so we can monitor the lab/home/office/farm environment remotely.
We use the humidity /temperature sensor at:
1. Sensor Connection Connect the simple sensor to Maduino boards as following:
|Sensor's GND||Maduino's GND|
|Sensor's DATA||Maduino's D6|
|Sensor's Vcc||Maduino's Vcc|
2. Insert a Micro SIM card and GSM antenna, power the Maduino with battery or MicroUSB. The Maduino Zero A9/A9G board uses the micro SIM card that is widely used in Android phone, install the Micro SIM card to the holder as below picture, and also the GSM antenna.
Note that some fee maybe needed for each SMS or GPRS depends on your local GSM Operator, make sure that the SIM Card is active and enough money left for this application.
3.1 Sign up an account in https://thingspeak.com/ . If you already have one, sign in directly.
3.2 Click New Channel to create a new ThingSpeak channel.
3.3 Input name, Description, Select Field 1, Field 2, Field3, Field4.
Note: Field 3 and Field4 are reserved for other application.
Then save channel on the bottom.
3.4 Copy your API Key, we will instead it in the code A9G_DHT_GSM.ino
Below are some ways to use the API, what we used is Write A Channel Feed
Select the right port and Arduino board: Arduino Zero(Native USB Port) to upload the code(A9G_DHT_GSM.ino) to Maduino Zero A9/A9G board
If demo code run successful, you could refresh your cannel on thingspeak.com to see the result.
Have fun in making Maduino!
We can get the code from our Github.
You can list your questions here or contact with email@example.com for technology support.