In the above image, the Arduino board would be stacked below the Ethernet shield.
![sparkfun arduino usb host shield set up sparkfun arduino usb host shield set up](https://shop.edwinrobotics.com/5319-thickbox_default/sparkfun-usb-host-shield-dev-09947.jpg)
For more circuit examples, see the Fritzing project page
![sparkfun arduino usb host shield set up sparkfun arduino usb host shield set up](https://m.media-amazon.com/images/I/71KETXU5eQL._AC_SL1500_.jpg)
You will need to change the network settings in the program to correspond to your network. Therefore we have to set the ESP8266 to 9600 baud, which can be done sending the following command. Since the Arduino Uno doesn’t have a hardware serial (except the one for the USB connection), we have to use a software serial connection, that cannot handle this speed. Make sure that the two share a common ground.Īfter wiring your sensor, your shield should be connected to a network with an Ethernet cable. By default the shields UART is set to 115200 baud. The SPI pin numbers differ depending on which Arduino board you're using and are listed in the SPI reference page. Your sensor's COPI (Controller Out Periheral In), MISO (Controller In Periheral Out), and SCK (SPI clock input) pins should then be connected to the SPI pins on your Arduino board/shield. Connect the DRDY (Data Ready) pin on your sensor to digital pin 6 on your combo, and the CSB pin (Chip Select) to digital pin 7. Your Barometric Pressure sensor will be attached to pins 6,7, and the SPI pins of your Arduino / Ethernet shield combo, and powered via your device's 3.3 volt output.
![sparkfun arduino usb host shield set up sparkfun arduino usb host shield set up](https://mitchtech.net/wp-content/uploads/2012/05/adb_simple_digital_output.png)
See the Barometric Pressure Sensor example for more on how the sensor works. After completing your circuit and uploading the example code below, simply navigate to your Ethernet shield's IP address, in a browser, to see this information. Using the Ethernet library, your device will be able to answer HTTP requests by responding with just enough HTML for a browser to display the temperature and barometric pressure values outputted by your sensor.
SPARKFUN ARDUINO USB HOST SHIELD SET UP HOW TO
This example shows how to use SPI communications to read data from a SCP1000 Barometric Pressure sensor, and how to then post that data to the web by using your Arduino / Ethernet Shield combo as a simple web server.