/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com Hardware Overview The hardware is a conglomeration of an SD card socket, LSM9DS1 IMU, and GPS serial port. There’s also an LED for general indication. All components are populated on the top of the board. Here, you can see the SD card, IMU, and port. The ESP32 Thing is intended to sit above this board, so no pins are labeled. https://learn.sparkfun.com/tutorials/esp32-thing-motion-shield-hookup-guide?_ga=2.240586115.1022152466.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com There are no options on the bottom side. Here, you’ll find labels for all of the pins. The two rows of pins on the side are wired together so that you have one available for prototyping after installing an ESP32 Thing. The signals that are used are show here, grouped by function.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com GPIO 21 I/O SDA IMU I2C SDA GPIO 22 I SCL IMU I2C SCL Hardware Assembly In this section, we’ll prepare the shield for a development environment by adding headers. This section also shows what the GPS module, battery, and SD card look like when properly inserted. The completed stack. Attach the Stackable Headers to the Motion Shield Solder a single pin on each header. Make sure the headers are straight, and lined up.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com Solder the rest of the pins focusing on getting nice, even, conic fillets. Attach the Headers to the ESP32 Thing https://learn.sparkfun.com/tutorials/esp32-thing-motion-shield-hookup-guide?_ga=2.240586115.1022152466.1517244327-204410570.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com Put the pin headers in the shield, and set the ESP32 Thing on top. Then, apply solder and build up nice fillets making sure to not bridge any pins. Adding an Optional Sensor If you’re using a BME280 to try out the I2C or SPI port, install headers on it as well. See the BME280 Hookup Guide for more information. For generic operation solder both headers (left). If you only need I2C (middle), or SPI (right), only attach those headers.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com The JST connectors are seated properly, protruding slightly from their sockets (left). When the SD card is inserted properly (right), it should be flush with the edge of the board. Stack and Connect Additional Parts! Stack the ESP32 Thing on the ESP32 Thing Motion Shield. ESP32 Thing, motion shield, GPS receiver, and battery installed.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com The Motion Shield itself doesn’t use any special software. It relies on the SD card library from the ESP32 core, and the LSM9DS1 library, plus whatever you attach to it. Make sure you’ve got the following installed before continuing on to the examples. ESP32 Thing Arduino Core – Follow the instructions from the ESP32 Thing Hookup Guide. Arduino Libraries: LSM9DS1 – Follow the LSM9DS1 Hookup Guide or use the library manager.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com The pins listed in Hardware Overview are also listed here as #defines you can use. Not all are necessary for every application, but it’s nice to have them all in one place for reference.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com Original Creation: August 13, 2015 by Jim Lindblom from the LSM9DS1_Basic_I2C.ino library example. https://github.com/sparkfun/LSM9DS1_Breakout Hardware setup: This library is intended to be used with a ESP32 Motion shield connected directly to the ESP32 Thing. Development environment specifics: IDE: Arduino 1.8.2 Hardware Platform: ESP32 Arduion Board This code is beerware.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com (this example plus code and header) from https://github.com/sparkfun/ESP32_Motion_Shield/tree/master/Software/FileSerialExample. In addition to standard methods such as print() and println() , the library includes the following functionality. Construction Create a file writing object with the class name FileSerial.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com /****************************************************************************** FileSerialExample.ino Example Serial-like file writer COPY CODE Marshall Taylor @ SparkFun Electronics original creation date: Nov 6, 2017 https://github.com/sparkfun/ESP32_Motion_Shield This example demonstrates usage of the FileSerial library. The FileSerial libary implements the ESP32 SD_Test functions as a class that acts like a HardwareSerial device.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com Connect the BME280 I2C port To connect the BME280 to the ESP32, wire up as follows: BME280 Pin ESP32 Pin SCL 22 SDA 21 3.3V 3.3V GND GND Then, run the following example. /****************************************************************************** BME280_I2C_SPI.ino BME280 on the ESP32 Thing COPY CODE Marshall Taylor @ SparkFun Electronics Original creation date: May 20, 2015 Modified: Nov 6, 2017 https://github.
1/29/2018 g ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com g p g p It has been modified from the original BME280 example to demonstrate I2C and SPI operation on the ESP32 Motion board. Original source: https://github.com/sparkfun/SparkFun_BME280_Arduino_Library SPI SPI Data Rate: The SPI port is shared with the microSD card.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com SDO 19 SCK 18 3.3V 3.3V GND GND To start the BME280 in SPI mode, switch the configuration by commenting/uncommenting code. Otherwise, the code is the same. /****************************************************************************** BME280_I2C_SPI.ino BME280 on the ESP32 Thing COPY CODE Marshall Taylor @ SparkFun Electronics Original creation date: May 20, 2015 Modified: Nov 6, 2017 https://github.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com //Pass usb data to the gps if (Serial.available()) { Serial1.write(Serial.read()); } //Pass gps data to the usb (left) Connection to the GP-20U7. (right) Connection to the GP-735. As for the hardware, either plug in the recommend 3-wire GPS module (rx only), or wire in a 4-wire module (that can be run from 3.3V) to the provided pin header. The data that the GPS will emit comes in the form of NMEA messages.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com Taking a trip from Denver to SparkFun. Example data logged and mapped with the GPS Visualizer on Google Maps. GPS Visualizer can also produce data that can be used in Google Earth, and has a bunch of options. If you’ve never used GPS data before, it can be super helpful to demystify all the terminology.
1/29/2018 ESP32 Thing Motion Shield Hookup Guide - learn.sparkfun.com GitHub: ESP32_Motion_Shield/Software – Software examples (from within product repository). Arduino Libraries: LSM9DS1 – Follow the LSM9DS1 Hookup Guide or use the library manager. BME280 – Follow the BME280 Hookup Guide or use the library manager. ESP32 Thing Hookup Guide – Information about the ESP32 Thing board. ESP32 Thing Hookup Guide: Resources and Going Further – Additional resources and going further with the ESP32.