Now you need to install the adafruit modules for the BME280 and the LCM1602C. My code is tested on the latest Raspbian Stretch.Īlso make sure that the following packages are installed. If added the 1 k ohms resister, you may have to remove it to make the blocks visible. If the screen lights up, but you can not see the blocks, turn the pot. If it does not look like the screen on the provided photo, check your connections. All Adafruit LCDs have LED backlights with built in resistors so you do not need an extra resistor! Some cheap LCDs that have LED backlights do not include a resistor on the LCD module for the backlight, if you're not sure, connect a 1Kohm resistor between pin 15 and 5V instead of connecting directly. LED backlights use 10-40mA of power, EL backlights use 200+ma! EL backlights are often cheap to get but are not usable, make sure you don't use one or you will overload the Pi. Pin #16 (LED -) goes to ground (black wire).Īdafruit ialso provides the following warning:īefore wiring, check that your LCD has an LED backlight, not an EL backlight. Pin #14 (D7) connects to Cobber #22 (GPIO 22) (white wire) Pin #13 (D6) connects to Cobber #21 (GPIO 21) (gray wire) Pin #12 (D5) connects to Cobbler #17 (GPIO 17) (violet wire) Pin #11 (D4) connects to cobbler #23 (GPIO 23) (blue wire) Pin #6 (EN) connects to Cobbler #24 (GPIO 24) (green wire) Pin #4 (RS) connects to the Cobbler #25 (GPIO 25) (yellow wire) If you do not want to have a variable screen contrast, connect Pin 3 of the LCD to +5V Connect the remaining pot pins to +5v and GND like in the image. Pin #3 (Vo) connects to the Signal of the potentiometer (orange wire). Pin #1 of the LCD goes to ground (black wire) Wire up the LCD to your breadboard as follow: I followed the adafruit instructions ( ), however, adafruit modified the pinouts in the code, so rather follow the following instructions: The result should indicate the 2 devices on address 0x25 (SDP810) and x76 or x77 (BME280).Ĭonnect the LCM1602C. Open a terminal window and run sudo i2cdetect –y 1. Make sure i2c is enabled on your system (Go to Application Menue, Preferences, Raspberry PI configuration, Interfaces)Ĭonnect your circuit, switch on the raspberry pi. I used colour coding Red=V, Green=SDA/SDI and Red=SCK/SCL Since the two sensors have different i2c addresses, you can connect them parallel to the same i2c bus. Also connect the BME280 (Does not require pull up resistors). Remember to use the two 10 k ohms pull up resistors between Vdd and SDA and Vdd and SCL. Remember to switch off your raspberry pi when working on the GPIO pins or connecting / disconnecting the cobbler.Ĭonnect the Sensirion SDP 810 like in the diagram and images above on breadboards. It is however extremely precise and produced for precision like in the medical environment. The two sensors (Bosch BME280 and Sensirion SDP810-125 PA) used in this project is probably the best in its class for affordable hobby use. I belief the Raspberry pi is well known and does not require any introduction. A pitot tube may also fit on the fish tank tubes, but will only allow one direction wind measurement and re calibration.ġ2) 3D Printer (Optional, to print a cover and the nozzles)ġ3) A handheld anemometer may be required for calibration,īefore continuing, I must say something about the hardware and its extreme high quality. I used two suction pipes from a cheap vacuum pick and place pump. The hole in the nozzle must preferable be the same size as the holes in the pipes of the SDP810. You will also need 2 nozzles, but can 3d print them. 4) Bosch BME 280 Temperature, Humidity and Barometric Pressure sensor (Preferable on the Adafruit breakout board, others will probably work but may have different i2c addresses.)ĥ) iOs or android phone or tablet with VNC or SSH(Optional, if you do not use the LCM1602C LCD or other screen)Ħ) Battery for Raspberry pi or a power bank (Optional, to make the device portable)Ĩ) Large bread Board, one small breadboard and PI cobblerĩ) Some jumper (35 male to male and 10 male to female) cables.ġ0) Some Python skills will help, although all code is provided.ġ1) 2 Aquarium (Fish tank tubes) with inside diameter of 4mm. The SDP810-500 PA will also work, but the python code provided will require modification. You can also use a 10 k ohms pot to set screen contrast.ģ) Sensirion SDP810-125 PA (Differential Pressure/Micro Thermal Flow Sensor). Other LCD screens or touch screens may work, prefarable from Adafruit.). 2) LCM1602C LCD screen (Optional, to make the device portable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |