Difference between pages "Crowbits-GPS" and "Crowbits-UNO"

From Elecrow
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
 
== Description ==
 
== Description ==
GPS is a high-precision radio navigation positioning system based on aerial satellites. It can provide accurate geographic location, vehicle speed and accurate time information anywhere in the world and near-Earth space.
+
The Crowbits-UNO mainboard is a microcontroller board that completely compatible with the Arduino UNO. It is based on the Atmega328P, which is widely also used in the Arduino Uno.
  
[[File: Crowbits-GPS-1.jpg |600px]]
+
[[File: Crowbits-UNO-1.jpg |800px]]
  
 
== Features ==
 
== Features ==
*Low power consumption
+
*Wireless programming
*Easy to use
+
*With Bluetooth module
 +
*Battery powered
  
 
== Specification ==
 
== Specification ==
*Interface Type: UART
+
*Output Voltage: 3.3V DC
*Operating Voltage: 3.3V DC
+
*Charging method: DC 5V Micro USB
*Dimensions: 56(L)*31(W)*13(H)mm
+
*Battery capacity: 650mAh
 +
*Dimensions: 56(L)*56(W)*13(H)mm
  
 
== Usage ==
 
== Usage ==
The following sketch demonstrates a simple application of the module.
+
The interface design is compatible with any module in the Crowbits suite.
 
 
1. You need to prepare a Crowbits motherboard, such as Crowbits-UNO board.
 
 
 
2. Connect the module to the D2 and D3 interface on the Crowbits-UNO board, as shown in the figure:
 
 
 
3. Upload the following code to the Crowbits-UNO board.
 
<pre>
 
//at 9600 bps 8-N-1
 
//Computer is connected to Arduino/Crowduino
 
//SoftSerial Shield is connected to the Software UART:D2&D3
 
 
#include <SoftwareSerial.h>
 
 
SoftwareSerial SoftSerial(2, 3);
 
unsigned char buffer[256]; // buffer array for data recieve over serial port
 
int count=0;    // counter for buffer array
 
void setup()
 
{
 
  SoftSerial.begin(9600);              // the SoftSerial baud rate 
 
  Serial.begin(9600);            // the Serial port of Arduino baud rate.
 
 
}
 
 
void loop()
 
{
 
  if (SoftSerial.available())              // if date is comming from softwareserial port ==> data is comming from SoftSerial shield
 
  {
 
    while(SoftSerial.available())          // reading data into char array
 
    {
 
      buffer[count++]=SoftSerial.read();    // writing data into array
 
      if(count == 256)break;
 
  }
 
    Serial.write(buffer,count);            // if no data transmission ends, write buffer to hardware serial port
 
    clearBufferArray();              // call clearBufferArray function to clear the storaged data from the array
 
    count = 0;                      // set counter of while loop to zero
 
  }
 
  if (Serial.available())            // if data is available on hardwareserial port ==> data is comming from PC or notebook
 
    SoftSerial.write(Serial.read());      // write it to the SoftSerial shield
 
}
 
void clearBufferArray()              // function to clear buffer array
 
{
 
  for (int i=0; i<count;i++)
 
    { buffer[i]=NULL;}                  // clear all index of array with command NULL
 
}
 
</pre>
 
 
 
4. After the upload is successful, open the serial port monitor, the baud rate is set to 9600. The serial port will print the GPS address information.
 

Latest revision as of 11:09, 27 July 2020

Description

The Crowbits-UNO mainboard is a microcontroller board that completely compatible with the Arduino UNO. It is based on the Atmega328P, which is widely also used in the Arduino Uno.

Crowbits-UNO-1.jpg

Features

  • Wireless programming
  • With Bluetooth module
  • Battery powered

Specification

  • Output Voltage: 3.3V DC
  • Charging method: DC 5V Micro USB
  • Battery capacity: 650mAh
  • Dimensions: 56(L)*56(W)*13(H)mm

Usage

The interface design is compatible with any module in the Crowbits suite.