background image

Grove Pro Mini LP

 

 0097-060916-01 

 

 

P r o d u c t   S p e c i f i c a t i o n

    

I2C: A4 (SDA) and A5 (SCL). Support I2C (TWI) communication using the 

Wire library

.

There is another pin on the board:

Reset. Bring this line LOW to reset the microcontroller. Typically used to add a n external reset 

function.

Communication

The Grove Pro Mini LP has a number of facilities for communicating with a computer, another Arduino, or 
other microcontrollers. The ATmega328 provides UART TTL serial communication, which is available on 
digital pins 0 (RX) and 1 (TX). The Arduino software includes a serial monitor which allows simple textual 
data to be sent to and from the Arduino board via a USB connection.

SoftwareSerial library

 allows for serial communication on any of the Pro Mini's digital pins. 

The ATmega328 also supports I2C (TWI) and SPI communication. The Arduino software includes a Wire 
library to simplify use of the I2C bus; see the 

reference

 for details. To use the SPI communication, please see 

the ATmega328 datasheet.

Programming

The Grove Pro Mini LP can be programmed with the Arduino software 

download

. For details, see the 

reference

 and 

tutorials

The ATmega328 on the Grove Pro Mini LP comes preburned with a 

bootloader

 that allows you to upload new 

code to it without the use of an external hardware programmer. It communicates using the original STK500 
protocol 

reference 

C header files

You can also bypass the bootloader and program the ATmega328 with an external programmer; see 

these 

instructions

 for details. 

Automatic (Software) Reset

Rather then requiring a physical press of the reset button before an upload, the Arduino Pro Mini is designed 
in a way that allows it to be reset by software running on a connected computer. One of the pins on the six-
pin header is connected to the reset line of the ATmega328 via a 100 nF capacitor. This pin connects to one 
of the hardware flow control lines of the USB-to-serial convertor connected to the header: RTS when using 
an FTDI cable. When this line is asserted (taken low), the reset line drops long enough to reset the chip. The 
Arduino software uses this capability to allow you to upload code by simply pressing the upload button in the 
Arduino environment. This means that the bootloader can have a shorter timeout, as the lowering of the reset 
line can be well-coordinated with the start of the upload.
 
This setup has other implications. When the Grove Pro Mini LP is connected to either a computer running 
Mac OS X or Linux, it resets each time a connection is made to it from software (via USB). For the following 
half-second or so, the boot loader is running on the Pro. While it is programmed to ignore malformed data 

______________________________________________________________________________________

  SwitchDoc Labs, LLC,  20089 E Glenbrook Ave,, Liberty Lake, Washington 99016  - [email protected]  

Version 3.0 - Page   of 

4

19

Содержание 0097-060916-01

Страница 1: ...plications Grove Connector Compatibility for IOT Prototyping ATmega328P Processor Arduino Pro Mini Compatible Pinout Under 1mA sleep current DS3231 Real Time Clock Included 3 3V 5V Arduino IDE Compatible Thousands of drivers available Compatible with Hundreds of Grove Sensors Low Cost Full Test Code Supplied Quantity Discounts Available Immediate Availability The Grove Pro Mini LP is an Arduino co...

Страница 2: ...tes Software provided Combine the Grove Pro Mini LP with a SunAir or SunAirPlus board to create a solar powered IOT device Additional code and examples on www switchdoc com on the Grove Pro Mini LP Product Page Theory of Operation Pro Mini Arduino Operation ______________________________________________________________________________________ SwitchDoc Labs LLC 20089 E Glenbrook Ave Liberty Lake W...

Страница 3: ... resistor disconnected by default of 20 50 kOhms In addition some pins have specialized functions Serial 0 RX and 1 TX Used to receive RX and transmit TX TTL serial data These pins are connected to the TX 0 and RX 1 pins of the six pin header External Interrupts 2 and 3 These pins can be configured to trigger an interrupt on a low value a rising or falling edge or a change in value See the attachI...

Страница 4: ...ginal STK500 protocol reference C header files You can also bypass the bootloader and program the ATmega328 with an external programmer see these instructions for details Automatic Software Reset Rather then requiring a physical press of the reset button before an upload the Arduino Pro Mini is designed in a way that allows it to be reset by software running on a connected computer One of the pins...

Страница 5: ...ard Manager and then ATmega328 3 3V 8Mhz Note you can run the board at 5V but you must still choose the 3 3V 8MHz from the menu This board runs at 8MHz to reduce current consumption I2C Interface The I2C interface has two sections J3 and J7 provide Grove I2C connectors 3 3V or 5V and JP4 provides a pin header I2C interface DS3231 EEPROM Real Time Clock The SwitchDoc Labs DS3231 EEPROM combination ...

Страница 6: ...t monitors the status of VDD to detect power failures to provide a reset output and to automatically switch to the backup supply battery included when necessary Additionally the RST pin is monitored as a pushbutton input for generating a µP reset Note that the 32KHz line and the NINT SQW Line are connected to D3 D2 on the Grove Pro Mini LP respectively This allows you to use the DS3231 as a timer ...

Страница 7: ...Current Measurement Results The tall spikes are when the radio transmitter is on for a very short time we still end up with 5mA average current Min Normal Max Unit VDD 3 313V 5 25 V Idd 5 mA ______________________________________________________________________________________ SwitchDoc Labs LLC 20089 E Glenbrook Ave Liberty Lake Washington 99016 sales switchdoc com Version 3 0 Page of 7 19 ...

Страница 8: ...mm Arduino Device Power Comparison Device Current while Running Current While Sleeping Operating Voltage Arduino UNO 59mA 43mA 5V Arduino Mega2560 85mA 62mA estimate 5V Arduino Mini Pro 18mA 11mA 5V Grove Mini Pro LP 9mA 0 600mA 5V Grove Mini Pro LP 3 8mA 0 400mA 3 3V ______________________________________________________________________________________ SwitchDoc Labs LLC 20089 E Glenbrook Ave Lib...

Страница 9: ...e connector on all our future I2C boards The white connectors on the Grove Pro Mini LP board picture at the top are Grove connectors for easy non soldered connections to the I2C bus and for data inputs The picture below shows the SunRover robot built using Grove connectors for the 8 different I2C busses in the robot A Grove OLED display is shown underneath the picture Connecting to Grove Connector...

Страница 10: ...nes coming into the Grove plug The two signal lines are generically called D0 and D1 Most modules only use D0 but some do like the LED Bar Grove display use both Often base units will have the first connector called D0 and the second called D1 and they will be wired D0 D1 and then D1 D2 etc Grove Digital Pin 1 D0 Primary Digital Input Output Pin 2 D1 Secondary Digital Input Output Grove Digital __...

Страница 11: ...nal Power and Ground are the same as the other connectors This is another special version of the Grove Digital Connector In fact often the I2C bus on a controller like the ESP8266 Raspberry Pi and the Arduino just uses Digital I O pins to implement the I2C bus The pins on the Raspberry Pi and Arduino are special with hardware support for the I2C bus The ESP8266 is purely software Note that the Gro...

Страница 12: ... I2C Clock Pin 2 SDA I2C Data Pin 3 VDD Power for Grove Module 5V or 3 3V Pin 4 GND Ground ______________________________________________________________________________________ SwitchDoc Labs LLC 20089 E Glenbrook Ave Liberty Lake Washington 99016 sales switchdoc com Version 3 0 Page of 12 19 ...

Страница 13: ...nder See articles and application notes on www switchdoc com J3 Grove I2C Pin 1 A6 Analog A6 Input Pin 2 A7 Analog A7 Input Pin 3 VDD Power for Grove Module Pin 4 GND Ground J6 Grove I2C Pin 1 A2 Analog A2 Input Pin 2 A3 Analog A3 Input Pin 3 VDD Power for Grove Module Pin 4 GND Ground ______________________________________________________________________________________ SwitchDoc Labs LLC 20089 E...

Страница 14: ...r for Grove Module Pin 4 GND Ground J7 Grove I2C Pin 1 SCL I2C Clock Pin 2 SDA I2C Data Pin 3 VDD Power for Grove Module Pin 4 GND Ground J1 Grove Digital Pin 1 D3 Digital I O Pin 3 Pin 2 D4 Digital I O Pin 4 Pin 3 VDD Power for Grove Module Pin 4 GND Ground J4 Grove Digital Pin 1 D8 Digital I O Pin 8 Pin 2 D9 Digital I O Pin 9 J4 Grove Digital _____________________________________________________...

Страница 15: ...tions Pin 3 VDD Power for Grove Module Pin 4 GND Ground J4 Grove Digital J8 Grove Digital Pin 1 D6 Digital I O Pin 6 Pin 2 D7 Digital I O Pin 7 Pin 3 VDD Power for Grove Module Pin 4 GND Ground J2 Grove Digital Analog Pin 1 D2 Digital I O Pin 2 Pin 2 A1 Analog A1 Input Pin 3 VDD Power for Grove Module Pin 4 GND Ground ________________________________________________________________________________...

Страница 16: ...ch byte can be read and written instantaneously like SRAM but will keep the memory for 95 years at room temperature Each byte can be read written 10 000 000 000 000 times JP8 Optional FRAM Address Used to set other I2C addresses for the Optional I2C FRAM Module These are the I2C address selection pins By NAME PIN I O DESCRIPTION VDD JP6 1 A VDD GND JP6 2 A GND WP JP6 3 I Write Protect pin This is ...

Страница 17: ...d You must supply regulated VDD through the VDD pin VCC pin on the diagram or through the USB power port on the board Note that there is no second I2C Analog pin header as shown at the bottom of the board This is replaced by Grove connectors and by JP2 and JP3 NAME PIN I O DESCRIPTION A2 JP3 1 I High selection bit use A2 A1 A0 as three bits and add to 0x50 A1 JP3 2 I Middle selection bit use A2 A1...

Страница 18: ...ith an integrated temperature compensated crystal oscillator TCXO and crystal The device incorporates a battery input and maintains accurate timekeeping when main power to the device is interrupted This is included with the Weather Board Board When plugging the DS321 module into the Weather Board make sure to align the GND pins Battery side towards the center of the board NAME PIN I O DESCRIPTION ...

Страница 19: ... turn on the internal Arduino pullup on D2 to use SQW JP10 2 O Active Low Interrupt or Square Wave Output This is an open drain pin When enabled it is connected to D3 on the Grove Pro Mini LP Often used as an alarm output from the DS3231 You must turn on the internal Arduino pullup on D3 to use SCL JP10 3 I Serial bus clock line open drain input SCL SDA JP10 4 I O Serial bus data line open drain i...

Отзывы: